Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/mediawiki/
Date: Thu, 01 Dec 2022 09:44:32
Message-Id: 1669887857.77498e8a0fb55123f578a3bbab399fccc4d4b887.fordfrog@gentoo
1 commit: 77498e8a0fb55123f578a3bbab399fccc4d4b887
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 09:43:53 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 09:44:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77498e8a
7
8 www-apps/mediawiki: bump to 1.39.0
9
10 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
11
12 www-apps/mediawiki/Manifest | 1 +
13 www-apps/mediawiki/mediawiki-1.39.0.ebuild | 86 ++++++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest
17 index 4ad3d5ca72c1..6a82718787e8 100644
18 --- a/www-apps/mediawiki/Manifest
19 +++ b/www-apps/mediawiki/Manifest
20 @@ -1 +1,2 @@
21 DIST mediawiki-1.38.4.tar.gz 55393813 BLAKE2B 384413d1d04af82318cde37c5071b39b9119bcf0af90afd6f82e16b50bb75dec48a9b13cef4abfdda59fef9bf72723da9c3ca37a791ea9f2d204cd621b3013b5 SHA512 feb1b4a8eacf0ec1377681482e244527a4185af583776ea5ce2cfb27e0cf119ae8d66fab4bc24c34bf82df74cf13f10a9b9c488f2ed9f8be24e5c992588d9fcf
22 +DIST mediawiki-1.39.0.tar.gz 55728839 BLAKE2B dfb3a2b06d3d0cd519ef42aefe4b33069f61f859fb3112b36b82e43ccc58d1f4467542c07cb0923a0de31be7c77aa86b3ac041ee24e549ca910a755eab0c6b6d SHA512 b89f8f277dd6536e5042393ad6af5401c0842a309a235d973c0faf7f966e44878f86e10ea22123d6a935cd3479b1a5d510dae60aff1e7f5a66ce8afee36ba12c
23
24 diff --git a/www-apps/mediawiki/mediawiki-1.39.0.ebuild b/www-apps/mediawiki/mediawiki-1.39.0.ebuild
25 new file mode 100644
26 index 000000000000..f2819a3ef25c
27 --- /dev/null
28 +++ b/www-apps/mediawiki/mediawiki-1.39.0.ebuild
29 @@ -0,0 +1,86 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +inherit webapp
35 +
36 +MY_BRANCH=$(ver_cut 1-2)
37 +
38 +DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
39 +HOMEPAGE="http://www.mediawiki.org"
40 +SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~x86"
44 +IUSE="imagemagick mysql postgres +sqlite"
45 +REQUIRED_USE="|| ( mysql postgres sqlite )"
46 +
47 +RDEPEND="dev-lang/php[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader]
48 + imagemagick? ( virtual/imagemagick-tools )
49 + !imagemagick? ( dev-lang/php[gd] )
50 + mysql? ( dev-lang/php[mysql,mysqli] )
51 + sqlite? (
52 + dev-db/sqlite[fts3(+)]
53 + dev-lang/php[pdo,sqlite]
54 + )
55 + virtual/httpd-php"
56 +
57 +need_httpd_cgi
58 +
59 +RESTRICT="test"
60 +
61 +src_unpack() {
62 + default
63 +
64 + # remove lua binaries (bug #631554)
65 + rm -fr "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries"
66 +}
67 +
68 +src_install() {
69 + webapp_src_preinst
70 +
71 + # First we install docs and then copy everything left into htdocs dir
72 + # to avoid bugs like #236411.
73 +
74 + # We ensure the directories are prepared for writing. The post-
75 + # install instructions guide the user to enable the feature.
76 + local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE"
77 + dodoc ${DOCS} docs/*.txt
78 + docinto databases
79 + dodoc docs/databases/*
80 + # Clean everything not used at the site...
81 + rm -rf ${DOCS} COPYING tests docs || die
82 + find . -name Makefile -delete || die
83 + # and install
84 + insinto "${MY_HTDOCSDIR}"
85 + doins -r .
86 +
87 + # If imagemagick is enabled then setup for image upload.
88 + # We ensure the directory is prepared for writing.
89 + if use imagemagick ; then
90 + webapp_serverowned "${MY_HTDOCSDIR}"/images
91 + fi
92 +
93 + webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt"
94 + webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt"
95 + webapp_src_install
96 +}
97 +
98 +pkg_postinst() {
99 + webapp_pkg_postinst
100 +
101 + if [[ -n ${REPLACING_VERSIONS} ]]; then
102 + echo
103 + elog "=== Consult the release notes ==="
104 + elog "Before doing anything, stop and consult the release notes"
105 + elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2"
106 + echo
107 + elog "These detail bug fixes, new features and functionality, and any"
108 + elog "particular points that may need to be noted during the upgrade procedure."
109 + echo
110 + ewarn "Back up existing files and the database before upgrade."
111 + ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki"
112 + ewarn "provides an overview of the backup process."
113 + echo
114 + fi
115 +}