- Update to 1.25.2

- Update options
This commit is contained in:
Wen Heping 2015-08-12 07:16:36 +00:00
parent d9fe42b200
commit 83720319f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394006
2 changed files with 19 additions and 41 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mediawiki
PORTVERSION= 1.25.1
PORTVERSION= 1.25.2
CATEGORIES= www
MASTER_SITES= http://releases.wikimedia.org/mediawiki/${PORTVERSION:R}/
PKGNAMESUFFIX= 125
@ -18,6 +18,7 @@ USES= shebangfix
SHEBANG_FILES= maintenance/dev/*.sh \
maintenance/hiphop/run-server \
vendor/leafo/lessphp/lessify \
vendor/ruflin/elastica/test/bin/*.sh \
maintenance/postgres/*.pl \
maintenance/storage/make-blobs \
includes/limit.sh
@ -34,54 +35,31 @@ PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
SUB_LIST= MEDIAWIKIDIR=${PREFIX}/${MEDIAWIKIDIR}
OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAP MEMCACHED APC EACCEL XCACHE IMAGICK
OPTIONS_DEFAULT=MYSQL
OPTIONS_DEFINE= LDAP MEMCACHED IMAGICK
OPTIONS_SINGLE= DB
OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE
OPTIONS_RADIO= ACCEL
OPTIONS_RADIO_ACCEL= APC XCACHE
OPTIONS_DEFAULT= MYSQL
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
.include <bsd.port.options.mk>
MYSQL_USE= mysql=client php=mysql
PGSQL_USE= php=pgsql
SQLITE_USE= php=sqlite3
LDAP_USE= php=ldap
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= client
USE_PHP+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+= sqlite3
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_PHP+= ldap
.endif
.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 ${PORT_OPTIONS:MAPC}
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC
.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
MEMCACHED_RUN_DEPENDS= memcached:${PORTSDIR}/databases/memcached
IMAGICK_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/graphics/pecl-imagick
APC_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC
XCACHE_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xcache.so:${PORTSDIR}/www/xcache
pre-install:
@${FIND} -s -d ${WRKSRC} -not -type d | ${SED} "s?${WRKSRC}?${MEDIAWIKIDIR}?g" >>${PLIST}
@${ECHO} "@dir %%WWWDIR%%/vendor/zordius/lightncandy/specs/handlebars" >> ${PLIST}
@${ECHO} "@dir %%WWWDIR%%/vendor/zordius/lightncandy/specs/mustache" >> ${PLIST}
@${ECHO} "@dir %%WWWDIR%%/vendor/monolog/monolog/tests/Monolog/Handler/Fixtures" >> ${PLIST}
@${ECHO} @dir ${MEDIAWIKIDIR} >> ${PLIST}
do-install:

View file

@ -1,2 +1,2 @@
SHA256 (mediawiki-1.25.1.tar.gz) = b3a7d672d12bd329d9ca64ae2428a19fbf5e10b234568114fa17df84d2428731
SIZE (mediawiki-1.25.1.tar.gz) = 23661450
SHA256 (mediawiki-1.25.2.tar.gz) = 539fecfe3d0c7de8130b0c3b548fe1f862f60df76396dc54ee0548c87e5f2482
SIZE (mediawiki-1.25.2.tar.gz) = 24018158