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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libmetalink |
---|
7 | version 0.1.2 |
---|
8 | categories net devel |
---|
9 | platforms darwin |
---|
10 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
11 | # The website uses a "/" to separate the licenses; not sure whether that means |
---|
12 | # "and" or "or"... |
---|
13 | license MIT x11 |
---|
14 | |
---|
15 | description ${name} is a Metalink library written in C language. |
---|
16 | |
---|
17 | long_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 | |
---|
21 | homepage https://launchpad.net/${name}/ |
---|
22 | master_sites ${homepage}/trunk/packagingfix/+download/ |
---|
23 | |
---|
24 | use_bzip2 yes |
---|
25 | |
---|
26 | checksums rmd160 0920813d6117e33f932020688f74ed0a0e397421 \ |
---|
27 | sha256 cbed9121bf550ef14a434d6ed3d8806ded7a339db16b698cfa2f39fdc3d48bf6 |
---|
28 | |
---|
29 | depends_lib-append port:expat \ |
---|
30 | port:libxml2 |
---|
31 | |
---|
32 | configure.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. |
---|
39 | variant 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 | } |
---|