Ticket #35868: Portfile.diff
File Portfile.diff, 2.3 KB (added by lockhart (Thomas Lockhart), 12 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 PortGroup python 1.0 6 6 7 name 8 version 9 categories 10 license 11 platforms 12 maintainers 13 description 14 long_description 15 16 homepage 17 master_sites 18 distname 7 name py-geoip 8 version 1.2.7 9 categories python net 10 license LGPL-2.1+ 11 platforms darwin 12 maintainers freebsd.org:miwi 13 description Python module for accessing the GeoIP C library 14 long_description ${description} 15 16 homepage http://www.maxmind.com/app/python 17 master_sites http://www.maxmind.com/download/geoip/api/python/ 18 distname GeoIP-Python-${version} 19 19 20 checksums 21 20 checksums sha1 0af5f5d06bc81b5427019d28ba029e8c31dec9eb \ 21 rmd160 4abb50a70ce15e8305e786593ddd2de15efed129 22 22 23 python.versions 23 python.versions 24 25 26 27 24 24 python.default_version 24 25 25 26 26 if {$subport != $name} { 27 depends_lib-appendport:libgeoip27 depends_lib-append port:libgeoip 28 28 29 30 31 29 post-patch { 30 reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/setup.py 31 } 32 32 33 post-destroot{33 post-destroot { 34 34 xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE README \ 35 35 ${destroot}${prefix}/share/doc/${subport} 36 36 xinstall -m 644 -W ${worksrcpath} test.py test_city.py test_org.py \ 37 37 ${destroot}${prefix}/share/doc/${subport}/examples 38 livecheck.type none39 38 } 39 livecheck.type none 40 40 } else { 41 livecheck.typeregex42 livecheck.url${master_sites}43 livecheck.regex"GeoIP-Python-(\\d+(\\.\\d+)+)${extract.suffix}"41 livecheck.type regex 42 livecheck.url ${master_sites} 43 livecheck.regex "GeoIP-Python-(\\d+(\\.\\d+)+)${extract.suffix}" 44 44 }