[87967] trunk/dports/databases/percona/Portfile
pixilla at macports.org
pixilla at macports.org
Wed Dec 14 11:40:58 PST 2011
Revision: 87967
http://trac.macports.org/changeset/87967
Author: pixilla at macports.org
Date: 2011-12-14 11:40:56 -0800 (Wed, 14 Dec 2011)
Log Message:
-----------
databases/percona:
- Remove "rel" from version.
- Use install_name_tool to fix libmysqlclient.18.dylib ID.
- Fix livecheck.
Modified Paths:
--------------
trunk/dports/databases/percona/Portfile
Modified: trunk/dports/databases/percona/Portfile
===================================================================
--- trunk/dports/databases/percona/Portfile 2011-12-14 18:38:30 UTC (rev 87966)
+++ trunk/dports/databases/percona/Portfile 2011-12-14 19:40:56 UTC (rev 87967)
@@ -7,14 +7,17 @@
name percona
conflicts mysql4 mysql5 mysql5-devel mariadb
-version 5.5.17-rel22.1
-set branch [regsub rel $version ""]
+set version_mysql 5.5.17
+set major [join [lrange [split ${version_mysql} .] 0 0] .]
+set branch [join [lrange [split ${version_mysql} .] 0 1] .]
+set release 22.1
+version ${version_mysql}-${release}
homepage http://www.percona.com/
categories databases
platforms darwin
maintainers mac.com:quest openmaintainer
license GPL-2
-distname Percona-Server-${version}
+distname Percona-Server-${version_mysql}-rel${release}
dist_subdir mysql5
use_parallel_build yes
@@ -26,7 +29,7 @@
with a command syntax very similar to mSQL.
master_sites \
- http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-${branch}/source/
+ http://www.percona.com/redir/downloads/Percona-Server-${branch}/Percona-Server-${version}/source/
checksums md5 77e2ff68ff3ffa60a48a1ee045056f15 \
sha1 e945653232925f85a4dddaf02647ec80bb03fa07 \
@@ -84,8 +87,6 @@
-DENABLE_GCOV:BOOL=OFF \
-DENABLE_DTRACE:BOOL=OFF
-# verbose configure output -- remove meconfigure.args-append -LAH
-
# Set compiler
configure.compiler apple-gcc-4.2
@@ -104,8 +105,14 @@
}
post-destroot {
- # Delete directories we don't want delete ${destroot}${prefix}/data ${destroot}${prefix}/mysql-test ${destroot}${prefix}/sql-bench
-
+ # Delete directories we don't want
+ delete ${destroot}${prefix}/data ${destroot}${prefix}/mysql-test ${destroot}${prefix}/sql-bench
+ # Fix link lib paths
+ foreach libname [glob -type f -tails -directory ${destroot}${libdir}/mysql *.dylib] {
+ if {[file type ${destroot}${libdir}/mysql/${libname}] == "file"} {
+ system "install_name_tool -id ${libdir}/mysql/${libname} ${destroot}${libdir}/mysql/${libname}"
+ }
+ }
# Fix paths in manpages and sample configuration files
foreach manpage [glob -type f ${destroot}${prefix}/share/man/man\[1-9\]/*] {
reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${manpage}
@@ -125,3 +132,8 @@
ui_msg "If you also want a Percona server, install the percona-server-devel port."
}
}
+
+livecheck.type regex
+livecheck.url http://www.percona.com/downloads/Percona-Server-${branch}/
+livecheck.version ${release}
+livecheck.regex "/Percona-Server-${version_mysql}-(\[^/\]+)/"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111214/813ad83c/attachment.html>
More information about the macports-changes
mailing list