Date: Fri, 2 Dec 2022 14:02:25 GMT From: Wen Heping <wen@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: adf5f6993fb3 - main - www/mediawiki139: New port, copied from www/mediawiki138 Message-ID: <202212021402.2B2E2PdO094080@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=adf5f6993fb31f91c1af68d1757e46afa6d3c1e3 commit adf5f6993fb31f91c1af68d1757e46afa6d3c1e3 Author: Wen Heping <wen@FreeBSD.org> AuthorDate: 2022-12-02 14:01:12 +0000 Commit: Wen Heping <wen@FreeBSD.org> CommitDate: 2022-12-02 14:01:12 +0000 www/mediawiki139: New port, copied from www/mediawiki138 MediaWiki is the collaborative editing software that runs Wikipedia, the free encyclopedia, and other projects. It's designed to handle a large number of users and pages without imposing too rigid a structure or workflow. --- www/Makefile | 1 + www/mediawiki139/Makefile | 66 +++++++++++++++++++++++++++++++++++ www/mediawiki139/distinfo | 3 ++ www/mediawiki139/files/pkg-message.in | 15 ++++++++ www/mediawiki139/pkg-descr | 4 +++ 5 files changed, 89 insertions(+) diff --git a/www/Makefile b/www/Makefile index 3e5819437b06..a1b54dab879e 100644 --- a/www/Makefile +++ b/www/Makefile @@ -329,6 +329,7 @@ SUBDIR += mediawiki135 SUBDIR += mediawiki137 SUBDIR += mediawiki138 + SUBDIR += mediawiki139 SUBDIR += mergelog SUBDIR += mhonarc SUBDIR += micro_httpd diff --git a/www/mediawiki139/Makefile b/www/mediawiki139/Makefile new file mode 100644 index 000000000000..fa9838500897 --- /dev/null +++ b/www/mediawiki139/Makefile @@ -0,0 +1,66 @@ +PORTNAME= mediawiki +PORTVERSION= 1.39.0 +CATEGORIES= www +MASTER_SITES= https://releases.wikimedia.org/mediawiki/${PORTVERSION:R}/ +PKGNAMESUFFIX= 138${PHP_PKGNAMESUFFIX} + +MAINTAINER= wen@FreeBSD.org +COMMENT= Wiki engine used by Wikipedia +WWW= https://www.mediawiki.org/ + +LICENSE= GPLv2 + +CONFLICTS= mediawiki13[5-8] + +USES= cpe php:flavors shebangfix +SHEBANG_FILES= maintenance/dev/*.sh \ + maintenance/storage/make-blobs +SHEBANG_LANG= hhvm +hhvm_OLD_CMD= /usr/bin/hhvm +hhvm_CMD= ${LOCALBASE}/bin/hhvm # not installed by anything yet +USE_PHP= ctype dom fileinfo filter hash iconv intl json mbstring openssl \ + pcre readline session xml xmlreader zlib +MEDIAWIKIDIR?= www/mediawiki + +NO_BUILD= yes +PLIST= ${WRKDIR}/plist + +SUB_FILES= pkg-message +SUB_LIST= MEDIAWIKIDIR=${PREFIX}/${MEDIAWIKIDIR} + +OPTIONS_DEFINE= LDAP MEMCACHED IMAGICK SOCKETS +OPTIONS_SINGLE= DB +OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE +OPTIONS_DEFAULT= MYSQL SOCKETS + +MEMCACHED_DESC= Use memcached +IMAGICK_DESC= Use ImageMagick +SOCKETS_DESC= Use sockets + +MYSQL_USES= mysql +MYSQL_USE= php=mysqli +PGSQL_USE= php=pgsql +SQLITE_USE= php=sqlite3 +LDAP_USE= php=ldap +SOCKETS_USE= php=sockets + +MEMCACHED_RUN_DEPENDS= memcached:databases/memcached +IMAGICK_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:graphics/pecl-imagick@${PHP_FLAVOR} + +pre-install: + @${FIND} -s -d ${WRKSRC} -not -type d | ${SED} "s?${WRKSRC}?${MEDIAWIKIDIR}?g" >>${PLIST} + @${ECHO} "@dir %%WWWDIR%%/cache" >> ${PLIST} + @${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST} + @${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST} + @${ECHO} "@mode 0755" >> ${PLIST} + @${ECHO} "@dir %%WWWDIR%%/images" >> ${PLIST} + @${ECHO} "@mode" >> ${PLIST} + @${ECHO_CMD} "@owner" >> ${PLIST} + @${ECHO_CMD} "@group" >> ${PLIST} + @${ECHO} @dir ${MEDIAWIKIDIR} >> ${PLIST} + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR} + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR} + +.include <bsd.port.mk> diff --git a/www/mediawiki139/distinfo b/www/mediawiki139/distinfo new file mode 100644 index 000000000000..9eadfa3540d0 --- /dev/null +++ b/www/mediawiki139/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669987031 +SHA256 (mediawiki-1.39.0.tar.gz) = 5ffe7815e00ecf9190d1c401b0185588e8e73c27688ee32697a6cfceb17a9388 +SIZE (mediawiki-1.39.0.tar.gz) = 55728839 diff --git a/www/mediawiki139/files/pkg-message.in b/www/mediawiki139/files/pkg-message.in new file mode 100644 index 000000000000..b05e89945b5f --- /dev/null +++ b/www/mediawiki139/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <<EOM +Remember to check + +%%MEDIAWIKIDIR%%/INSTALL + +and + +%%MEDIAWIKIDIR%%/UPGRADE + +for details +EOM +} +] diff --git a/www/mediawiki139/pkg-descr b/www/mediawiki139/pkg-descr new file mode 100644 index 000000000000..88e2e7b358ef --- /dev/null +++ b/www/mediawiki139/pkg-descr @@ -0,0 +1,4 @@ +MediaWiki is the collaborative editing software that runs Wikipedia, +the free encyclopedia, and other projects. +It's designed to handle a large number of users and pages without imposing +too rigid a structure or workflow.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212021402.2B2E2PdO094080>