svn commit: r319557 - head/www/mediawiki118

Remko Lodder remko at FreeBSD.org
Sat Jun 1 07:36:37 UTC 2013


Thanks for both commits!!

Cheers
Remko

On Jun 1, 2013, at 9:20 AM, Wen Heping <wen at FreeBSD.org> wrote:

> 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 <tux at pinguru.net>
> -#
> +# Created by: Gerrit Beine <tux at pinguru.net>
> # $FreeBSD$
> -#
> 
> PORTNAME=	mediawiki
> PORTVERSION=	1.18.6
> @@ -13,48 +9,63 @@ MASTER_SITES=	http://dumps.wikimedia.org
> MAINTAINER=	wen at 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 <bsd.port.pre.mk>
> +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 <bsd.port.options.mk>
> +
> +.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}, at dirrm ${MEDIAWIKIDIR},p' >> ${TMPPLIST}
> 	@${SED} -e 's|%%MEDIAWIKIDIR%%|${PREFIX}/${MEDIAWIKIDIR}|' ${PKGMESSAGE}
> 
> -.include <bsd.port.post.mk>
> +.include <bsd.port.mk>
> _______________________________________________
> svn-ports-all at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-ports-all
> To unsubscribe, send any mail to "svn-ports-all-unsubscribe at freebsd.org"

-- 
/"\   With kind regards,			| remko at elvandar.org
\ /   Remko Lodder			| remko at FreeBSD.org
X    FreeBSD					| http://www.evilcoder.org
/ \   The Power to Serve		| Quis custodiet ipsos custodes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20130601/a0adcc2f/attachment.sig>


More information about the svn-ports-all mailing list