Ticket #21348: py25-psycopg2@2.0.12.diff
File py25-psycopg2@2.0.12.diff, 3.2 KB (added by Themanwithoutaplan, 15 years ago) |
---|
-
Users/charlieclark/temp/MacPorts/py25-psycopg2/Portfile
4 4 PortGroup python25 1.0 5 5 6 6 name py25-psycopg2 7 version 2.0. 97 version 2.0.12 8 8 categories python databases 9 maintainers nomaintainer9 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 885e5bd372afafd14cfd914b000462e7\22 sha1 d6aca4b96b69207a795934623de60e9c9ce32378\23 rmd160 3194fbae1c69a3734e4db91e21db4b688de1d63021 checksums md5 5c8080d0d0568479f041bb8534caf1f8 \ 22 sha1 a5649fced3ffc9968b21421023239f95a3a21ad3 \ 23 rmd160 eff28c1ab131ee55b42e0c129df88cebd79f38fd 24 24 25 25 depends_lib-append port:openssl 26 26 27 27 patchfiles patch-setup.cfg 28 28 29 if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} { 30 default_variants +postgresql84 31 } 29 32 30 variant postgresql82 description "Build using postgresql v8.2" {31 depends_lib-appendport:postgresql8233 variant postgresql82 conflicts postgresql83 postgresql84 description "Build using postgresql v8.2" { 34 depends_lib-append port:postgresql82 32 35 33 post-patch { 34 reinplace \ 35 s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \ 36 ${worksrcpath}/setup.cfg 37 } 38 36 post-patch { 37 reinplace \ 38 s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \ 39 ${worksrcpath}/setup.cfg 40 } 39 41 } 40 42 41 variant postgresql83 description "Build using postgresql v8.3" {42 depends_lib-appendport:postgresql8343 variant postgresql83 conflicts postgresql82 postgresql84 description "Build using postgresql v8.3" { 44 depends_lib-append port:postgresql83 43 45 44 post-patch{45 46 47 48 46 post-patch { 47 reinplace \ 48 s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \ 49 ${worksrcpath}/setup.cfg 50 } 49 51 } 50 52 51 pre-patch { 52 if {![variant_isset postgresql83] && ![variant_isset postgresql82]} { 53 return -code error "You have to choose either +postgresql82 or +postgresql83" 53 variant postgresql84 conflicts postgresql82 postgresql83 description "Build using postgresql v8.4" { 54 depends_lib-append port:postgresql84 55 56 post-patch { 57 reinplace \ 58 s|@PG_CONFIG@|${prefix}/lib/postgresql84/bin/pg_config|g \ 59 ${worksrcpath}/setup.cfg 54 60 } 55 61 } 56 62 63 livecheck.url ${master_sites} 64 livecheck.regex "psycopg2-(\\d+\\.\\d+(\\.\\d+)?)" 65 No newline at end of file