[97294] trunk/dports/databases/mysql55/Portfile
pixilla at macports.org
pixilla at macports.org
Sun Sep 2 16:08:21 PDT 2012
Revision: 97294
https://trac.macports.org/changeset/97294
Author: pixilla at macports.org
Date: 2012-09-02 16:08:18 -0700 (Sun, 02 Sep 2012)
Log Message:
-----------
databases/mysql55:
- Move homepage outside of subport.
- Make var names more consistent across mysql ports.
- Remove lib dependency on cmake.
- Add comment about why we deactivate old versions of mariadb-server.
- Do not set livecheck.version to it's default value.
Modified Paths:
--------------
trunk/dports/databases/mysql55/Portfile
Modified: trunk/dports/databases/mysql55/Portfile
===================================================================
--- trunk/dports/databases/mysql55/Portfile 2012-09-02 22:11:10 UTC (rev 97293)
+++ trunk/dports/databases/mysql55/Portfile 2012-09-02 23:08:18 UTC (rev 97294)
@@ -13,6 +13,7 @@
platforms darwin
license GPL-2
maintainers pixilla openmaintainer
+homepage http://www.mysql.com/
if {$subport == $name} {
@@ -20,7 +21,7 @@
PortGroup cmake 1.0
PortGroup select 1.0
- set branch [join [lrange [split ${version} .] 0 1] .]
+ set version_branch [join [lrange [split ${version} .] 0 1] .]
revision ${revision_client}
license GPL-2
@@ -28,14 +29,13 @@
long_description MySQL is an open-source, multi-threaded SQL database with a command \
syntax very similar to mSQL.
- homepage http://www.mysql.com/
master_sites \
- http://mysql.he.net/Downloads/MySQL-${branch}/ \
- http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${branch}/ \
- http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${branch}/ \
- http://mirror.facebook.net/mysql/Downloads/MySQL-${branch}/ \
- http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/ \
- http://mysql.mirrors.pair.com/Downloads/MySQL-${branch}/
+ http://mysql.he.net/Downloads/MySQL-${version_branch}/ \
+ http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${version_branch}/ \
+ http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${version_branch}/ \
+ http://mirror.facebook.net/mysql/Downloads/MySQL-${version_branch}/ \
+ http://ftp.plusline.de/mysql/Downloads/MySQL-${version_branch}/ \
+ http://mysql.mirrors.pair.com/Downloads/MySQL-${version_branch}/
distname mysql-${version}
use_parallel_build yes
@@ -46,8 +46,7 @@
checksums rmd160 cd4b94a95c7639f96870c802b9b334d9e705b9a2 \
sha256 51ffafbd82039f8afbe5b3c26f15cc338ed6cd4f67e56d7dd33efaa28c9d99e4
- depends_lib-append port:zlib \
- port:cmake
+ depends_lib-append port:zlib
depends_run-append port:mysql_select
select.group mysql
@@ -139,6 +138,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.25] < 0 } {
@@ -178,9 +180,8 @@
}
livecheck.type regex
- livecheck.version [lindex [split ${version} -] 0]
livecheck.url http://dev.mysql.com/
- livecheck.regex "<a href=\"http://dev.mysql.com/downloads/mysql/\[^\"\]+\">(${branch}(\.\[0-9.\]+)?)\[^<\]*</a>"
+ livecheck.regex "<a href=\"http://dev.mysql.com/downloads/mysql/\[^\"\]+\">(${version_branch}(\.\[0-9.\]+)?)\[^<\]*</a>"
}
subport ${name_mysql}-server {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120902/67fff006/attachment.html>
More information about the macports-changes
mailing list