Opened 15 years ago

Closed 15 years ago

#20334 closed submission (fixed)

phppgadmin: new port

Reported by: nefar@… Owned by: ryandesign (Ryan Carsten Schmidt)
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 (5)

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

"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.

comment:2 in reply to:  1 Changed 15 years ago by nerdling (Jeremy Lavergne)

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.

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Yes, php5-postgresql is available, but I have not yet removed the +postgresql* variants from the php5 ports and bumped their revisions, and I would like to wait until I do so.

comment:4 Changed 15 years ago by nefar@…

anything on my end required?

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

No, I just wanted to finish the second round of php5 refactoring in #19091. Now that I have, I added the phppgadmin port in r56350.

Note: See TracTickets for help on using tickets.