| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | PortGroup archcheck 1.0 |
|---|
| 5 | |
|---|
| 6 | name libxml2 |
|---|
| 7 | version 2.7.8 |
|---|
| 8 | # skip to revision 3 if a rev bump is needed with version 2.7.8 |
|---|
| 9 | #revision 2 |
|---|
| 10 | categories textproc |
|---|
| 11 | description gnome xml library |
|---|
| 12 | platforms darwin |
|---|
| 13 | license MIT |
|---|
| 14 | maintainers gmail.com:cedric.luthi |
|---|
| 15 | homepage http://xmlsoft.org/ |
|---|
| 16 | |
|---|
| 17 | master_sites ftp://fr.rpmfind.net/pub/libxml/ \ |
|---|
| 18 | ftp://gd.tuwien.ac.at/pub/libxml/ \ |
|---|
| 19 | ${homepage}sources/ \ |
|---|
| 20 | ftp://xmlsoft.org/${name}/ |
|---|
| 21 | |
|---|
| 22 | checksums md5 8127a65e8c3b08856093099b52599c86 \ |
|---|
| 23 | sha1 859dd535edbb851cc15b64740ee06551a7a17d40 \ |
|---|
| 24 | rmd160 30709622cfe3e2175e73d6701b7e19a25ab5ac47 |
|---|
| 25 | |
|---|
| 26 | depends_lib port:libiconv port:zlib |
|---|
| 27 | |
|---|
| 28 | archcheck.files lib/libiconv.dylib \ |
|---|
| 29 | lib/libz.dylib |
|---|
| 30 | |
|---|
| 31 | post-extract { |
|---|
| 32 | reinplace "s|/etc|${prefix}/etc|g" \ |
|---|
| 33 | ${worksrcpath}/catalog.c \ |
|---|
| 34 | ${worksrcpath}/runtest.c \ |
|---|
| 35 | ${worksrcpath}/xmlcatalog.c \ |
|---|
| 36 | ${worksrcpath}/xmllint.c \ |
|---|
| 37 | ${worksrcpath}/doc/xmlcatalog.1 \ |
|---|
| 38 | ${worksrcpath}/doc/xmllint.1 |
|---|
| 39 | |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | configure.args --enable-static \ |
|---|
| 43 | --without-python |
|---|
| 44 | |
|---|
| 45 | use_parallel_build yes |
|---|
| 46 | |
|---|
| 47 | destroot.keepdirs ${destroot}${prefix}/etc/xml |
|---|
| 48 | post-destroot { |
|---|
| 49 | xinstall -m 755 -d ${destroot}${prefix}/etc/xml |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | test.run yes |
|---|
| 53 | test.target check |
|---|
| 54 | |
|---|
| 55 | variant debug description {Enable debug build} { |
|---|
| 56 | configure.optflags -O0 -g -Wno-uninitialized |
|---|
| 57 | configure.args-append --with-run-debug |
|---|
| 58 | } |
|---|
| 59 | |
|---|
| 60 | long_description \ |
|---|
| 61 | Libxml is the XML C library developed for the Gnome project. \ |
|---|
| 62 | XML itself is a metalanguage to design markup languages. \ |
|---|
| 63 | Though the library is written in C, a variety of language bindings make it \ |
|---|
| 64 | available in other environments. |
|---|
| 65 | |
|---|
| 66 | livecheck.type regex |
|---|
| 67 | livecheck.url ${homepage}news.html |
|---|
| 68 | livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>} |
|---|