Ticket #13415: Portfile

File Portfile, 1.4 KB (added by jwelp1@…, 16 years ago)
Line 
1# $Id: Portfile 30344 2007-10-25 10:10:17Z ryandesign@macports.org $
2PortSystem              1.0
3
4name                    phpmyadmin
5set my_name             phpMyAdmin
6version                 2.11.2
7revision                2
8categories              www php databases
9maintainers             nomaintainer
10description             A tool written in PHP intended to handle the administration \
11                                of MySQL over the Web.
12long_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.
18homepage                http://www.phpmyadmin.net
19master_sites            sourceforge
20distname                ${my_name}-${version}.${revision}-all-languages-utf-8-only
21use_bzip2               yes
22
23checksums               md5 359088adc2b6d6d6d175860c5078db8d
24
25platforms               darwin freebsd
26
27set myglob [glob -directory ${prefix}/lib -nocomplain -tails mysql*]
28if {[llength ${myglob}]} {
29        set mysql [lindex ${myglob} end]
30} else {
31        set mysql mysql5
32}
33
34depends_run             path:${prefix}/lib/${mysql}:${mysql} \
35                                path:${prefix}/bin/php:php5
36
37set docpath ${destroot}${prefix}/www
38             
39use_configure   no
40build                   {}
41
42destroot {
43        xinstall -d -m 0755 ${docpath}/phpmyadmin
44        eval copy [glob ${worksrcpath}/*] ${docpath}/phpmyadmin
45}
46
47livecheck.distname      ${my_name}
48livecheck.regex         "<title>${livecheck.distname} (\\d+(?:\\.\\d+)*) .*</title>"