Revision: 74813 http://trac.macports.org/changeset/74813 Author: ryandesign@macports.org Date: 2011-01-02 19:52:20 -0800 (Sun, 02 Jan 2011) Log Message: ----------- gallery: * update to 2.3.1 * add license info * indicate this is noarch * remove php4 and apache 1 support * use php5-web dependency * use php5-mysql or php5-postgresql dependencies * remove pkgconfig dependency * simplify destroot See #27848 Modified Paths: -------------- trunk/dports/www/gallery/Portfile Modified: trunk/dports/www/gallery/Portfile =================================================================== --- trunk/dports/www/gallery/Portfile 2011-01-03 03:44:59 UTC (rev 74812) +++ trunk/dports/www/gallery/Portfile 2011-01-03 03:52:20 UTC (rev 74813) @@ -3,9 +3,11 @@ PortSystem 1.0 name gallery -version 2.3 +version 2.3.1 categories www maintainers gmail.com:ckieffer +supported_archs noarch +license GPL-2 description Gallery is a web based photo album written using PHP long_description Gallery is a web based software product that lets you manage your \ @@ -22,8 +24,10 @@ homepage http://gallery.menalto.com master_sites sourceforge distname gallery-${version}-full -checksums md5 f85663db5f1de99d0b3bc13929f9ab39 \ - sha1 585e9530aeb4f44f198c7d430fe458d461c743bb + +checksums sha1 6cecd8d9ca1dc036faebafe71352321b3b08074b \ + rmd160 751343d3ddaa7898eb0cb412e08c2c7570c70620 + platforms darwin freebsd depends_run port:jhead \ @@ -40,43 +44,27 @@ port:libxml2 \ port:mpeg2vidcodec \ path:bin/perl:perl5 \ - port:pkgconfig \ port:libpng \ port:tiff -depends_lib port:apache2 path:bin/php:php5 path:bin/mysql_config5:mysql5 +depends_lib port:php5-web -variant apache { - depends_lib-append port:apache - depends_lib-delete port:apache2 +variant mysql conflicts postgresql description {Use MySQL database} { + depends_lib-append port:php5-mysql } -variant php4 { - depends_lib-append port:php4 - depends_lib-delete path:bin/php:php5 +variant postgresql conflicts mysql description {Use PostgreSQL database} { + depends_lib-append port:php5-postgresql } -variant mysql4 conflicts postgresql7 postgresql8 { - depends_lib-append port:mysql4 - depends_lib-delete path:bin/mysql_config5:mysql5 +if {![variant_isset postgresql]} { + default_variants +mysql } -variant postgresql7 conflicts mysql4 mysql5 postgresql8 { - depends_lib-append port:postgresql7 - depends_lib-delete path:bin/mysql_config5:mysql5 -} - -variant postgresql8 conflicts mysql4 mysql5 postgresql7 { - depends_lib-append port:postgresql80 - depends_lib-delete path:bin/mysql_config5:mysql5 -} - use_configure no build {} -set docpath ${destroot}${prefix}/www/data/gallery - destroot { - xinstall -m 755 -d ${destroot}${prefix}/www/data/gallery - eval file copy [glob ${workpath}/gallery2/*] ${docpath} + xinstall -d ${destroot}${prefix}/www/data + copy ${workpath}/gallery2 ${destroot}${prefix}/www/data/gallery }
participants (1)
-
ryandesign@macports.org