From owner-svn-ports-all@FreeBSD.ORG Mon Mar 3 17:05:56 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BA594E52; Mon, 3 Mar 2014 17:05:56 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9A27CF27; Mon, 3 Mar 2014 17:05:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s23H5uI8018842; Mon, 3 Mar 2014 17:05:56 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s23H5uUo018839; Mon, 3 Mar 2014 17:05:56 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201403031705.s23H5uUo018839@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Mon, 3 Mar 2014 17:05:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r346934 - head/www/gallery2 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2014 17:05:56 -0000 Author: sunpoet Date: Mon Mar 3 17:05:55 2014 New Revision: 346934 URL: http://svnweb.freebsd.org/changeset/ports/346934 QAT: https://qat.redports.org/buildarchive/r346934/ Log: - Add LICENSE - Add MYSQL option - Convert to new options helper - Remove GALLERY2DIR - Support STAGEDIR - Reformat pkg-descr Modified: head/www/gallery2/Makefile head/www/gallery2/pkg-descr head/www/gallery2/pkg-plist Modified: head/www/gallery2/Makefile ============================================================================== --- head/www/gallery2/Makefile Mon Mar 3 17:05:51 2014 (r346933) +++ head/www/gallery2/Makefile Mon Mar 3 17:05:55 2014 (r346934) @@ -12,77 +12,35 @@ DIST_SUBDIR= gallery2 MAINTAINER= sunpoet@FreeBSD.org COMMENT= Web based photo album organizer written in PHP +LICENSE= GPLv2 + +OPTIONS_DEFINE= DCRAW FFMPEG GD GRAPHMAGICK IMAGEMAGICK JHEAD NETPBM NLS UNZIP +OPTIONS_SINGLE= BACKEND +OPTIONS_SINGLE_BACKEND= MYSQL PGSQL +OPTIONS_DEFAULT=IMAGEMAGICK JHEAD MYSQL UNZIP + +NO_BUILD= yes USE_PHP= pcre session WANT_PHP_WEB= yes - WRKSRC= ${WRKDIR}/${PORTNAME} -NO_BUILD= yes SUB_FILES= pkg-message -OPTIONS_DEFINE= DCRAW FFMPEG GD GRAPHMAGICK IMAGEMAGICK JHEAD \ - NETPBM NLS PGSQL UNZIP -OPTIONS_DEFAULT= IMAGEMAGICK JHEAD UNZIP - -NO_STAGE= yes -.include - -.if ${PORT_OPTIONS:MPGSQL} -USE_PHP+= pgsql -.else -USE_PHP+= mysql -.endif - -.if ${PORT_OPTIONS:MGD} -USE_PHP+= gd -RUN_DEPENDS+= pngtogd:${PORTSDIR}/graphics/gd -.endif - -.if ${PORT_OPTIONS:MNLS} -USE_PHP+= gettext -USES+= gettext -.endif - -.if ${PORT_OPTIONS:MNETPBM} -RUN_DEPENDS+= giftopnm:${PORTSDIR}/graphics/netpbm -.endif - -.if ${PORT_OPTIONS:MGRAPHMAGICK} -RUN_DEPENDS+= gm:${PORTSDIR}/graphics/GraphicsMagick -.endif - -.if ${PORT_OPTIONS:MIMAGEMAGICK} -RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick -.endif - -.if ${PORT_OPTIONS:MJHEAD} -RUN_DEPENDS+= jhead:${PORTSDIR}/graphics/jhead -.endif - -.if ${PORT_OPTIONS:MUNZIP} -RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip -.endif - -.if ${PORT_OPTIONS:MFFMPEG} -LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg -.endif - -.if ${PORT_OPTIONS:MDCRAW} -RUN_DEPENDS+= dcraw:${PORTSDIR}/graphics/dcraw -.endif - -.if defined(GALLERY2DIR) -# Continue to support legacy GALLERY2DIR variable -WWWDIR= ${GALLERY2DIR} -.endif +DCRAW_RUN_DEPENDS= ${LOCALBASE}/bin/dcraw:${PORTSDIR}/graphics/dcraw +FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg +GD_RUN_DEPENDS= ${LOCALBASE}/bin/pngtogd:${PORTSDIR}/graphics/gd +GD_USE= PHP=gd +GRAPHMAGICK_RUN_DEPENDS=${LOCALBASE}/bin/gm:${PORTSDIR}/graphics/GraphicsMagick +IMAGEMAGICK_RUN_DEPENDS=${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick +JHEAD_RUN_DEPENDS= ${LOCALBASE}/bin/jhead:${PORTSDIR}/graphics/jhead +MYSQL_USE= PHP=mysql +NETPBM_RUN_DEPENDS= ${LOCALBASE}/bin/giftopnm:${PORTSDIR}/graphics/netpbm +NLS_USE= PHP=gettext +NLS_USES= gettext +PGSQL_USE= PHP=pgsql +UNZIP_RUN_DEPENDS= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip do-install: - @cd ${WRKSRC}/&&${COPYTREE_SHARE} . ${WWWDIR}/ - @ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/ - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST} - -.if !defined(BATCH) - @ ${CAT} ${PKGMESSAGE} -.endif + cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/ .include Modified: head/www/gallery2/pkg-descr ============================================================================== --- head/www/gallery2/pkg-descr Mon Mar 3 17:05:51 2014 (r346933) +++ head/www/gallery2/pkg-descr Mon Mar 3 17:05:55 2014 (r346934) @@ -1,12 +1,10 @@ -Gallery is a web based software product that lets you manage your -photos on your own website. You must have your own website with PHP -support in order to install and use it. With Gallery you can easily -create and maintain albums of photos via an intuitive interface. Photo -management includes automatic thumbnail creation, image resizing, -rotation, ordering, captioning, searching and more. Albums can have -read, write and caption permissions per individual authenticated user -for an additional level of privacy. Give accounts to your friends and -family and let them upload and manage their own photos on your -website! +Gallery is a web based software product that lets you manage your photos on your +own website. You must have your own website with PHP support in order to install +and use it. With Gallery you can easily create and maintain albums of photos via +an intuitive interface. Photo management includes automatic thumbnail creation, +image resizing, rotation, ordering, captioning, searching and more. Albums can +have read, write and caption permissions per individual authenticated user for +an additional level of privacy. Give accounts to your friends and family and let +them upload and manage their own photos on your website! WWW: http://gallery.sourceforge.net/ Modified: head/www/gallery2/pkg-plist ============================================================================== --- head/www/gallery2/pkg-plist Mon Mar 3 17:05:51 2014 (r346933) +++ head/www/gallery2/pkg-plist Mon Mar 3 17:05:55 2014 (r346934) @@ -1,3 +1,5 @@ +@owner www +@group www %%WWWDIR%%/LICENSE %%WWWDIR%%/MANIFEST %%WWWDIR%%/README.html @@ -8601,3 +8603,5 @@ @dirrm %%WWWDIR%%/install @dirrm %%WWWDIR%%/images @dirrmtry %%WWWDIR%% +@owner +@group