Ticket #21348: py-psycopg@2.0.12.diff
File py-psycopg@2.0.12.diff, 2.4 KB (added by Themanwithoutaplan, 15 years ago) |
---|
-
Users/charlieclark/temp/MacPorts/py-psycopg2/Portfile
4 4 PortGroup python24 1.0 5 5 6 6 name py-psycopg2 7 version 2.0. 5.17 version 2.0.12 8 8 categories python databases 9 maintainers landonf9 maintainers openmaintainer 10 10 platforms darwin freebsd 11 11 description A python DBAPI-2.0 ompliant database adapter for postgresql 12 12 long_description Psycopg2 is a postgresql database adapter for python. \ … … 18 18 master_sites http://initd.org/pub/software/psycopg/ \ 19 19 http://initd.org/pub/software/psycopg/PSYCOPG-2-0/ 20 20 distname psycopg2-${version} 21 checksums md5 052e4b97dab47708fdcdc36ffb25af66 21 checksums md5 5c8080d0d0568479f041bb8534caf1f8 \ 22 sha1 a5649fced3ffc9968b21421023239f95a3a21ad3 \ 23 rmd160 eff28c1ab131ee55b42e0c129df88cebd79f38fd 22 24 23 depends_lib port:postgresql81 \ 24 port:python24 \ 25 port:openssl 25 depends_lib port:python24 \ 26 port:openssl 26 27 27 28 patchfiles patch-setup.cfg 28 29 29 post-patch { 30 reinplace \ 31 s|@PG_CONFIG@|${prefix}/lib/postgresql81/bin/pg_config|g \ 32 ${worksrcpath}/setup.cfg 30 if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} { 31 default_variants +postgresql84 33 32 } 33 34 variant postgresql82 conflicts postgresql83 postgresql84 description "Build using postgresql v8.2" { 35 depends_lib-append port:postgresql82 36 37 post-patch { 38 reinplace \ 39 s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \ 40 ${worksrcpath}/setup.cfg 41 } 42 } 43 44 variant postgresql83 conflicts postgresql82 postgresql84 description "Build using postgresql v8.3" { 45 depends_lib-append port:postgresql83 46 47 post-patch { 48 reinplace \ 49 s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \ 50 ${worksrcpath}/setup.cfg 51 } 52 } 53 54 variant postgresql84 conflicts postgresql82 postgresql83 description "Build using postgresql v8.4" { 55 depends_lib-append port:postgresql84 56 57 post-patch { 58 reinplace \ 59 s|@PG_CONFIG@|${prefix}/lib/postgresql84/bin/pg_config|g \ 60 ${worksrcpath}/setup.cfg 61 } 62 } 63 64 livecheck.url ${master_sites} 65 livecheck.regex "psycopg2-(\\d+\\.\\d+(\\.\\d+)?)"