Ticket #20334 (closed submission: fixed)
phppgadmin: new port
| Reported by: | nefar@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Port: | phppgadmin |
Description
# $Id $
PortSystem 1.0
name phppgadmin
set my_name phpPgAdmin
version 4.2.2
categories www php databases
maintainers openmaintainer
description phpPgAdmin is a web-based administration tool for PostgreSQL.
long_description phpPgAdmin is a tool written in PHP intended to handle \
the administration of PostgreSQL over the Web. phpPgAdmin \
supports a wide range of operations with PostgreSQL.
homepage http://phppgadmin.net/
master_sites sourceforge
distname ${my_name}-${version}
use_bzip2 yes
checksums md5 7716bd0b1afa8468e22b641bba8faa65 \
sha1 3a0b6fbed26d7faeb7a6a33525d021de941944cc \
rmd160 a41ce2278d09a2d791630b24db90edd0d3cc71d3
platforms darwin freebsd
# Automatically depend on the latest mysql installed, fallback on mysql5 (r27781)
set myglob [glob -directory ${prefix}/lib -nocomplain -tails mysql*]
if {[llength ${myglob}]} {
set mysql [lindex ${myglob} end]
} else {
set mysql mysql5
}
depends_run path:lib/${mysql}:${mysql} \
path:bin/php:php5
set docpath ${destroot}${prefix}/www
use_configure no
build {}
destroot {
xinstall -d -m 0755 ${docpath}/phppgadmin
eval copy [glob ${worksrcpath}/*] ${docpath}/phppgadmin
}
livecheck.distname ${my_name}
livecheck.url http://phppgadmin.sourceforge.net/index.php?page=download
livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)"
Change History
comment:1 follow-up: ↓ 2 Changed 4 years ago by ryandesign@…
- Status changed from new to assigned
- Owner changed from macports-tickets@… to ryandesign@…
comment:2 in reply to: ↑ 1 Changed 4 years ago by snc@…
Replying to ryandesign@…:
The dependencies on mysql ports should have been dependencies on postgresql ports, but I would like to wait to commit this port until the next revision of the php5 port, when the postgresql support will be fully moved out into its own port. Then you can simply make this port depend on php5-postgresql.
This now seems to be available.
Note: See
TracTickets for help on using
tickets.


"maintainers openmaintainer" should be either "maintainers YOUR_EMAIL openmaintainer" or "maintainers nomaintainer"
The dependencies on mysql ports should have been dependencies on postgresql ports, but I would like to wait to commit this port until the next revision of the php5 port, when the postgresql support will be fully moved out into its own port. Then you can simply make this port depend on php5-postgresql.
The destroot phase can more simply be
destroot { copy ${worksrcpath} ${destroot}${prefix}/www/phppgadmin }I would remove the php category, which IMHO should only be for php itself and php modules. Ports that merely use php needn't be in this category.