source: trunk/dports/devel/libCUDF/Portfile

Last change on this file was 137992, checked in by mww@…, 2 years ago

inc. revision to rebuild library dependents of ocaml (ocaml update to version 4.02.2)

  • 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 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libCUDF
7version             0.7
8revision            1
9categories          devel ml
10platforms           darwin
11maintainers         gwmail.gwu.edu:egall cal openmaintainer
12license             LGPL-3+
13homepage            http://www.mancoosi.org/cudf/
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
22master_sites        https://gforge.inria.fr/frs/download.php/33593/
23
24checksums           rmd160  dd9c5097a627856e0e74fe3052c2f5ee1fd1bec5 \
25                    sha256  92c8a9ed730bbac73f3513abab41127d966c9b9202ab2aaffcd02358c030a701
26
27worksrcdir          cudf-${version}
28
29use_configure       no
30
31# parallel building fails
32use_parallel_build  no
33
34build.env-append    CC=${configure.cc}\
35                    CFLAGS=\"${configure.cflags} [get_canonical_archflags cc]\" \
36                    LDFLAGS=\"${configure.ldflags} [get_canonical_archflags ld]\" \
37
38post-patch {
39    reinplace "s#/usr/#${prefix}/#g" ${worksrcpath}/Makefile.config
40}
41
42subport ocaml-cudf {
43    PortGroup           ocaml 1.0
44
45    depends_lib-append  port:camlp5 \
46                        port:ocaml-findlib \
47                        port:ocaml-extlib
48
49    build.target-append opt
50
51    test.target         test
52    test.run            yes
53
54    pre-test {
55        if {[catch {registry_active ocaml-ounit}]} {
56            ui_error "Testing requires ocaml-ounit, but it isn't installed."
57            ui_error "Please install the ocaml-ounit port and try again."
58            error "missing dependency"
59        }
60    }
61
62    livecheck.type      none
63}
64
65subport libCUDF {
66    depends_build-append    port:pkgconfig
67    depends_lib-append      port:ocaml-cudf \
68                            path:lib/pkgconfig/glib-2.0.pc:glib2
69    build.pre_args          -C c-lib
70    build.args              all opt
71
72    post-destroot {
73        file delete -force ${destroot}${prefix}/lib/ocaml
74    }
75
76    test.pre_args   -C c-lib
77    test.args       test
78    test.run        yes
79}
80
81livecheck.type      regex
82livecheck.url       https://gforge.inria.fr/export/rss20_newreleases.php?group_id=4385
83livecheck.regex     "cudf (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.