Ticket #38198: Portfile

File Portfile, 1.5 KB (added by cooljeanius (Eric Gallager), 12 years ago)

portfile for libCUDF

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5PortGroup           ocaml 1.0
6
7name                libCUDF
8version             development-version
9epoch               1
10categories          devel ml
11platforms           darwin
12maintainers         gwmail.gwu.edu:egall
13license             LGPL-3+
14
15description         ${name} is a library to manipulate so called CUDF documents.
16
17long_description    ${description} A CUDF \
18                    (Common Upgradeability Description Format) document describes an \
19                    \"upgrade scenario\", as faced by package managers in popular \
20                    package-based FOSS (Free and Open Source Software) distributions.
21
22homepage            http://www.mancoosi.org/cudf/
23
24fetch.type          git
25git.url             git://scm.gforge.inria.fr/cudf/cudf.git
26
27depends_lib-append  port:camlp5 \
28                    port:ocaml-findlib \
29                    port:ocaml-extlib
30
31use_configure       no
32
33use_parallel_build  no
34
35build.target-append opt
36
37post-destroot {
38    eval xinstall [glob ${destroot}/usr/bin/*] ${destroot}${prefix}/bin
39    eval file delete [glob ${destroot}/usr/bin/*]
40}
41
42variant tests description {Run the test suite} {
43    depends_build-append port:ocaml-ounit
44    test.run        yes
45    test.cmd        make
46    test.target-append test
47    post-build {
48        system -W ${worksrcpath} "${test.cmd} ${test.target}"
49    }
50}