diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2024-12-22 08:23:03 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-12-22 08:23:03 +0100 |
commit | d9cf068c52236ed8fe41792ae8811830d3bef605 (patch) | |
tree | 6d3e5b307bd38c9e1599bceca358be82515688d8 /www-apps | |
parent | media-libs/libmtp: dropped obsolete 1.1.21 (diff) | |
download | gentoo-d9cf068c52236ed8fe41792ae8811830d3bef605.tar.gz gentoo-d9cf068c52236ed8fe41792ae8811830d3bef605.tar.bz2 gentoo-d9cf068c52236ed8fe41792ae8811830d3bef605.zip |
www-apps/mediawiki: bump to 1.43.0
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/mediawiki/Manifest | 1 | ||||
-rw-r--r-- | www-apps/mediawiki/mediawiki-1.43.0.ebuild | 92 |
2 files changed, 93 insertions, 0 deletions
diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest index 87d82b6e81c5..52888198e48b 100644 --- a/www-apps/mediawiki/Manifest +++ b/www-apps/mediawiki/Manifest @@ -2,3 +2,4 @@ DIST mediawiki-1.39.10.tar.gz 59269713 BLAKE2B b7cba0baa498a296bc0f3cba7fe2fb3d0 DIST mediawiki-1.39.11.tar.gz 59426081 BLAKE2B e18245600cbdfe8b480b5c3baa369daa4e037b00d9d6be8c0272171482fdaa5135d65d93415c6527e2d56b4d25bd0f3f5599bc04c1810b49b2fd7638a51e4016 SHA512 def8271001abe677875b5bf7488d977f8d6af069fac1ba825f5783faca92523956f4fa29c3f372557f36c3d1a279ee05b2b9681760fc2791fcc12e466f697072 DIST mediawiki-1.42.3.tar.gz 89632118 BLAKE2B c66fd061e36866d2dda5b5a6866bb48ba322c46ba8d12b02b2fd02549a0e95b2371fd0b91bd58351f2eb8445ae292a126361b9d135acd06bba5f4728ebaedae9 SHA512 3d8e65cf58df61ab9d9d4e90751d795c22215a91ae670687480a274a036cf124fa0bfb9487c50ca8c4a16f78e74976509f94537533321769853e583a2dbfeae2 DIST mediawiki-1.42.4.tar.gz 89981117 BLAKE2B 99f07a99be16439c5067c585ce0ee53ec4cef7976757cb2cbe17a8db98f7b60e7e3e8542456d9d0a8fe5d3f0af6947ac7261876930d2e7e87a1b9f5146d5c1e6 SHA512 d2b6f5226a7caebb8bd4788796bf380d635e942b3a3c2e8321007ed5839c63fb72eb2d9a3ac3cd6bb37a844dce95c86c37a11b16d93fc58229008f34670f6443 +DIST mediawiki-1.43.0.tar.gz 91947888 BLAKE2B b0227f064e32ac90fbdb34be3849dd4b29885b40aa918e628057099186d85753b7a31420d1011ced55dc0edd606c288d6cdf4ee2ffd26ebb16bbd631dc111e02 SHA512 89a37e5ace8855ce147a9c0b5acdbc94ceb33f730dfedbbed57a23c4a8c78d2937d01e122e4dd6f7bf54dce47e4836f825302912fb8617e1172c7ed55bedbfc7 diff --git a/www-apps/mediawiki/mediawiki-1.43.0.ebuild b/www-apps/mediawiki/mediawiki-1.43.0.ebuild new file mode 100644 index 000000000000..097b61eead1e --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.43.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2024 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 +} |