summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2023-03-31 07:47:13 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2023-03-31 07:47:28 +0200
commited4fb4ce6064773cf5af612c26c64cfd663c7ab6 (patch)
treeebd822efd19f17b07b92705d664d0acf1ad24e11 /www-apps
parentwww-client/firefox: keyword 111.0 for ~riscv (diff)
downloadgentoo-ed4fb4ce6064773cf5af612c26c64cfd663c7ab6.tar.gz
gentoo-ed4fb4ce6064773cf5af612c26c64cfd663c7ab6.tar.bz2
gentoo-ed4fb4ce6064773cf5af612c26c64cfd663c7ab6.zip
www-apps/mediawiki: bump to 1.38.6
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/mediawiki/Manifest1
-rw-r--r--www-apps/mediawiki/mediawiki-1.38.6.ebuild86
2 files changed, 87 insertions, 0 deletions
diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest
index de65e19cf083..944e35cfff66 100644
--- a/www-apps/mediawiki/Manifest
+++ b/www-apps/mediawiki/Manifest
@@ -1,2 +1,3 @@
DIST mediawiki-1.38.5.tar.gz 55608920 BLAKE2B 4af95e2ca7d0680ff978a320df6430b107db18f0e367d5505d6fc42fecbd7ffa4fc536dc3c9e1dc640345906812046c82e34d44fd6a3461cd2614bde5cf76069 SHA512 74c05628dcee49d0749d839da325bc494c9717db79fc90d6386062f29c2da06ed7c38deb4e6fb46863a37f6dc80b64fff9b1857c959d3b4030ac6a7504f077de
+DIST mediawiki-1.38.6.tar.gz 55889352 BLAKE2B 0f3422244ae481f9855ecf1f38cf13ef5e5fc945e389c06c1a49684d6392812c0d2a9c64b8ac9a5856ec91e3880ec6b2ef3807f2ccb0927e7d74e36e93c7cf43 SHA512 b42c8253bb6d7d038a443007297693851326f0b12e1c16148e39157e5d57ce3b6e71e39eb28d981458799b548a83c052a3f01cd03bcc69180eecfe7300471bc1
DIST mediawiki-1.39.2.tar.gz 55820627 BLAKE2B acbd224d49db80e9888b1b56d3b27d960581284f96a2359555be369ab55aa49b5d12b014bf29e5fec3e8281d961cc5e61b78601e265e84eadbb1d3e0806d34a7 SHA512 630a3b4b18e9df5346c620255e9dee6f7c45b08ca13bb39b6ef4f73893b69a2b22216de3fbd8cff6c2989b3f2bbedc4ab53365389cd7c3c7fbcbd3b2c9bba43f
diff --git a/www-apps/mediawiki/mediawiki-1.38.6.ebuild b/www-apps/mediawiki/mediawiki-1.38.6.ebuild
new file mode 100644
index 000000000000..80568bc8dc57
--- /dev/null
+++ b/www-apps/mediawiki/mediawiki-1.38.6.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit webapp
+
+MY_BRANCH=$(ver_cut 1-2)
+
+DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
+HOMEPAGE="http://www.mediawiki.org"
+SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="imagemagick mysql postgres +sqlite"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
+RDEPEND=">=dev-lang/php-7.3.19[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader]
+ imagemagick? ( virtual/imagemagick-tools )
+ !imagemagick? ( dev-lang/php[gd] )
+ mysql? ( dev-lang/php[mysql,mysqli] )
+ sqlite? (
+ dev-db/sqlite[fts3(+)]
+ dev-lang/php[pdo,sqlite]
+ )
+ virtual/httpd-php"
+
+need_httpd_cgi
+
+RESTRICT="test"
+
+src_unpack() {
+ default
+
+ # remove lua binaries (bug #631554)
+ rm -fr "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ # First we install docs and then copy everything left into htdocs dir
+ # to avoid bugs like #236411.
+
+ # We ensure the directories are prepared for writing. The post-
+ # install instructions guide the user to enable the feature.
+ local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE"
+ dodoc ${DOCS} docs/*.txt
+ docinto databases
+ dodoc docs/databases/*
+ # Clean everything not used at the site...
+ rm -rf ${DOCS} COPYING tests docs || die
+ find . -name Makefile -delete || die
+ # and install
+ insinto "${MY_HTDOCSDIR}"
+ doins -r .
+
+ # If imagemagick is enabled then setup for image upload.
+ # We ensure the directory is prepared for writing.
+ if use imagemagick ; then
+ webapp_serverowned "${MY_HTDOCSDIR}"/images
+ fi
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt"
+ webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt"
+ webapp_src_install
+}
+
+pkg_postinst() {
+ webapp_pkg_postinst
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ echo
+ elog "=== Consult the release notes ==="
+ elog "Before doing anything, stop and consult the release notes"
+ elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2"
+ echo
+ elog "These detail bug fixes, new features and functionality, and any"
+ elog "particular points that may need to be noted during the upgrade procedure."
+ echo
+ ewarn "Back up existing files and the database before upgrade."
+ ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki"
+ ewarn "provides an overview of the backup process."
+ echo
+ fi
+}