[96768] trunk/dports/databases
pixilla at macports.org
pixilla at macports.org
Sat Aug 18 16:58:42 PDT 2012
Revision: 96768
https://trac.macports.org/changeset/96768
Author: pixilla at macports.org
Date: 2012-08-18 16:58:41 -0700 (Sat, 18 Aug 2012)
Log Message:
-----------
databases/libzdb:
- Move to libzdb-mysql55.
databases/libzdb-mysql55:
- Convert database variants to subports.
Modified Paths:
--------------
trunk/dports/databases/libzdb-mysql55/Portfile
Added Paths:
-----------
trunk/dports/databases/libzdb-mysql55/
Removed Paths:
-------------
trunk/dports/databases/libzdb/
Modified: trunk/dports/databases/libzdb-mysql55/Portfile
===================================================================
--- trunk/dports/databases/libzdb/Portfile 2012-08-15 01:59:30 UTC (rev 96597)
+++ trunk/dports/databases/libzdb-mysql55/Portfile 2012-08-18 23:58:41 UTC (rev 96768)
@@ -3,9 +3,9 @@
PortSystem 1.0
-name libzdb
-version 2.10
-revision 1
+name libzdb-mysql55
+set name_package libzdb
+version 2.10.5
set branch [join [lrange [split ${version} .] 0 1] .]
categories databases devel
maintainers pixilla openmaintainer
@@ -23,105 +23,160 @@
homepage http://www.tildeslash.com/libzdb/
master_sites ${homepage}dist/
-checksums rmd160 8798b0fc7bf42f57484dd4cbe2af33ecef8e143c \
- sha256 62cd160bb6c8da49fcf9a6746f45ff0298db8d310565b7e74c648fc6a67609bd
+distname ${name_package}-${version}
+checksums rmd160 35d852551e90811a6300772c34f49771b2f78959 \
+ sha256 2ed89c57bab95cb52a9a8d54b46453b1e4d95b0e8e23e4faf2a7337fb4de631d
+
configure.args --with-sysroot=${prefix} \
--enable-optimized \
--without-postgresql \
--without-mysql \
--without-sqlite \
- --without-oci
+ --without-oci \
+ --enable-openssl=no
-if {
- ![variant_isset mysql5]
- && ![variant_isset oracle]
- && ![variant_isset postgresql82]
- && ![variant_isset postgresql83]
- && ![variant_isset postgresql84]
- && ![variant_isset postgresql90]
- && ![variant_isset postgresql91]
- && ![variant_isset sqlite3]
-} {
- default_variants +mysql5
+set mp.ports {
+ mysql5
+ mysql51
+ mysql55
+ mariadb
+ percona
}
+set mp.names {}
+foreach mp.port ${mp.ports} {
-post-destroot {
- xinstall -d ${destroot}${prefix}/share/doc
- copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
- xinstall -m 0644 -W ${worksrcpath} AUTHORS CHANGES COPYING README \
- ${destroot}${prefix}/share/doc/${name}/
+ lappend mp.names "libzdb-${mp.port}"
}
+foreach mp.name ${mp.names} {
-variant mysql5 description {Enable MySQL support} {
+ set idx [lsearch ${mp.names} ${mp.name}]
+ set mp.port [lindex ${mp.ports} $idx]
+ set mp.conflicts [lreplace ${mp.names} $idx $idx]
+ if {[string compare ${mp.name} ${name}] == 0 && [string compare ${mp.name} ${subport}] == 0} {
- depends_lib-append path:bin/mysql_config5:mysql5
- configure.args-delete --without-mysql
- configure.args-append --with-mysql=${prefix}/bin/mysql_config5
-}
+ description "Enable MySQL support for ${mp.port}" \
+# conflicts ${mp.conflicts}
-variant oracle description {Enable Oracle support} {
+ depends_lib-append port:${mp.port}
+ configure.args-delete \
+ --without-mysql
+ configure.args-append \
+ --with-mysql=${prefix}/lib/${mp.port}/bin/mysql_config \
+ --libdir=${prefix}/lib/${subport} \
+ --includedir=${prefix}/include/${subport} \
+ --datarootdir=${prefix}/share/${subport}
+ } else {
- depends_lib-append port:oracle-instantclient
- configure.args-delete --without-oci
- configure.args-append --with-oci-include=${prefix}/lib/oracle/sdk/include \
- --with-oci-lib=${prefix}/lib/oracle
+ subport ${mp.name} {
+
+ description "Enable MySQL support for ${mp.port}" \
+# conflicts ${mp.conflicts}
+
+ depends_lib-append port:${mp.port}
+ configure.args-delete \
+ --without-mysql
+ configure.args-append \
+ --with-mysql=${prefix}/lib/${mp.port}/bin/mysql_config \
+ --libdir=${prefix}/lib/${subport} \
+ --includedir=${prefix}/include/${subport} \
+ --datarootdir=${prefix}/share/${subport}
+ }
+ }
}
-variant postgresql82 description {Enable PostgreSQL 8.2 support} \
- conflicts postgresql83 postgresql84 postgresql90 postgresql91 {
+set mp.ports {
+ postgresql80
+ postgresql81
+ postgresql82
+ postgresql83
+ postgresql84
+ postgresql90
+ postgresql91
+ postgresql92
+}
+set mp.names {}
+foreach mp.port ${mp.ports} {
- depends_lib-append port:postgresql82
- configure.args-delete --without-postgresql
- configure.args-append --with-postgresql=${prefix}/lib/postgresql82/bin/pg_config
+ lappend mp.names "libzdb-${mp.port}"
}
+foreach mp.name ${mp.names} {
-variant postgresql83 description {Enable PostgreSQL 8.3 support} \
- conflicts postgresql82 postgresql84 postgresql90 postgresql91 {
+ set idx [lsearch ${mp.names} ${mp.name}]
+ set mp.port [lindex ${mp.ports} $idx]
+# set mp.conflicts [lreplace ${mp.names} $idx $idx]
- depends_lib-append port:postgresql83
- configure.args-delete --without-postgresql
- configure.args-append --with-postgresql=${prefix}/lib/postgresql83/bin/pg_config
+ subport ${mp.name} {
+
+ description "Enable PostgreSQL support for ${mp.port}" \
+# conflicts ${mp.conflicts}
+
+ depends_lib-append port:${mp.port}
+ configure.args-delete \
+ --without-postgresql
+ configure.args-append \
+ --with-postgresql=${prefix}/lib/${mp.port}/bin/pg_config \
+ --libdir=${prefix}/lib/${subport} \
+ --includedir=${prefix}/include/${subport} \
+ --datarootdir=${prefix}/share/${subport}
+ }
+
}
-variant postgresql84 description {Enable PostgreSQL 8.4 support} \
- conflicts postgresql82 postgresql83 postgresql90 postgresql91 {
+subport libzdb-oracle {
- depends_lib-append port:postgresql84
- configure.args-delete --without-postgresql
- configure.args-append --with-postgresql=${prefix}/lib/postgresql84/bin/pg_config
+ description-append {Built for oracle.}
+
+ depends_lib-append port:oracle-instantclient
+ configure.args-delete --without-oci
+ configure.args-append --with-oci-include=${prefix}/lib/oracle/sdk/include \
+ --with-oci-lib=${prefix}/lib/oracle \
+ --libdir=${prefix}/lib/${subport} \
+ --includedir=${prefix}/include/${subport} \
+ --datarootdir=${prefix}/share/${subport}
}
-variant postgresql90 description {Enable PostgreSQL 9.0 support} \
- conflicts postgresql82 postgresql83 postgresql84 postgresql91 {
+subport libzdb-sqlite3 {
- depends_lib-append port:postgresql90
- configure.args-delete --without-postgresql
- configure.args-append --with-postgresql=${prefix}/lib/postgresql90/bin/pg_config
+ description-append {Built for sqlite3.}
+
+ depends_lib-append port:sqlite3
+ configure.args-delete \
+ --without-sqlite
+ configure.args-append \
+ --with-sqlite=${prefix} \
+ --enable-sqliteunlock \
+ --libdir=${prefix}/lib/${subport} \
+ --includedir=${prefix}/include/${subport} \
+ --datarootdir=${prefix}/share/${subport}
}
-variant postgresql91 description {Enable PostgreSQL 9.1 support} \
- conflicts postgresql82 postgresql83 postgresql84 postgresql90 {
+subport libzdb {
- depends_lib-append port:postgresql91
- configure.args-delete --without-postgresql
- configure.args-append --with-postgresql=${prefix}/lib/postgresql91/bin/pg_config
+ replaced_by libzdb-mysql5
+ PortGroup obsolete 1.0
}
-variant sqlite3 description {Enable SQLite 3 support} {
+post-destroot {
- depends_lib-append port:sqlite3
- configure.args-delete --without-sqlite
- configure.args-append --with-sqlite=${prefix} \
- --enable-sqliteunlock
+ xinstall -d ${destroot}${prefix}/share/${subport}/doc
+ copy ${worksrcpath}/doc ${destroot}${prefix}/share/${subport}/doc
+ xinstall -m 0644 -W ${worksrcpath} AUTHORS CHANGES COPYING README \
+ ${destroot}${prefix}/share/${subport}/doc/
}
variant openssl description {Enable OpenSSL support} {
- license-append OpenSSL SSLeay
- depends_lib-append port:openssl
- configure.args-append --enable-openssl=${prefix}
+ depends_lib-append port:openssl
+ configure.args-delete \
+ --enable-openssl=no
+ configure.args-append \
+ --enable-openssl=${prefix}
}
-test.run yes
-test.target verify
+test.run yes
+test.target verify
+
+livecheck.url [lindex ${master_sites} 0]
+livecheck.type regex
+livecheck.regex "${name_package}-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120818/8e882046/attachment-0001.html>
More information about the macports-changes
mailing list