[27781] trunk/dports/www/phpmyadmin/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 14 00:49:53 PDT 2007


Revision: 27781
          http://trac.macosforge.org/projects/macports/changeset/27781
Author:   nox at macports.org
Date:     2007-08-14 00:49:53 -0700 (Tue, 14 Aug 2007)

Log Message:
-----------
phpmyadmin:
 * Now uses the all-languages-utf-8-only tarball.
 * Add livecheck.
 * Magically depends on the latest mysql installed, fallback on mysql5.
 * Now depends on path:${prefix}/bin/php:php5 instead of a lame variant to enable use of php4.
 * Add sha1 and rmd160 checksums.

Modified Paths:
--------------
    trunk/dports/www/phpmyadmin/Portfile

Modified: trunk/dports/www/phpmyadmin/Portfile
===================================================================
--- trunk/dports/www/phpmyadmin/Portfile	2007-08-14 07:46:52 UTC (rev 27780)
+++ trunk/dports/www/phpmyadmin/Portfile	2007-08-14 07:49:53 UTC (rev 27781)
@@ -2,9 +2,11 @@
 PortSystem		1.0
 
 name			phpmyadmin
+set my_name		phpMyAdmin
 version			2.10.3
+revision		1
 categories		php www databases
-maintainers		nomaintainer at macports.org
+maintainers		nomaintainer
 description		A tool written in PHP intended to handle the administration \
 				of MySQL over the Web.
 long_description	phpMyAdmin is a tool written in PHP intended to handle \
@@ -15,34 +17,34 @@
 				and is available in 47 languages.
 homepage		http://www.phpmyadmin.net
 master_sites		sourceforge
-distname		phpMyAdmin-${version}-english
+distname		${my_name}-${version}-all-languages-utf-8-only
 use_bzip2		yes
-checksums		md5 6f70c5236aa6410b5743e765259b38af
-platforms		darwin freebsd
 
-depends_lib	port:mysql5 port:php5
+checksums		md5 2871f3d0c0636fc4fbb5c22de4a69959 \
+				sha1 f263745cb86fd7a7222ee0cf7ca28ff866a792ab \
+				rmd160 2ff9f1f659eeee5cf54c2489440defe07bffea39
 
-variant php4 {
-	depends_lib-append 	port:php4
-	depends_lib-delete	port:php5
-}
+platforms		darwin freebsd
 
-variant mysql3 conflicts mysql4 {
-	depends_lib-append	port:mysql3
-	depends_lib-delete	port:mysql5
+set myglob [glob -directory ${prefix}/lib -nocomplain -tails mysql*]
+if {[llength ${myglob}]} {
+	set mysql [lindex ${myglob} end]
+} else {
+	set mysql mysql5
 }
 
-variant mysql4 conflicts mysql3 {
-	depends_lib-append	port:mysql4
-	depends_lib-delete	port:mysql5
-}
+depends_run		path:${prefix}/lib/${mysql}:${mysql} \
+				path:${prefix}/bin/php:php5
 
-set docpath ${destroot}${prefix}/www/
+set docpath ${destroot}${prefix}/www
              
 use_configure   no
 build			{}
 
 destroot {
 	xinstall -d -m 0755 ${docpath}/phpmyadmin
-	eval file copy [glob ${worksrcpath}/*] ${docpath}/phpmyadmin
+	eval copy [glob ${worksrcpath}/*] ${docpath}/phpmyadmin
 }
+
+livecheck.distname	${my_name}
+livecheck.regex		"<title>${livecheck.distname} (\\d+(?:\\.\\d+)*) .*</title>"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070814/523a85ff/attachment.html


More information about the macports-changes mailing list