[25412] trunk/dports/perl/p5-dbd-pg/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon May 21 09:28:48 PDT 2007


Revision: 25412
          http://trac.macosforge.org/projects/macports/changeset/25412
Author:   narf_tm at macports.org
Date:     2007-05-21 09:28:48 -0700 (Mon, 21 May 2007)

Log Message:
-----------
Added variants for other PostgreSQL versions. Closes ticket #11328.

Modified Paths:
--------------
    trunk/dports/perl/p5-dbd-pg/Portfile

Modified: trunk/dports/perl/p5-dbd-pg/Portfile
===================================================================
--- trunk/dports/perl/p5-dbd-pg/Portfile	2007-05-21 16:24:20 UTC (rev 25411)
+++ trunk/dports/perl/p5-dbd-pg/Portfile	2007-05-21 16:28:48 UTC (rev 25412)
@@ -18,3 +18,35 @@
 			POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
 			POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
 
+variant postgresql7 conflicts postgresql80 postgresql81 {
+	depends_lib-delete port:postgresql82
+	depends_lib-append port:postgresql80
+	configure.env-delete PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
+				POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
+				POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
+	configure.env-append PATH=${prefix}/lib/pgsql7/bin:$env(PATH) \
+				POSTGRES_INCLUDE="${prefix}/include/pgsql7" \
+				POSTGRES_LIB="${prefix}/lib/pgsql7 -lssl"
+}
+
+variant postgresql80 conflicts postgresql7 postgresql81 {
+	depends_lib-delete port:postgresql82
+	depends_lib-append port:postgresql80
+	configure.env-delete PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
+				POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
+				POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
+	configure.env-append PATH=${prefix}/lib/pgsql8/bin:$env(PATH) \
+				POSTGRES_INCLUDE="${prefix}/include/pgsql8" \
+				POSTGRES_LIB="${prefix}/lib/pgsql8 -lssl"
+}
+
+variant postgresql81 conflicts postgresql7 postgresql80 {
+	depends_lib-delete port:postgresql82
+	depends_lib-append port:postgresql81
+	configure.env-delete PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
+				POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
+				POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
+	configure.env-append PATH=${prefix}/lib/postgresql81/bin:$env(PATH) \
+				POSTGRES_INCLUDE="${prefix}/include/postgresql81" \
+				POSTGRES_LIB="${prefix}/lib/postgresql81 -lssl"
+}
\ No newline at end of file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070521/52e95c8d/attachment.html


More information about the macports-changes mailing list