File: dune

package info (click to toggle)
wyrd 1.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 536 kB
  • sloc: ml: 5,041; makefile: 174; ansic: 17; sh: 14
file content (48 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(executable
  (name main)
  (modes byte exe)
  (public_name wyrd)
  (modules (:standard \ locale))
  (flags (:standard -w -3-32))
  (ocamlopt_flags (:include ocamlopt_flags.sexp))
  (libraries unix str camlp-streams curses locale yojson))

(library
  (name locale)
  (public_name wyrd.locale)
  (modules locale)
  (foreign_stubs
    (language c)
    (names locale_wrap)))

(rule
  (target ocamlopt_flags.sexp)
  (enabled_if
    (= %{profile} static))
  (action
    (write-file %{target} "(:standard -cclib -static)")))

(rule
  (target ocamlopt_flags.sexp)
  (enabled_if
    (<> %{profile} static))
  (action
    (write-file %{target} "(:standard)")))

(rule
  (target install.ml)
  (action (with-stdout-to %{target}
    (system "sed \
        -e 's|@prefix@|%{env:PREFIX=@prefix@}|' \
        -e 's|@prefix@|%{env:OPAM_SWITCH_PREFIX=@prefix@}|' \
        -e 's|@prefix@|/usr/local|' \
        -e 's|@sysconfdir@|%{env:WYRD_SYSCONFDIR=@sysconfdir@}|' \
        -e 's|@sysconfdir@|${prefix}/etc|' \
        -e 's|@PACKAGE_VERSION@|%{env:WYRD_VERSION=@PACKAGE_VERSION@}|' \
        -e 's|@PACKAGE_VERSION@|%{version:wyrd}|' \
      %{deps}")))
  (deps (file install.ml.in)))

(install
  (files ChangeLog COPYING)
  (section doc))