www-apps/mediawiki: bump to 1.43.2

Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Miroslav Šulc
2025-06-30 22:09:03 +02:00
parent e7ca63ca35
commit d52eaaba7c
2 changed files with 93 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
DIST mediawiki-1.39.12.tar.gz 59683778 BLAKE2B 2317a2e3a99bb5bd870e51d378569c69e07e2796bbce7290d66e9a8c87a765cb1a5ff77e18a76f62807db2ce7a80493beb6a56b456a4dafb3e963ed2ed7dad1f SHA512 ca479f858e41ff3d1832ad5c55077cc5b2a2767ac173dfc802e695c2ed6e587a4b52ce0c248964b908667fa82a3bb6f49196c4bd6ebb55ed9fb33449b1f77f24
DIST mediawiki-1.42.6.tar.gz 90292297 BLAKE2B 70bde77c32f1973787311c45fd3f84acb1dbe40470e342265e1d783cb8dbf7527ecdbb7de9fec509c4b37861bd1011aca43492f8d42a13cd7babbe48e19bed72 SHA512 e8a71052dda0c76c8707334f4ef9f30660bda8944a0b03ac9aabee61997230953508103ce27d94bb43057d0951cd7fda37923c7556691c6cdbc310ab36cd1bf9
DIST mediawiki-1.43.1.tar.gz 92667428 BLAKE2B d0c066b2bd925ae0053cd1b630f28ce5ff1cd8352bc11ee1c057ce81e208bac90617c93fb86e8a3503a0e1b13f68591dafdeee6bbc28087609a9b25a51bbea5f SHA512 5d02eac493b9e0334175799bf85e9ab62f30de7c2335c6fa94d02f4dc5e732af6e1c79300f6e5071ec7d1c2e2525c22a16cabb0f682278046977574d8508e91d
DIST mediawiki-1.43.2.tar.gz 91736329 BLAKE2B a131c983144221e8cb7255bb6380bf4f18fde1c707682adb901d0db4e653816e540f41c546d36b74e9f7591a2a4f64e2770c4e9254fe9714fef31fa3be720a8b SHA512 ea8a5546436fe1fa4a7432bb4cb50c1be39e64f38c51536799024791abb80fa17c3706b9006a896e89284dcc00da3869bbe6f4c0959298f166750f813c310d88
@@ -0,0 +1,92 @@
# Copyright 1999-2025 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[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 -r "${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 -r ${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
elog "If you plan to use the Scribunto extension with Lua, make sure to configure"
elog "path to Lua executable using this documentation:"
elog "https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_binary"
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
}