[100171] branches/pixilla-mysqls-55/dports/databases

pixilla at macports.org pixilla at macports.org
Sat Dec 1 11:22:34 PST 2012


Revision: 100171
          https://trac.macports.org/changeset/100171
Author:   pixilla at macports.org
Date:     2012-12-01 11:22:34 -0800 (Sat, 01 Dec 2012)
Log Message:
-----------
databases/mysql55-lib_mysqludf_fproj4:
- Replace mysql5-lib_mysqludf_fproj4 with mysql55-lib_mysqludf_fproj4.
- Add license.
databases/mysql55-lib_mysqludf_json:
- Replace mysql5-lib_mysqludf_json with mysql55-lib_mysqludf_json.
- Replace mariadb-lib_mysqludf_json with mariadb55-lib_mysqludf_json.
- Replace percona-lib_mysqludf_json with percona55-lib_mysqludf_json.
databases/mysql55-lib_mysqludf_preg:
- Replace mysql5-lib_mysqludf_preg with mysql55-lib_mysqludf_preg.
- Replace mariadb-lib_mysqludf_preg with mariadb55-lib_mysqludf_preg.
- Replace percona-lib_mysqludf_preg with percona55-lib_mysqludf_preg.
- Add license.
databases/mysql55-lib_mysqludf_xql:
- Replace mysql5-lib_mysqludf_xql with mysql55-lib_mysqludf_xql.
- Replace mariadb-lib_mysqludf_xql with mariadb55-lib_mysqludf_xql.
- Replace percona-lib_mysqludf_xql with percona55-lib_mysqludf_xql.
- Add license.

Modified Paths:
--------------
    branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_fproj4/Portfile
    branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_json/Portfile
    branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_preg/Portfile
    branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_xql/Portfile

Modified: branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_fproj4/Portfile
===================================================================
--- branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_fproj4/Portfile	2012-12-01 18:36:04 UTC (rev 100170)
+++ branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_fproj4/Portfile	2012-12-01 19:22:34 UTC (rev 100171)
@@ -9,7 +9,8 @@
 set mysql.name      mysql55
 name                ${mysql.name}-${package.name}
 
-set mysql.ports     {mysql5 mysql51 mysql55 mariadb55 percona55}
+set mysql.ports     {mysql51 mysql55 mariadb55 percona55}
+set mysql.selected  ""
 foreach mysql.port ${mysql.ports} {
 
     lappend mysql.extension.ports "${mysql.port}-${package.name}"
@@ -21,113 +22,143 @@
     if {${mysql.extension.port} == ${name} == ${subport}} {
 
         depends_lib-append  port:${mysql.port}
+        set mysql.selected  ${mysql.port}
     } else {
 
         subport ${mysql.port}-${package.name} {
-    
+
             set mysql.name      ${mysql.port}
             depends_lib-append  port:${mysql.port}
+            set mysql.selected  ${mysql.port}
         }
     }
 }
 subport mariadb-${package.name} {
+
     replaced_by         mariadb55-${package.name}
+    set obsolete.action readme
     PortGroup           obsolete 1.0
 
-    revision            1
+    version             0.1.0
+    revision            2
 }
 subport percona-${package.name} {
+
     replaced_by         percona55-${package.name}
+    set obsolete.action readme
     PortGroup           obsolete 1.0
 
-    revision            1
+    version             0.1.0
+    revision            2
 }
+subport mysql5-${package.name} {
 
-categories          databases lang
-maintainers         pixilla
-platforms           darwin
+    replaced_by         mysql55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-description         Based on program PROJ.4, ${package.name} converts geographic longitude and \
-                    latitude coordinates into cartesian coordinates.
-long_description    This library is based on program PROJ.4 which is a standard Unix filter \
-                    function which converts geographic longitude and latitude coordinates \
-                    into cartesian coordinates, by means of a wide variety of cartographic \
-                    projection functions.
+    version             0.1.0
+    revision            2
+}
 
-homepage            http://www.mysqludf.org/${package.name}/
-master_sites        ${homepage}
+if {${mysql.selected} != ""} {
 
-dist_subdir         lib_mysqludf
-distname            ${package.name}-${version}
-worksrcdir          ${distname}-src
+    categories          databases lang
+    maintainers         pixilla openmaintainer
+    platforms           darwin
+    license             LGPL
 
-checksums           rmd160  062aabb5764d9c0d6bf3803faa7a5e0d0116d90a \
-                    sha256  22ec139f1652040828da18a4b3a469355486d459f8000d25381422b9c9e45cdd
+    description         Based on program PROJ.4, ${package.name} converts geographic longitude and \
+                        latitude coordinates into cartesian coordinates.
+    long_description    This library is based on program PROJ.4 which is a standard Unix filter \
+                        function which converts geographic longitude and latitude coordinates \
+                        into cartesian coordinates, by means of a wide variety of cartographic \
+                        projection functions.
 
-depends_lib-append  port:proj
+    homepage            http://www.mysqludf.org/${package.name}/
+    master_sites        ${homepage}
 
-use_configure       no
+    dist_subdir         lib_mysqludf
+    distname            ${package.name}-${version}
+    worksrcdir          ${distname}-src
 
-configure.cflags-append \
-                    -I${prefix}/include/${mysql.name} \
-                    -I${prefix}/include/${mysql.name}/mysql \
-                    -lproj \
-                    -bundle \
-                    -undefined dynamic_lookup
+    checksums           rmd160  062aabb5764d9c0d6bf3803faa7a5e0d0116d90a \
+                        sha256  22ec139f1652040828da18a4b3a469355486d459f8000d25381422b9c9e45cdd
 
-build {
-    set cmd "${configure.cpp} ${configure.ldflags} ${configure.cflags} ${configure.cppflags}"
-    if [variant_isset universal] {
+    depends_lib-append  port:proj
 
-        set  "${cmd} ${configure.universal_cflags}"
-    }
-    system "cd ${worksrcpath} && ${cmd} ${package.name}.c -o ${package.name}.so"
+    use_configure       no
 
-    xinstall -d ${worksrcpath}/macports
-    set fp [open ${worksrcpath}/macports/installdb.sql w]
-    puts $fp "USE mysql;"
-    puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_fPROJ4_info;"
-    puts $fp "DROP FUNCTION IF EXISTS fPROJ4_transform;"
-    puts $fp "DROP FUNCTION IF EXISTS fPROJ4_Geo2UTM;"
-    puts $fp "DROP FUNCTION IF EXISTS fPROJ4_UTM2Geo;"
-    puts $fp "CREATE FUNCTION lib_mysqludf_fPROJ4_info RETURNS STRING SONAME '${package.name}.so';"
-    puts $fp "CREATE FUNCTION fPROJ4_transform RETURNS REAL SONAME '${package.name}.so';"
-    puts $fp "CREATE FUNCTION fPROJ4_Geo2UTM RETURNS REAL SONAME '${package.name}.so';"
-    puts $fp "CREATE FUNCTION fPROJ4_UTM2Geo RETURNS REAL SONAME '${package.name}.so';"
-    close $fp
+    configure.cflags-append \
+                        -I${prefix}/include/${mysql.name} \
+                        -I${prefix}/include/${mysql.name}/mysql \
+                        -lproj \
+                        -bundle \
+                        -undefined dynamic_lookup
 
-    set fp [open ${worksrcpath}/macports/uninstalldb.sql w]
-    puts $fp "USE mysql;"
-    puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_fPROJ4_info;"
-    puts $fp "DROP FUNCTION IF EXISTS fPROJ4_transform;"
-    puts $fp "DROP FUNCTION IF EXISTS fPROJ4_Geo2UTM;"
-    puts $fp "DROP FUNCTION IF EXISTS fPROJ4_UTM2Geo;"
-    close $fp
-}
+    build {
+        set cmd "${configure.cpp} ${configure.ldflags} ${configure.cflags} ${configure.cppflags}"
+        if [variant_isset universal] {
 
-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/lib/${mysql.name}/plugin
-    xinstall -m 644 -W ${worksrcpath} \
-        ${package.name}.so \
-        ${destroot}${prefix}/lib/${mysql.name}/plugin
-    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    xinstall -m 644 -W ${worksrcpath}/macports \
-        installdb.sql uninstalldb.sql \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}
-}
+            set  "${cmd} ${configure.universal_cflags}"
+        }
+        system "cd ${worksrcpath} && ${cmd} ${package.name}.c -o ${package.name}.so"
 
-livecheck.url       [lindex ${master_sites} 0]
-livecheck.type      regex
-livecheck.regex     "${package.name}-(\\d+\\.\\d+(\[\\drc.\]+)?)${extract.suffix}"
+        xinstall -d ${worksrcpath}/macports
+        set fp [open ${worksrcpath}/macports/installdb.sql w]
+        puts $fp "USE mysql;"
+        puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_fPROJ4_info;"
+        puts $fp "DROP FUNCTION IF EXISTS fPROJ4_transform;"
+        puts $fp "DROP FUNCTION IF EXISTS fPROJ4_Geo2UTM;"
+        puts $fp "DROP FUNCTION IF EXISTS fPROJ4_UTM2Geo;"
+        puts $fp "CREATE FUNCTION lib_mysqludf_fPROJ4_info RETURNS STRING SONAME '${package.name}.so';"
+        puts $fp "CREATE FUNCTION fPROJ4_transform RETURNS REAL SONAME '${package.name}.so';"
+        puts $fp "CREATE FUNCTION fPROJ4_Geo2UTM RETURNS REAL SONAME '${package.name}.so';"
+        puts $fp "CREATE FUNCTION fPROJ4_UTM2Geo RETURNS REAL SONAME '${package.name}.so';"
+        close $fp
 
-notes "
+        set fp [open ${worksrcpath}/macports/uninstalldb.sql w]
+        puts $fp "USE mysql;"
+        puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_fPROJ4_info;"
+        puts $fp "DROP FUNCTION IF EXISTS fPROJ4_transform;"
+        puts $fp "DROP FUNCTION IF EXISTS fPROJ4_Geo2UTM;"
+        puts $fp "DROP FUNCTION IF EXISTS fPROJ4_UTM2Geo;"
+        close $fp
+    }
 
+    destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/lib/${mysql.name}/plugin
+        xinstall -m 644 -W ${worksrcpath} \
+            ${package.name}.so \
+            ${destroot}${prefix}/lib/${mysql.name}/plugin
+        xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        xinstall -m 644 -W ${worksrcpath}/macports \
+            installdb.sql uninstalldb.sql \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}
+    }
+
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.type      regex
+    livecheck.regex     "${package.name}-(\\d+\\.\\d+(\[\\drc.\]+)?)${extract.suffix}"
+
+    notes "
+
     This port installs two mysql scripts to simplify the install/uninstall of the ${package.name}
     UDFs (user-defined-functions).
-    
+
     Install:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/installdb.sql
 
     Uninstall:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/uninstalldb.sql
-    "
+"
+
+} else {
+
+    notes "
+
+This port is in the process of being replaced by ${replaced_by}.
+Please install the ${replaced_by} instead.
+
+"
+}

Modified: branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_json/Portfile
===================================================================
--- branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_json/Portfile	2012-12-01 18:36:04 UTC (rev 100170)
+++ branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_json/Portfile	2012-12-01 19:22:34 UTC (rev 100171)
@@ -8,7 +8,8 @@
 set mysql.name      mysql55
 name                ${mysql.name}-${package.name}
 
-set mysql.ports     {mysql5 mysql51 mysql55 mariadb percona}
+set mysql.ports     {mysql51 mysql55 mariadb55 percona55}
+set mysql.selected  ""
 foreach mysql.port ${mysql.ports} {
 
     lappend mysql.extension.ports "${mysql.port}-${package.name}"
@@ -20,109 +21,150 @@
     if {${mysql.extension.port} == ${name} == ${subport}} {
 
         depends_lib-append  port:${mysql.port}
+        set mysql.selected  ${mysql.port}
     } else {
 
         subport ${mysql.port}-${package.name} {
-    
+
             set mysql.name      ${mysql.port}
             depends_lib-append  port:${mysql.port}
+            set mysql.selected  ${mysql.port}
         }
     }
 }
+subport mariadb-${package.name} {
 
-categories          databases lang
-maintainers         pixilla
-platforms           darwin
-license             LGPL
+    replaced_by         mariadb55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-description         Map database data to the JSON.
-long_description    ${description}
+    version             0.0.2
+    revision            1
+}
+subport percona-${package.name} {
 
-homepage            http://www.mysqludf.org/${package.name}/
-master_sites        ${homepage}
+    replaced_by         percona55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-dist_subdir         lib_mysqludf
-distname            ${package.name}_${version}
+    version             0.0.2
+    revision            1
+}
+subport mysql5-${package.name} {
 
-checksums           rmd160  4c98739ed2753580195e11e602777188bc9a20ff \
-                    sha256  bed11c73d1e5d23669051b8a430f5c17b961e462ee82612b7dcdbceba47052b5
+    replaced_by         mysql55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-extract.mkdir       yes
+    version             0.0.2
+    revision            1
+}
 
-use_configure       no
+if {${mysql.selected} != ""} {
 
-configure.cflags-append \
-                    -I${prefix}/include/${mysql.name} \
-                    -I${prefix}/include/${mysql.name}/mysql \
-                    -bundle \
-                    -undefined dynamic_lookup
+    categories          databases lang
+    maintainers         pixilla openmaintainer
+    platforms           darwin
+    license             LGPL
 
-post-extract {
-    move ${worksrcpath}/${package.name}.so \
-            ${worksrcpath}/${package.name}.so.orig
-}
+    description         Map database data to the JSON.
+    long_description    ${description}
 
-build {
-    set cmd "${configure.cpp} ${configure.ldflags} ${configure.cflags} ${configure.cppflags}"
-    if [variant_isset universal] {
+    homepage            http://www.mysqludf.org/${package.name}/
+    master_sites        ${homepage}
 
-        set  "${cmd} ${configure.universal_cflags}"
+    dist_subdir         lib_mysqludf
+    distname            ${package.name}_${version}
+
+    checksums           rmd160  4c98739ed2753580195e11e602777188bc9a20ff \
+                        sha256  bed11c73d1e5d23669051b8a430f5c17b961e462ee82612b7dcdbceba47052b5
+
+    extract.mkdir       yes
+
+    use_configure       no
+
+    configure.cflags-append \
+                        -I${prefix}/include/${mysql.name} \
+                        -I${prefix}/include/${mysql.name}/mysql \
+                        -bundle \
+                        -undefined dynamic_lookup
+
+    post-extract {
+        move ${worksrcpath}/${package.name}.so \
+                ${worksrcpath}/${package.name}.so.orig
     }
-    system "cd ${worksrcpath} && ${cmd} ${package.name}.c -o ${package.name}.so"
 
-    xinstall -d ${worksrcpath}/macports
-    set fp [open ${worksrcpath}/macports/installdb.sql w]
-    puts $fp "USE mysql;"
-    puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_json_info;"
-    puts $fp "DROP FUNCTION IF EXISTS json_array;"
-    puts $fp "DROP FUNCTION IF EXISTS json_members;"
-    puts $fp "DROP FUNCTION IF EXISTS json_object;"
-    puts $fp "DROP FUNCTION IF EXISTS json_values;"
-    puts $fp "CREATE FUNCTION lib_mysqludf_json_info RETURNS STRING SONAME '${package.name}.so';"
-    puts $fp "CREATE FUNCTION json_array RETURNS REAL SONAME '${package.name}.so';"
-    puts $fp "CREATE FUNCTION json_members RETURNS REAL SONAME '${package.name}.so';"
-    puts $fp "CREATE FUNCTION json_object RETURNS REAL SONAME '${package.name}.so';"
-    puts $fp "CREATE FUNCTION json_values RETURNS REAL SONAME '${package.name}.so';"
-    close $fp
+    build {
+        set cmd "${configure.cpp} ${configure.ldflags} ${configure.cflags} ${configure.cppflags}"
+        if [variant_isset universal] {
 
-    set fp [open ${worksrcpath}/macports/uninstalldb.sql w]
-    puts $fp "USE mysql;"
-    puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_json_info;"
-    puts $fp "DROP FUNCTION IF EXISTS json_array;"
-    puts $fp "DROP FUNCTION IF EXISTS json_members;"
-    puts $fp "DROP FUNCTION IF EXISTS json_object;"
-    puts $fp "DROP FUNCTION IF EXISTS json_values;"
-    close $fp
-}
+            set  "${cmd} ${configure.universal_cflags}"
+        }
+        system "cd ${worksrcpath} && ${cmd} ${package.name}.c -o ${package.name}.so"
 
-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/lib/${mysql.name}/plugin
-    xinstall -m 644 -W ${worksrcpath} \
-        ${package.name}.so \
-        ${destroot}${prefix}/lib/${mysql.name}/plugin
-    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    xinstall -m 644 -W ${worksrcpath}/macports installdb.sql uninstalldb.sql \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc/html
-    xinstall -m 644 ${worksrcpath}/${package.name}.html \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc/html/index.html
-}
+        xinstall -d ${worksrcpath}/macports
+        set fp [open ${worksrcpath}/macports/installdb.sql w]
+        puts $fp "USE mysql;"
+        puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_json_info;"
+        puts $fp "DROP FUNCTION IF EXISTS json_array;"
+        puts $fp "DROP FUNCTION IF EXISTS json_members;"
+        puts $fp "DROP FUNCTION IF EXISTS json_object;"
+        puts $fp "DROP FUNCTION IF EXISTS json_values;"
+        puts $fp "CREATE FUNCTION lib_mysqludf_json_info RETURNS STRING SONAME '${package.name}.so';"
+        puts $fp "CREATE FUNCTION json_array RETURNS REAL SONAME '${package.name}.so';"
+        puts $fp "CREATE FUNCTION json_members RETURNS REAL SONAME '${package.name}.so';"
+        puts $fp "CREATE FUNCTION json_object RETURNS REAL SONAME '${package.name}.so';"
+        puts $fp "CREATE FUNCTION json_values RETURNS REAL SONAME '${package.name}.so';"
+        close $fp
 
-livecheck.url       [lindex ${master_sites} 0]
-livecheck.type      regex
-livecheck.regex     "href=.${package.name}_((?!\\${extract.suffix}).*)\\${extract.suffix}."
+        set fp [open ${worksrcpath}/macports/uninstalldb.sql w]
+        puts $fp "USE mysql;"
+        puts $fp "DROP FUNCTION IF EXISTS lib_mysqludf_json_info;"
+        puts $fp "DROP FUNCTION IF EXISTS json_array;"
+        puts $fp "DROP FUNCTION IF EXISTS json_members;"
+        puts $fp "DROP FUNCTION IF EXISTS json_object;"
+        puts $fp "DROP FUNCTION IF EXISTS json_values;"
+        close $fp
+    }
 
-notes "
+    destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/lib/${mysql.name}/plugin
+        xinstall -m 644 -W ${worksrcpath} \
+            ${package.name}.so \
+            ${destroot}${prefix}/lib/${mysql.name}/plugin
+        xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        xinstall -m 644 -W ${worksrcpath}/macports installdb.sql uninstalldb.sql \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc/html
+        xinstall -m 644 ${worksrcpath}/${package.name}.html \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc/html/index.html
+    }
 
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.type      regex
+    livecheck.regex     "href=.${package.name}_((?!\\${extract.suffix}).*)\\${extract.suffix}."
+
+    notes "
+
     This port installs two mysql scripts to simplify the install/uninstall of the ${package.name}
     UDFs (user-defined-functions) along with html documentation describing the functions syntax.
-    
+
     Install:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/installdb.sql
 
     Uninstall:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/uninstalldb.sql
-    
+
     HTML Documentation:
     $ open ${prefix}/share/${mysql.name}/${package.name}/doc/html/index.html
-    "
+"
+
+} else {
+
+    notes "
+
+This port is in the process of being replaced by ${replaced_by}.
+Please install the ${replaced_by} instead.
+
+"
+}

Modified: branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_preg/Portfile
===================================================================
--- branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_preg/Portfile	2012-12-01 18:36:04 UTC (rev 100170)
+++ branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_preg/Portfile	2012-12-01 19:22:34 UTC (rev 100171)
@@ -8,7 +8,8 @@
 set mysql.name      mysql55
 name                ${mysql.name}-${package.name}
 
-set mysql.ports     {mysql5 mysql51 mysql55 mariadb percona}
+set mysql.ports     {mysql51 mysql55 mariadb55 percona55}
+set mysql.selected  ""
 foreach mysql.port ${mysql.ports} {
 
     lappend mysql.extension.ports "${mysql.port}-${package.name}"
@@ -20,74 +21,118 @@
     if {${mysql.extension.port} == ${name} == ${subport}} {
 
         depends_lib-append  port:${mysql.port}
+        set mysql.selected  ${mysql.port}
     } else {
 
         subport ${mysql.port}-${package.name} {
-    
+
             set mysql.name      ${mysql.port}
             depends_lib-append  port:${mysql.port}
+            set mysql.selected  ${mysql.port}
         }
     }
 }
+subport mariadb-${package.name} {
 
-categories          databases lang
-maintainers         pixilla
-platforms           darwin
+    replaced_by         mariadb55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-description         ${package.name} is a library of mysql UDFs (user-defined-functions) that \
-                    provide access to the PCRE (perl compatible-regular-expressions) library for \
-                    pattern matching.
-long_description    ${description} The PCRE library is a set of functions that implement regular \
-                    expression pattern matching using the same syntax and semantics as Perl 5. \
-                    This syntax can often handle more complex expressions and capturing than \
-                    standard regular expression implementations.
+    version             1.0.1
+    revision            1
+}
+subport percona-${package.name} {
 
-homepage            http://www.mysqludf.org/${package.name}/
-master_sites        ${homepage}
+    replaced_by         percona55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-dist_subdir         lib_mysqludf
-distname            ${package.name}-${version}
+    version             1.0.1
+    revision            1
+}
+subport mysql5-${package.name} {
 
-checksums           rmd160  21dfbebe4b421da8acf4e14892fb272bee804f58 \
-                    sha256  50c7179b354148d66a2324f1a8ed918b133924c8fc0cd53c28afda70e1768daa
+    replaced_by         mysql55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-configure.args-append \
-                    --with-pcre=${prefix} \
-                    --with-mysql=${prefix}/lib/${mysql.name}/bin/mysql_config \
-                    --with-mysqlbin=${prefix}/lib/${mysql.name}/bin/ \
-                    --with-mysqladmin=${prefix}/lib/${mysql.name}/bin/mysqladmin \
-                    --with-mysqltest=${prefix}/lib/${mysql.name}/bin/mysqltestc
-
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    xinstall -m 644 -W ${worksrcpath} \
-        AUTHORS COPYING ChangeLog INSTALL NEWS README installdb.sql uninstalldb.sql \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc
-    copy ${worksrcpath}/doc/html \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc
-    copy ${worksrcpath}/test \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile
-    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.am
-    delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.in
+    version             1.0.1
+    revision            1
 }
 
-livecheck.url       ${master_sites}
-livecheck.type      regex
-livecheck.regex     "${package.name}-(\\d+\\.\\d+(\[\\drc.\]+)?)${extract.suffix}"
+if {${mysql.selected} != ""} {
 
-notes "
+    categories          databases lang
+    maintainers         pixilla openmaintainer
+    platforms           darwin
+    license             LGPL
 
+    description         ${package.name} is a library of mysql UDFs (user-defined-functions) that \
+                        provide access to the PCRE (perl compatible-regular-expressions) library for \
+                        pattern matching.
+    long_description    ${description} The PCRE library is a set of functions that implement regular \
+                        expression pattern matching using the same syntax and semantics as Perl 5. \
+                        This syntax can often handle more complex expressions and capturing than \
+                        standard regular expression implementations.
+
+    homepage            http://www.mysqludf.org/${package.name}/
+    master_sites        ${homepage}
+
+    dist_subdir         lib_mysqludf
+    distname            ${package.name}-${version}
+
+    checksums           rmd160  21dfbebe4b421da8acf4e14892fb272bee804f58 \
+                        sha256  50c7179b354148d66a2324f1a8ed918b133924c8fc0cd53c28afda70e1768daa
+
+    depends_lib-append  port:pcre
+
+    configure.args-append \
+                        --with-pcre=${prefix} \
+                        --with-mysql=${prefix}/lib/${mysql.name}/bin/mysql_config \
+                        --with-mysqlbin=${prefix}/lib/${mysql.name}/bin/ \
+                        --with-mysqladmin=${prefix}/lib/${mysql.name}/bin/mysqladmin \
+                        --with-mysqltest=${prefix}/lib/${mysql.name}/bin/mysqltestc
+
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        xinstall -m 644 -W ${worksrcpath} \
+            AUTHORS COPYING ChangeLog INSTALL NEWS README installdb.sql uninstalldb.sql \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc
+        copy ${worksrcpath}/doc/html \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}/doc
+        copy ${worksrcpath}/test \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile
+        delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.am
+        delete ${destroot}${prefix}/share/${mysql.name}/${package.name}/test/Makefile.in
+    }
+
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.type      regex
+    livecheck.regex     "${package.name}-(\\d+\\.\\d+(\[\\drc.\]+)?)${extract.suffix}"
+
+    notes "
+
     This port installs two mysql scripts to simplify the install/uninstall of the ${package.name}
     UDFs (user-defined-functions) along with html documentation describing the functions syntax.
-    
+
     Install:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/installdb.sql
 
     Uninstall:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/uninstalldb.sql
-    
+
     HTML Documentation:
     $ open ${prefix}/share/${mysql.name}/${package.name}/doc/html/index.html
-    "
+"
+
+} else {
+
+    notes "
+
+This port is in the process of being replaced by ${replaced_by}.
+Please install the ${replaced_by} instead.
+
+"
+}

Modified: branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_xql/Portfile
===================================================================
--- branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_xql/Portfile	2012-12-01 18:36:04 UTC (rev 100170)
+++ branches/pixilla-mysqls-55/dports/databases/mysql55-lib_mysqludf_xql/Portfile	2012-12-01 19:22:34 UTC (rev 100171)
@@ -8,90 +8,126 @@
 set mysql.name      mysql55
 name                ${mysql.name}-${package.name}
 
-set mp.ports {
-    mysql5
-    mysql51
-    mysql55
-    mariadb
-    percona
-}
-set mp.names        {}
-foreach mp.port ${mp.ports} {
+set mysql.ports     {mysql51 mysql55 mariadb55 percona55}
+set mysql.selected  ""
+foreach mysql.port ${mysql.ports} {
 
-    lappend mp.names "${mp.port}-${package.name}"
+    lappend mysql.extension.ports "${mysql.port}-${package.name}"
 }
-foreach mp.name ${mp.names} {
+foreach mysql.extension.port ${mysql.extension.ports} {
 
-    set idx [lsearch ${mp.names} ${mp.name}]
-    set mp.port [lindex ${mp.ports} $idx]
-    if {[string compare ${mp.name} ${name}] == 0 && [string compare ${mp.name} ${subport}] == 0} {
+    set idx [lsearch ${mysql.extension.ports} ${mysql.extension.port}]
+    set mysql.port [lindex ${mysql.ports} $idx]
+    if {${mysql.extension.port} == ${name} == ${subport}} {
 
-        depends_lib-append  port:${mp.port}
+        depends_lib-append  port:${mysql.port}
+        set mysql.selected  ${mysql.port}
     } else {
 
-        subport ${mp.name} {
-    
-            set mysql.name      ${mp.port}
-            depends_lib-append  port:${mp.port}
+        subport ${mysql.port}-${package.name} {
+
+            set mysql.name      ${mysql.port}
+            depends_lib-append  port:${mysql.port}
+            set mysql.selected  ${mysql.port}
         }
     }
 }
+subport mariadb-${package.name} {
 
-categories          databases lang
-maintainers         pixilla
-platforms           darwin
+    replaced_by         mariadb55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-description         The lib_mysqludf_xql library provides an array of functions, which can be used \
-                    to create XML output directly from MySQL using a single SQL query.
-long_description    ${description} This prevents having to convert a MySQL result to XML in a PHP \
-                    script, Ruby script, etc. This improves performance and simplifies your code. \
-                    \
-                    The library provides the same functionality as SQL/XML, seen in MS SQL server \
-                    and Oracle. However it uses normal functions. By using subqueries the same \
-                    results as SQL/XML can be generated.
+    version             1.0.0
+    revision            1
+}
+subport percona-${package.name} {
 
-homepage            http://www.mysqludf.org/${package.name}/
-master_sites        ${homepage}
+    replaced_by         percona55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-dist_subdir         lib_mysqludf
-distname            ${package.name}-${version}
+    version             1.0.0
+    revision            1
+}
+subport mysql5-${package.name} {
 
-checksums           rmd160  6750ca0e97ee096194c33703d0b35b645920a0ee \
-                    sha256  f992fcd77f7596aee32ddeccbd9b31aa67c9cf2cd04f84959db63f87e1ca0321
+    replaced_by         mysql55-${package.name}
+    set obsolete.action readme
+    PortGroup           obsolete 1.0
 
-depends_lib-append  port:libxml2
+    version             1.0.0
+    revision            1
+}
 
-configure.args-append \
-                    --with-libxml2=${prefix}/lib/xml2Conf.sh \
-                    --with-mysql=${prefix}/lib/${mysql.name}/bin/mysql_config \
-                    --with-mysqlbin=${prefix}/lib/${mysql.name}/bin/ \
-                    --with-mysqladmin=${prefix}/lib/${mysql.name}/bin/mysqladmin \
-                    --with-mysqltest=${prefix}/lib/${mysql.name}/bin/mysqltestc
+if {${mysql.selected} != ""} {
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    xinstall -m 644 -W ${worksrcpath} \
-        API AUTHORS COPYING ChangeLog INSTALL NEWS README installdb.sql uninstalldb.sql \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}
-    copy ${worksrcpath}/test \
-        ${destroot}${prefix}/share/${mysql.name}/${package.name}
-}
+    categories          databases lang
+    maintainers         pixilla openmaintainer
+    platforms           darwin
+    license             LGPL
 
-livecheck.url       ${master_sites}
-livecheck.type      regex
-livecheck.regex     "${package.name}-(\\d+\\.\\d+(\[\\drc.\]+)?)${extract.suffix}"
+    description         The lib_mysqludf_xql library provides an array of functions, which can be used \
+                        to create XML output directly from MySQL using a single SQL query.
+    long_description    ${description} This prevents having to convert a MySQL result to XML in a PHP \
+                        script, Ruby script, etc. This improves performance and simplifies your code. \
+                        \
+                        The library provides the same functionality as SQL/XML, seen in MS SQL server \
+                        and Oracle. However it uses normal functions. By using subqueries the same \
+                        results as SQL/XML can be generated.
 
-notes "
+    homepage            http://www.mysqludf.org/${package.name}/
+    master_sites        ${homepage}
 
+    dist_subdir         lib_mysqludf
+    distname            ${package.name}-${version}
+
+    checksums           rmd160  6750ca0e97ee096194c33703d0b35b645920a0ee \
+                        sha256  f992fcd77f7596aee32ddeccbd9b31aa67c9cf2cd04f84959db63f87e1ca0321
+
+    depends_lib-append  port:libxml2 port:zlib port:libiconv
+
+    configure.args-append \
+                        --with-libxml2=${prefix}/lib/xml2Conf.sh \
+                        --with-mysql=${prefix}/lib/${mysql.name}/bin/mysql_config \
+                        --with-mysqlbin=${prefix}/lib/${mysql.name}/bin/ \
+                        --with-mysqladmin=${prefix}/lib/${mysql.name}/bin/mysqladmin \
+                        --with-mysqltest=${prefix}/lib/${mysql.name}/bin/mysqltestc
+
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        xinstall -m 644 -W ${worksrcpath} \
+            API AUTHORS COPYING ChangeLog INSTALL NEWS README installdb.sql uninstalldb.sql \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}
+        copy ${worksrcpath}/test \
+            ${destroot}${prefix}/share/${mysql.name}/${package.name}
+    }
+
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.type      regex
+    livecheck.regex     "${package.name}-(\\d+\\.\\d+(\[\\drc.\]+)?)${extract.suffix}"
+
+    notes "
+
     This port installs two mysql scripts to simplify the install/uninstall of the ${package.name}
     UDFs (user-defined-functions).
-    
+
     Install:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/installdb.sql
 
     Uninstall:
     \$ ${prefix}/lib/${mysql.name}/bin/mysql -uroot -p < ${prefix}/share/${mysql.name}/${package.name}/uninstalldb.sql
-    
+
     API:
     $ cat ${prefix}/share/${mysql.name}/${package.name}/API
-    "
+"
+
+} else {
+
+    notes "
+
+This port is in the process of being replaced by ${replaced_by}.
+Please install the ${replaced_by} instead.
+
+"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121201/4056693b/attachment-0001.html>


More information about the macports-changes mailing list