[97283] trunk/dports/databases/mariadb/Portfile

pixilla at macports.org pixilla at macports.org
Sun Sep 2 06:46:49 PDT 2012


Revision: 97283
          https://trac.macports.org/changeset/97283
Author:   pixilla at macports.org
Date:     2012-09-02 06:46:47 -0700 (Sun, 02 Sep 2012)
Log Message:
-----------
databases/mariadb:
- Remove check for libevent.dylib. Closes #35928
- Remove lib dependency on cmake.
- Move homepage outside of subport.
- Remove unused branch var.
- Add comment about why we deactivate old versions of mariadb-server.
- Minor whitespace edit.

Modified Paths:
--------------
    trunk/dports/databases/mariadb/Portfile

Modified: trunk/dports/databases/mariadb/Portfile
===================================================================
--- trunk/dports/databases/mariadb/Portfile	2012-09-02 13:11:51 UTC (rev 97282)
+++ trunk/dports/databases/mariadb/Portfile	2012-09-02 13:46:47 UTC (rev 97283)
@@ -13,6 +13,7 @@
 platforms           darwin
 license             GPL-2
 maintainers         pixilla openmaintainer
+homepage            http://mariadb.org/
 
 if {$subport == $name} {
 
@@ -20,15 +21,12 @@
     PortGroup           cmake 1.0
     PortGroup           select 1.0
 
-    set branch          [join [lrange [split ${version} .] 0 1] .]
-
     revision            ${revision_client}
     license             GPL-2
     description         Multithreaded SQL database server
     long_description    MySQL is an open-source, multi-threaded SQL database with a command \
                         syntax very similar to mSQL.
 
-    homepage            http://mariadb.org/
     master_sites \
         http://ftp.osuosl.org/pub/mariadb/mariadb-${version}/kvm-tarbake-jaunty-x86/ \
         http://mirror2.hs-esslingen.de/mariadb/mariadb-${version}/kvm-tarbake-jaunty-x86/ \
@@ -52,15 +50,13 @@
     checksums           rmd160  9ba60ac2d768b4f89b76ed65f14de3c18e8590b2 \
                         sha256  40de17d2a54e1bd6da55144054c170b330d8e5281b236939238ff3574404bddb
 
-    depends_lib-append  port:zlib \
-                        port:cmake
+    depends_lib-append  port:zlib
     depends_run-append  port:mysql_select
 
     select.group        mysql
     select.file         ${filespath}/${name_mysql}
 
-    archcheck.files     lib/libz.dylib \
-                        lib/libevent.dylib
+    archcheck.files     lib/libz.dylib
 
     post-extract {
         file mkdir ${worksrcpath}/build_macports/macports
@@ -150,6 +146,9 @@
     }
 
     pre-activate {
+        # The macports-default.cnf is installed by ${name_mysql}.
+        # Early versions of ${name_mysql}-server installed macports-default.cnf so for a
+        # reasonable period we need to deactivate older versions of the ${name_mysql}-server.
         if { [file exists ${prefix}/etc/${name_mysql}/macports-default.cnf]
             && ![catch {set vers [lindex [registry_active ${name_mysql}-server] 0]}]
             && [vercmp [lindex $vers 1] 5.5.24] < 0 } {
@@ -163,7 +162,7 @@
     }
 
     post-activate {
-        if { ![file exists ${prefix}/etc/${name_mysql}/my.cnf] } {
+        if {![file exists ${prefix}/etc/${name_mysql}/my.cnf]} {
             copy ${prefix}/share/${name_mysql}/support-files/macports/my.cnf \
                 ${prefix}/etc/${name_mysql}/
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120902/bb45fb8a/attachment.html>


More information about the macports-changes mailing list