1 | # $Id: Portfile 30344 2007-10-25 10:10:17Z ryandesign@macports.org $ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name phpmyadmin |
---|
5 | set my_name phpMyAdmin |
---|
6 | version 2.11.2 |
---|
7 | revision 2 |
---|
8 | categories www php databases |
---|
9 | maintainers nomaintainer |
---|
10 | description A tool written in PHP intended to handle the administration \ |
---|
11 | of MySQL over the Web. |
---|
12 | long_description phpMyAdmin is a tool written in PHP intended to handle \ |
---|
13 | the administration of MySQL over the Web. Currently it can \ |
---|
14 | create and drop databases, create/drop/alter tables, \ |
---|
15 | delete/edit/add fields, execute any SQL statement, manage keys \ |
---|
16 | on fields, manage privileges,export data into various formats \ |
---|
17 | and is available in 47 languages. |
---|
18 | homepage http://www.phpmyadmin.net |
---|
19 | master_sites sourceforge |
---|
20 | distname ${my_name}-${version}.${revision}-all-languages-utf-8-only |
---|
21 | use_bzip2 yes |
---|
22 | |
---|
23 | checksums md5 359088adc2b6d6d6d175860c5078db8d |
---|
24 | |
---|
25 | platforms darwin freebsd |
---|
26 | |
---|
27 | set myglob [glob -directory ${prefix}/lib -nocomplain -tails mysql*] |
---|
28 | if {[llength ${myglob}]} { |
---|
29 | set mysql [lindex ${myglob} end] |
---|
30 | } else { |
---|
31 | set mysql mysql5 |
---|
32 | } |
---|
33 | |
---|
34 | depends_run path:${prefix}/lib/${mysql}:${mysql} \ |
---|
35 | path:${prefix}/bin/php:php5 |
---|
36 | |
---|
37 | set docpath ${destroot}${prefix}/www |
---|
38 | |
---|
39 | use_configure no |
---|
40 | build {} |
---|
41 | |
---|
42 | destroot { |
---|
43 | xinstall -d -m 0755 ${docpath}/phpmyadmin |
---|
44 | eval copy [glob ${worksrcpath}/*] ${docpath}/phpmyadmin |
---|
45 | } |
---|
46 | |
---|
47 | livecheck.distname ${my_name} |
---|
48 | livecheck.regex "<title>${livecheck.distname} (\\d+(?:\\.\\d+)*) .*</title>" |
---|