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