www-apps/mediawiki: bump to 1.39.12

Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Miroslav Šulc
2025-04-10 18:48:43 +02:00
parent 6bae606fc1
commit 90e8c1fcd2
2 changed files with 91 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
DIST mediawiki-1.39.11.tar.gz 59426081 BLAKE2B e18245600cbdfe8b480b5c3baa369daa4e037b00d9d6be8c0272171482fdaa5135d65d93415c6527e2d56b4d25bd0f3f5599bc04c1810b49b2fd7638a51e4016 SHA512 def8271001abe677875b5bf7488d977f8d6af069fac1ba825f5783faca92523956f4fa29c3f372557f36c3d1a279ee05b2b9681760fc2791fcc12e466f697072
DIST mediawiki-1.39.12.tar.gz 59683778 BLAKE2B 2317a2e3a99bb5bd870e51d378569c69e07e2796bbce7290d66e9a8c87a765cb1a5ff77e18a76f62807db2ce7a80493beb6a56b456a4dafb3e963ed2ed7dad1f SHA512 ca479f858e41ff3d1832ad5c55077cc5b2a2767ac173dfc802e695c2ed6e587a4b52ce0c248964b908667fa82a3bb6f49196c4bd6ebb55ed9fb33449b1f77f24
DIST mediawiki-1.42.5.tar.gz 90075212 BLAKE2B 8e983fbcdf15b3d26edcfa87c27c98830a412b6fe312f5faafc0091f33dc270047c8b3d678ed8d4bc74819c3d41fd8ff40895e6a42dfad83571d5232e391b37b SHA512 54be8f798d60a1cccbe1429fb39a3869b42b5ed363aab0b75d9f8930c7d0dca969ebacf2e7c9ab244e5426a2a2cd206dd47eb373731d8c1be96f11c4513fd499
DIST mediawiki-1.42.6.tar.gz 90292297 BLAKE2B 70bde77c32f1973787311c45fd3f84acb1dbe40470e342265e1d783cb8dbf7527ecdbb7de9fec509c4b37861bd1011aca43492f8d42a13cd7babbe48e19bed72 SHA512 e8a71052dda0c76c8707334f4ef9f30660bda8944a0b03ac9aabee61997230953508103ce27d94bb43057d0951cd7fda37923c7556691c6cdbc310ab36cd1bf9
DIST mediawiki-1.43.0.tar.gz 91947888 BLAKE2B b0227f064e32ac90fbdb34be3849dd4b29885b40aa918e628057099186d85753b7a31420d1011ced55dc0edd606c288d6cdf4ee2ffd26ebb16bbd631dc111e02 SHA512 89a37e5ace8855ce147a9c0b5acdbc94ceb33f730dfedbbed57a23c4a8c78d2937d01e122e4dd6f7bf54dce47e4836f825302912fb8617e1172c7ed55bedbfc7

View File

@@ -0,0 +1,90 @@
# 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
}