From owner-svn-ports-all@FreeBSD.ORG Sat Jun 1 07:20:31 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 45D314D6; Sat, 1 Jun 2013 07:20:31 +0000 (UTC) (envelope-from wen@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 276702BA; Sat, 1 Jun 2013 07:20:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r517KVEP080364; Sat, 1 Jun 2013 07:20:31 GMT (envelope-from wen@svn.freebsd.org) Received: (from wen@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r517KVEN080362; Sat, 1 Jun 2013 07:20:31 GMT (envelope-from wen@svn.freebsd.org) Message-Id: <201306010720.r517KVEN080362@svn.freebsd.org> From: Wen Heping Date: Sat, 1 Jun 2013 07:20:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319557 - head/www/mediawiki118 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.14 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: Sat, 01 Jun 2013 07:20:31 -0000 Author: wen Date: Sat Jun 1 07:20:30 2013 New Revision: 319557 URL: http://svnweb.freebsd.org/changeset/ports/319557 Log: - Do not depend on MySQL server but client - Trim Makefile headers - Add LICENSE - Convert to optionsNG PR: 179137 Submitted by: remko@ Modified: head/www/mediawiki118/Makefile Modified: head/www/mediawiki118/Makefile ============================================================================== --- head/www/mediawiki118/Makefile Sat Jun 1 07:16:13 2013 (r319556) +++ head/www/mediawiki118/Makefile Sat Jun 1 07:20:30 2013 (r319557) @@ -1,9 +1,5 @@ -# New ports collection makefile for: www/mediawiki -# Date created: February 1st 2005 -# Whom: Gerrit Beine -# +# Created by: Gerrit Beine # $FreeBSD$ -# PORTNAME= mediawiki PORTVERSION= 1.18.6 @@ -13,48 +9,63 @@ MASTER_SITES= http://dumps.wikimedia.org MAINTAINER= wen@FreeBSD.org COMMENT= The wiki engine used by Wikipedia +LICENSE= GPLv2 + DEPRECATED= Unmaintained upstream EXPIRATION_DATE=2013-08-01 CONFLICTS= mediawiki-1.19.* mediawiki-1.2[0-9].* FETCH_ARGS= -pr -NO_LATEST_LINK= yes USE_PHP= ctype iconv mbstring pcre session xml zlib readline dom -IGNORE_WITH_PHP= 4 +IGNORE_WITH_PHP=4 WANT_PHP_WEB= yes MEDIAWIKIDIR?= www/mediawiki + NO_BUILD= yes -OPTIONS= PGSQL "Use PostgreSQL (instead of MySQL)" off \ - LDAP "Use LDAP authentication" off \ - APC "Use pecl-APC" on \ - EACCEL "Use eAccelerator (instead of pecl-APC)" off \ - IMAGICK "Use ImageMagick" off +OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAP MEMCACHED APC EACCEL XCACHE IMAGICK +OPTIONS_DEFAULT=MYSQL APC -.include +MEMCACHED_DESC= use memcached +APC_DESC= use pecl-APC(Mediawiki recommended) +EACCEL_DESC= use eAccelerator (instead of pecl-APC) +XCACHE_DESC= use xCache (instead of pecl-APC) +IMAGICK_DESC= use ImageMagick -.if defined(WITH_PGSQL) -USE_PHP+= pgsql -.else -USE_MYSQL= server +.include + +.if ${PORT_OPTIONS:MMYSQL} +USE_MYSQL= client USE_PHP+= mysql .endif -.if defined(WITH_LDAP) +.if ${PORT_OPTIONS:MPGSQL} +USE_PHP+= pgsql +.endif + +.if ${PORT_OPTIONS:MSQLITE} +USE_PHP+= sqlite +.endif + +.if ${PORT_OPTIONS:MLDAP} USE_PHP+= ldap .endif -.if defined(WITH_IMAGICK) +.if ${PORT_OPTIONS:MMEMCACHED} +RUN_DEPENDS= memcached:${PORTSDIR}/databases/memcached +.endif + +.if ${PORT_OPTIONS:MIMAGICK} RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/graphics/pecl-imagick .endif -.if defined(WITH_APC) || defined(WITH_EACCEL) -.if defined(WITH_EACCEL) -RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/eaccelerator.so:${PORTSDIR}/www/eaccelerator -.else +.if ${PORT_OPTIONS:MAPC} RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC -.endif +.elif ${PORT_OPTIONS:MEACCEL} +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/eaccelerator.so:${PORTSDIR}/www/eaccelerator +.elif ${PORT_OPTIONS:MXCACHE} +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xcache.so:${PORTSDIR}/www/xcache .endif do-install: @@ -69,4 +80,4 @@ post-install: | ${SED} -ne 's,^${WRKSRC},@dirrm ${MEDIAWIKIDIR},p' >> ${TMPPLIST} @${SED} -e 's|%%MEDIAWIKIDIR%%|${PREFIX}/${MEDIAWIKIDIR}|' ${PKGMESSAGE} -.include +.include