Ticket #39036: Portfile

File Portfile, 1.8 KB (added by cooljeanius (Eric Gallager), 11 years ago)

portfile for libmetalink

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
5
6name                libmetalink
7version             0.1.2
8categories          net devel
9platforms           darwin
10maintainers         gwmail.gwu.edu:egall openmaintainer
11# The website uses a "/" to separate the licenses; not sure whether that means
12# "and" or "or"...
13license             MIT x11
14
15description         ${name} is a Metalink library written in C language.
16
17long_description    ${description} It is intended to provide the programs written \
18                    in C to add Metalink functionality such as parsing Metalink XML \
19                    files.
20
21homepage            https://launchpad.net/${name}/
22master_sites        ${homepage}/trunk/packagingfix/+download/
23
24use_bzip2           yes
25
26checksums           rmd160  0920813d6117e33f932020688f74ed0a0e397421 \
27                    sha256  cbed9121bf550ef14a434d6ed3d8806ded7a339db16b698cfa2f39fdc3d48bf6
28
29depends_lib-append  port:expat \
30                    port:libxml2
31
32configure.args-append \
33                    --with-libexpat \
34                    --with-libxml2 \
35                    --with-xml-prefix=${prefix} \
36                    --disable-xmltest
37
38# Making a variant for this until ticket #38208 is resolved.
39variant tests description {Build unit tests} {
40    depends_build-append \
41                    port:pkgconfig \
42                    port:cunit
43    configure.env-append \
44                    PKG_CONFIG=${prefix}/bin/pkg-config
45    configure.args-delete \
46                    --disable-xmltest
47    configure.args-append \
48                    --enable-maintainer-mode \
49                    --enable-xmltest
50    test.run        yes
51    test.target-append \
52                    check
53}