[99856] branches/pixilla-mysqls-55/dports/databases/libzdb-mysql55/Portfile

pixilla at macports.org pixilla at macports.org
Mon Nov 19 05:59:03 PST 2012


Revision: 99856
          https://trac.macports.org/changeset/99856
Author:   pixilla at macports.org
Date:     2012-11-19 05:59:03 -0800 (Mon, 19 Nov 2012)
Log Message:
-----------
databases/libzdb-mysql55:
- Mysql5, mariadb and percona subports are replaced by mysql55, mariadb55 and percona55 respectively.

Modified Paths:
--------------
    branches/pixilla-mysqls-55/dports/databases/libzdb-mysql55/Portfile

Modified: branches/pixilla-mysqls-55/dports/databases/libzdb-mysql55/Portfile
===================================================================
--- branches/pixilla-mysqls-55/dports/databases/libzdb-mysql55/Portfile	2012-11-19 13:55:18 UTC (rev 99855)
+++ branches/pixilla-mysqls-55/dports/databases/libzdb-mysql55/Portfile	2012-11-19 13:59:03 UTC (rev 99856)
@@ -37,11 +37,10 @@
                     --enable-openssl=no
 
 set mp.ports {
-    mysql5
     mysql51
     mysql55
-    mariadb
-    percona
+    mariadb55
+    percona55
 }
 set mp.names        {}
 foreach mp.port ${mp.ports} {
@@ -55,8 +54,7 @@
     set mp.conflicts [lreplace ${mp.names} $idx $idx]
     if {[string compare ${mp.name} ${name}] == 0 && [string compare ${mp.name} ${subport}] == 0} {
 
-        description         "Enable MySQL support for ${mp.port}" \
-#        conflicts ${mp.conflicts}
+        description         "Enable MySQL support for ${mp.port}"
 
         depends_lib-append  port:${mp.port}
         configure.args-delete \
@@ -69,10 +67,9 @@
     } else {
 
         subport ${mp.name} {
-    
-            description         "Enable MySQL support for ${mp.port}" \
-#        conflicts ${mp.conflicts}
 
+            description         "Enable MySQL support for ${mp.port}"
+
             depends_lib-append  port:${mp.port}
             configure.args-delete \
                                 --without-mysql
@@ -84,7 +81,6 @@
         }
     }
 }
-
 set mp.ports {
     postgresql80
     postgresql81
@@ -108,8 +104,7 @@
 
     subport ${mp.name} {
 
-        description "Enable PostgreSQL support for ${mp.port}" \
-#        conflicts ${mp.conflicts}
+        description "Enable PostgreSQL support for ${mp.port}"
 
         depends_lib-append  port:${mp.port}
         configure.args-delete \
@@ -161,30 +156,63 @@
 
 subport libzdb {
 
-    replaced_by         libzdb-mysql5
+    replaced_by         libzdb-mysql55
+    set obsolete.action readme
     PortGroup           obsolete 1.0
+
+    version             2.10.5
+    revision            2
 }
+subport libzdb-mysql5 {
 
-post-destroot {
+    replaced_by         libzdb-mysql55
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-    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/
+    version             2.10.5
+    revision            1
 }
+subport libzdb-mariadb {
 
-variant openssl description {Enable OpenSSL support} {
+    replaced_by         libzdb-mariadb55
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-    depends_lib-append  port:openssl
-    configure.args-delete \
-                        --enable-openssl=no
-    configure.args-append \
-                        --enable-openssl=${prefix}
+    version             2.10.5
+    revision            1
 }
+subport libzdb-percona {
 
-test.run            yes
-test.target         verify
+    replaced_by         libzdb-percona55
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-livecheck.url       [lindex ${master_sites} 0]
-livecheck.type      regex
-livecheck.regex     "${name_package}-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz"
+    version             2.10.5
+    revision            1
+}
+
+set obsolete.ports [list libzdb libzdb-mysql5 libzdb-mariadb libzdb-percona]
+if {[lsearch ${obsolete.ports} ${subport}] == -1} {
+    variant openssl description {Enable OpenSSL support} {
+
+        depends_lib-append  port:openssl
+        configure.args-delete \
+                            --enable-openssl=no
+        configure.args-append \
+                            --enable-openssl=${prefix}
+    }
+
+    post-destroot {
+
+        copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 0644 -W ${worksrcpath} AUTHORS CHANGES COPYING README \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+
+    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"
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121119/e92745af/attachment.html>


More information about the macports-changes mailing list