source: trunk/dports/devel/libCUDF/Portfile @ 121295

Last change on this file since 121295 was 121295, checked in by cal@…, 5 years ago

libCUDF: update to 0.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
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: Portfile 121295 2014-06-22 13:33:34Z cal@macports.org $
3
4PortSystem          1.0
5
6name                libCUDF
7version             0.7
8categories          devel ml
9platforms           darwin
10maintainers         gwmail.gwu.edu:egall cal openmaintainer
11license             LGPL-3+
12homepage            http://www.mancoosi.org/cudf/
13
14description         ${name} is a library to manipulate so called CUDF documents.
15
16long_description    ${description} A CUDF \
17                    (Common Upgradeability Description Format) document describes an \
18                    \"upgrade scenario\", as faced by package managers in popular \
19                    package-based FOSS (Free and Open Source Software) distributions.
20
21master_sites        https://gforge.inria.fr/frs/download.php/33593/
22
23checksums           rmd160  dd9c5097a627856e0e74fe3052c2f5ee1fd1bec5 \
24                    sha256  92c8a9ed730bbac73f3513abab41127d966c9b9202ab2aaffcd02358c030a701
25
26worksrcdir          cudf-${version}
27
28use_configure       no
29
30# parallel building fails
31use_parallel_build  no
32
33build.env-append    CC=${configure.cc}\
34                    CFLAGS=\"${configure.cflags} [get_canonical_archflags cc]\" \
35                    LDFLAGS=\"${configure.ldflags} [get_canonical_archflags ld]\" \
36
37post-patch {
38    reinplace "s#/usr/#${prefix}/#g" ${worksrcpath}/Makefile.config
39}
40
41subport ocaml-cudf {
42    PortGroup           ocaml 1.0
43
44    depends_lib-append  port:camlp5 \
45                        port:ocaml-findlib \
46                        port:ocaml-extlib
47
48    build.target-append opt
49
50    test.target         test
51    test.run            yes
52
53    pre-test {
54        if {[catch {registry_active ocaml-ounit}]} {
55            ui_error "Testing requires ocaml-ounit, but it isn't installed."
56            ui_error "Please install the ocaml-ounit port and try again."
57            error "missing dependency"
58        }
59    }
60
61    livecheck.type      none
62}
63
64subport libCUDF {
65    depends_build-append    port:pkgconfig
66    depends_lib-append      port:ocaml-cudf \
67                            path:lib/pkgconfig/glib-2.0.pc:glib2
68    build.pre_args          -C c-lib
69    build.args              all opt
70
71    post-destroot {
72        file delete -force ${destroot}${prefix}/lib/ocaml
73    }
74
75    test.pre_args   -C c-lib
76    test.args       test
77    test.run        yes
78}
79
80livecheck.type      regex
81livecheck.url       https://gforge.inria.fr/export/rss20_newreleases.php?group_id=4385
82livecheck.regex     "cudf (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.