From b95a6fd4a7b591baa7cfc689f8ce5643592d07be Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 9 Feb 2025 00:12:01 +0000 Subject: gentoo auto-resync : 09:02:2025 - 00:12:00 --- www-apps/Manifest.gz | Bin 13136 -> 13134 bytes www-apps/gitea/Manifest | 4 +- www-apps/gitea/gitea-1.23.0.ebuild | 150 ----------------------------- www-apps/gitea/gitea-1.23.3.ebuild | 150 +++++++++++++++++++++++++++++ www-apps/mediawiki/Manifest | 2 + www-apps/mediawiki/mediawiki-1.42.5.ebuild | 92 ++++++++++++++++++ 6 files changed, 246 insertions(+), 152 deletions(-) delete mode 100644 www-apps/gitea/gitea-1.23.0.ebuild create mode 100644 www-apps/gitea/gitea-1.23.3.ebuild create mode 100644 www-apps/mediawiki/mediawiki-1.42.5.ebuild (limited to 'www-apps') diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz index 3feb5a54d0ca..ac7dc7170d67 100644 Binary files a/www-apps/Manifest.gz and b/www-apps/Manifest.gz differ diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index 4fbd4ffe3224..03eac9b40aa1 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -2,7 +2,7 @@ AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998 AUX gitea.initd-r3 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1 AUX gitea.service-r4 730 BLAKE2B 0a1f799bf341f1a067f417aa21c1ce5c3168fe523081ef1711483d469da71699a2c163f1db008f7724329d6b6a819b1cdc76bc16309691522ebfc5dc9dfa7476 SHA512 cdd13299115e632bc474f24af6d4114b36be6489e11dd8c46b22fbd3f122194d4891cd2452f1654ef9256978fa4d0b6c11c08e386138a6cba29ea69945de8797 DIST gitea-1.22.6.tar.gz 54465618 BLAKE2B 221d30c680eddd7e1aad0f906ffff5a7e564d153f8977a99a3a965d725cef0bf601a7b6c3bbd4fcc235f0a0f58ec1eb39635da3bc85d59e6856384123898a193 SHA512 a36522eeaa89dd1352ad2540966f7306416d8bb85a5e5ef8cbb52e489fd274c69b95e87e60a28aaed0adf7c12c07a66572b401f784edfd117f859bf4265961f7 -DIST gitea-1.23.0.tar.gz 55476961 BLAKE2B 1d9f597ae0b29eaa4230355b8a8a30c13460d8021c7067102749295cca3baf78e8f12d09d7706927d60c9c90c8ff0b32b76add06c1c8f69b471a404672765ff3 SHA512 4f82854c429cf90aca42ae96c94dc58719bfc12b504780b383945a320d902d557db44d2a35101ed40b387e8978ef2456b753378c55f680e505c448ebde1b9e43 +DIST gitea-1.23.3.tar.gz 55414703 BLAKE2B 36f095e48488e937da4d96bec19c2a4082a8362896eaef4652b837991c7f9f41b9a9eddec89a3830d43f4ad5d275797cbb3f0657ae93cb2814f5707b8f8ceb58 SHA512 b83db3dc18c7e1ea475e7a0f06c9b71f7b553bf5da310c0cb55e4d6d14c61da9c61402e0aafadc9920f5962d9f5b3374698d92a0cd78d0456d5c5c7b7c046556 EBUILD gitea-1.22.6.ebuild 5358 BLAKE2B 8ff7153cf5a9d97364cb513378164aa62cb014e7787421f648634be32448b09a082303f7354745e7e462a1a9bec2486404401ecfcc516e9c6c67935f3574072a SHA512 6e21f3d4c00da82087621b5c06af6bc5ea510468f27b65e6fc1a4ba7ba4967d8c8638801b473db0b0c6feef9cc1f473202c780fee392508afd5d684dde834f07 -EBUILD gitea-1.23.0.ebuild 5385 BLAKE2B 4a2672d132b1d030d3a42039cd60026d30228689b90b3d344c30acfc39789e3eb66637e00fdff4bf749a6ad109cae91d8948e8f829b7a96e3348c2fd689744b3 SHA512 654bd28ef9ad149f97b58aae757093965f5e6f776c84f3b1db69270cf35c5443d5276faa75269812288187defc4bbebda751a8dd690ae51b35da1d6e9f533a76 +EBUILD gitea-1.23.3.ebuild 5385 BLAKE2B 4a2672d132b1d030d3a42039cd60026d30228689b90b3d344c30acfc39789e3eb66637e00fdff4bf749a6ad109cae91d8948e8f829b7a96e3348c2fd689744b3 SHA512 654bd28ef9ad149f97b58aae757093965f5e6f776c84f3b1db69270cf35c5443d5276faa75269812288187defc4bbebda751a8dd690ae51b35da1d6e9f533a76 MISC metadata.xml 754 BLAKE2B 0880dba11ea8bd584aa4dbebd94fbb5073e2ece2694152d7c1c7b8eaf531fbc0d314d98405c050e31a025e7031fd2476129347fc4a3643ffd0cc38aeebbee676 SHA512 58f218fac259cf5d11f288f079786323f1e76cd5e5e7503b4efe68ae86fb9d8d76773b1a9eed4872dabb9cf20f337509fc52d20bba7c60d7fb83b04adffa0e30 diff --git a/www-apps/gitea/gitea-1.23.0.ebuild b/www-apps/gitea/gitea-1.23.0.ebuild deleted file mode 100644 index 119839659298..000000000000 --- a/www-apps/gitea/gitea-1.23.0.ebuild +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 2016-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit fcaps go-module tmpfiles systemd flag-o-matic user-info - -DESCRIPTION="A painless self-hosted Git service" -HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea" - -SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-src-${PV}" -LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" -IUSE="+acct gogit pam sqlite pie" - -DEPEND=" - acct? ( - acct-group/git - acct-user/git[gitea] ) - pam? ( sys-libs/pam )" -RDEPEND="${DEPEND} - !gogit? ( dev-vcs/git )" -BDEPEND=">=dev-lang/go-1.23:=" - -DOCS=( - custom/conf/app.example.ini CHANGELOG.md CONTRIBUTING.md README.md -) -FILECAPS=( - -m 711 cap_net_bind_service+ep usr/bin/gitea -) - -RESTRICT="test" - -src_prepare() { - default - - sed -i -e "s#^MODE = console#MODE = file#" custom/conf/app.example.ini || die -} - -src_configure() { - # bug 832756 - PIE build issues - filter-flags -fPIE - filter-ldflags -fPIE -pie -} - -src_compile() { - local gitea_tags - local -a gitea_settings makeenv - - # The space-separated list of the -tags flag is deprecated, please - # always use the comma-separated list in the future. - gitea_tags="bindata" - gitea_tags+="$(usex gogit ',gogit' '')" - gitea_tags+="$(usex pam ',pam' '')" - gitea_tags+="$(usex sqlite ',sqlite,sqlite_unlock_notify' '')" - - gitea_settings=( - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" - ) - - makeenv=( - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}" - TAGS="${gitea_tags}" - ) - - if use pie ; then - # Please check the supported platforms when a new keyword request opened, - # refer to file: 'go/src/internal/platform/supported.go'. - # When PIE buildmode is not supported by internal linker, the external - # linker will be used automatically, refer to: - # https://github.com/golang/go/blob/ed817f1c4055a559a94afffecbb91c78e4f39942/src/cmd/link/internal/ld/config.go#L149 - makeenv+=( EXTRA_GOFLAGS="-buildmode=pie" ) - fi - - env "${makeenv[@]}" emake backend -} - -src_install() { - dobin gitea - - einstalldocs - - newconfd "${FILESDIR}/gitea.confd-r1" gitea - newinitd "${FILESDIR}/gitea.initd-r3" gitea - newtmpfiles - gitea.conf <<-EOF - d /run/gitea 0755 git git - EOF - systemd_newunit "${FILESDIR}"/gitea.service-r4 gitea.service - - insinto /etc/gitea - newins custom/conf/app.example.ini app.ini - if use acct; then - fowners root:git /etc/gitea/{,app.ini} - fperms g+w,o-rwx /etc/gitea/{,app.ini} - - diropts -m0750 -o git -g git - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data - keepdir /var/log/gitea - fi -} - -pkg_postinst() { - fcaps_pkg_postinst - - # It is not guaranteed that the git user and group always exist (due to the acct USE Flag), - # but for convenience, the tmpfile uses the git user and group by default. - # To avoid installation errors, a condition needs to be added here: - # if there is no git user or group, the installation of tmpfile will be skipped - # and the user will be notified to handle it by themselves. - if egetent passwd git &>/dev/null && \ - egetent group git &>/dev/null; then - tmpfiles_process gitea.conf - else - eerror "Unable to install the tmpfile for gitea due to the git user or group is missing," - eerror "please install tmpfile manually or rebuild this package with USE flag 'acct'." - eerror "You can simply copy the default tmpfile from '/usr/lib/tmpfiles.d/gitea.conf'" - eerror "to higher priority path '/etc/tmpfiles.d/gitea.conf', and correct it with" - eerror "the right User and Group value (see tmpfiles.d(5) for details), then execute:" - eerror " # systemd-tmpfiles --create /etc/tmpfiles.d/gitea.conf" - eerror "to install it." - fi - - if [[ -n ${REPLACING_VERSIONS} ]]; then - if ver_test "${REPLACING_VERSIONS}" -lt 1.22; then - ewarn "Since version 1.22.0:" - ewarn " 1. Minimum database requirements updated to MySQL 8.0, PostgreSQL 12, and MSSQL 2012." - ewarn " 2. There are a lot of refactoring changes related to customizing templates." - ewarn " 3. The default duration of the 'Remember login' feature has been" - ewarn " changed from one week to one month." - ewarn " 4. Enhanced auth token/remember me, the obsolete setting" - ewarn " '[security].COOKIE_USERNAME' has been removed." - ewarn " 5. For MinIO storage, adds a prefix path for all MinIO storage" - ewarn " and override base path will override the path." - ewarn " 6. Now use a more restricted sanitizer for the repository description." - ewarn "For more details, see ." - fi - if ver_test "${REPLACING_VERSIONS}" -lt 1.23; then - ewarn "Since version 1.23.0:" - ewarn " 1. The config option '[camo].Allways' has been renamed to '[camo].Always'." - ewarn " 2. The SHA1 for support for SSH RSA signing has been removed." - ewarn " 3. Use UTC as the default timezone when scheduling Actions cron tasks." - ewarn " 4. Make OIDC introspection authentication strictly require Client ID and secret." - ewarn "For other breaking changes, see ." - fi - fi -} diff --git a/www-apps/gitea/gitea-1.23.3.ebuild b/www-apps/gitea/gitea-1.23.3.ebuild new file mode 100644 index 000000000000..119839659298 --- /dev/null +++ b/www-apps/gitea/gitea-1.23.3.ebuild @@ -0,0 +1,150 @@ +# Copyright 2016-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps go-module tmpfiles systemd flag-o-matic user-info + +DESCRIPTION="A painless self-hosted Git service" +HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea" + +SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-src-${PV}" +LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" +IUSE="+acct gogit pam sqlite pie" + +DEPEND=" + acct? ( + acct-group/git + acct-user/git[gitea] ) + pam? ( sys-libs/pam )" +RDEPEND="${DEPEND} + !gogit? ( dev-vcs/git )" +BDEPEND=">=dev-lang/go-1.23:=" + +DOCS=( + custom/conf/app.example.ini CHANGELOG.md CONTRIBUTING.md README.md +) +FILECAPS=( + -m 711 cap_net_bind_service+ep usr/bin/gitea +) + +RESTRICT="test" + +src_prepare() { + default + + sed -i -e "s#^MODE = console#MODE = file#" custom/conf/app.example.ini || die +} + +src_configure() { + # bug 832756 - PIE build issues + filter-flags -fPIE + filter-ldflags -fPIE -pie +} + +src_compile() { + local gitea_tags + local -a gitea_settings makeenv + + # The space-separated list of the -tags flag is deprecated, please + # always use the comma-separated list in the future. + gitea_tags="bindata" + gitea_tags+="$(usex gogit ',gogit' '')" + gitea_tags+="$(usex pam ',pam' '')" + gitea_tags+="$(usex sqlite ',sqlite,sqlite_unlock_notify' '')" + + gitea_settings=( + "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" + "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" + "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" + ) + + makeenv=( + LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}" + TAGS="${gitea_tags}" + ) + + if use pie ; then + # Please check the supported platforms when a new keyword request opened, + # refer to file: 'go/src/internal/platform/supported.go'. + # When PIE buildmode is not supported by internal linker, the external + # linker will be used automatically, refer to: + # https://github.com/golang/go/blob/ed817f1c4055a559a94afffecbb91c78e4f39942/src/cmd/link/internal/ld/config.go#L149 + makeenv+=( EXTRA_GOFLAGS="-buildmode=pie" ) + fi + + env "${makeenv[@]}" emake backend +} + +src_install() { + dobin gitea + + einstalldocs + + newconfd "${FILESDIR}/gitea.confd-r1" gitea + newinitd "${FILESDIR}/gitea.initd-r3" gitea + newtmpfiles - gitea.conf <<-EOF + d /run/gitea 0755 git git + EOF + systemd_newunit "${FILESDIR}"/gitea.service-r4 gitea.service + + insinto /etc/gitea + newins custom/conf/app.example.ini app.ini + if use acct; then + fowners root:git /etc/gitea/{,app.ini} + fperms g+w,o-rwx /etc/gitea/{,app.ini} + + diropts -m0750 -o git -g git + keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data + keepdir /var/log/gitea + fi +} + +pkg_postinst() { + fcaps_pkg_postinst + + # It is not guaranteed that the git user and group always exist (due to the acct USE Flag), + # but for convenience, the tmpfile uses the git user and group by default. + # To avoid installation errors, a condition needs to be added here: + # if there is no git user or group, the installation of tmpfile will be skipped + # and the user will be notified to handle it by themselves. + if egetent passwd git &>/dev/null && \ + egetent group git &>/dev/null; then + tmpfiles_process gitea.conf + else + eerror "Unable to install the tmpfile for gitea due to the git user or group is missing," + eerror "please install tmpfile manually or rebuild this package with USE flag 'acct'." + eerror "You can simply copy the default tmpfile from '/usr/lib/tmpfiles.d/gitea.conf'" + eerror "to higher priority path '/etc/tmpfiles.d/gitea.conf', and correct it with" + eerror "the right User and Group value (see tmpfiles.d(5) for details), then execute:" + eerror " # systemd-tmpfiles --create /etc/tmpfiles.d/gitea.conf" + eerror "to install it." + fi + + if [[ -n ${REPLACING_VERSIONS} ]]; then + if ver_test "${REPLACING_VERSIONS}" -lt 1.22; then + ewarn "Since version 1.22.0:" + ewarn " 1. Minimum database requirements updated to MySQL 8.0, PostgreSQL 12, and MSSQL 2012." + ewarn " 2. There are a lot of refactoring changes related to customizing templates." + ewarn " 3. The default duration of the 'Remember login' feature has been" + ewarn " changed from one week to one month." + ewarn " 4. Enhanced auth token/remember me, the obsolete setting" + ewarn " '[security].COOKIE_USERNAME' has been removed." + ewarn " 5. For MinIO storage, adds a prefix path for all MinIO storage" + ewarn " and override base path will override the path." + ewarn " 6. Now use a more restricted sanitizer for the repository description." + ewarn "For more details, see ." + fi + if ver_test "${REPLACING_VERSIONS}" -lt 1.23; then + ewarn "Since version 1.23.0:" + ewarn " 1. The config option '[camo].Allways' has been renamed to '[camo].Always'." + ewarn " 2. The SHA1 for support for SSH RSA signing has been removed." + ewarn " 3. Use UTC as the default timezone when scheduling Actions cron tasks." + ewarn " 4. Make OIDC introspection authentication strictly require Client ID and secret." + ewarn "For other breaking changes, see ." + fi + fi +} diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest index d50b357da8a8..cfc04266e19c 100644 --- a/www-apps/mediawiki/Manifest +++ b/www-apps/mediawiki/Manifest @@ -2,8 +2,10 @@ AUX postinstall-1.18-en.txt 2611 BLAKE2B c4d110d0d7c3fc270b0dc7f134cf7de8f2ca459 AUX postupgrade-1.16-en.txt 1519 BLAKE2B 39cf00073c5d12e04dd69126c7671acb5876bcdd592526d6aca475b98f9ed7abcb6d2691cef8642be04d8041fcbdaee0555937f1480f71a82c3f367f2a3d99b6 SHA512 495a2ea3074e96e570ed83e557691786524aea878fa6ee489080245a9bb1669d93e318c3871ce44918225d0e64d09e1e644538627bfb35a4a2a12d27365dc89d DIST mediawiki-1.39.11.tar.gz 59426081 BLAKE2B e18245600cbdfe8b480b5c3baa369daa4e037b00d9d6be8c0272171482fdaa5135d65d93415c6527e2d56b4d25bd0f3f5599bc04c1810b49b2fd7638a51e4016 SHA512 def8271001abe677875b5bf7488d977f8d6af069fac1ba825f5783faca92523956f4fa29c3f372557f36c3d1a279ee05b2b9681760fc2791fcc12e466f697072 DIST mediawiki-1.42.4.tar.gz 89981117 BLAKE2B 99f07a99be16439c5067c585ce0ee53ec4cef7976757cb2cbe17a8db98f7b60e7e3e8542456d9d0a8fe5d3f0af6947ac7261876930d2e7e87a1b9f5146d5c1e6 SHA512 d2b6f5226a7caebb8bd4788796bf380d635e942b3a3c2e8321007ed5839c63fb72eb2d9a3ac3cd6bb37a844dce95c86c37a11b16d93fc58229008f34670f6443 +DIST mediawiki-1.42.5.tar.gz 90075212 BLAKE2B 8e983fbcdf15b3d26edcfa87c27c98830a412b6fe312f5faafc0091f33dc270047c8b3d678ed8d4bc74819c3d41fd8ff40895e6a42dfad83571d5232e391b37b SHA512 54be8f798d60a1cccbe1429fb39a3869b42b5ed363aab0b75d9f8930c7d0dca969ebacf2e7c9ab244e5426a2a2cd206dd47eb373731d8c1be96f11c4513fd499 DIST mediawiki-1.43.0.tar.gz 91947888 BLAKE2B b0227f064e32ac90fbdb34be3849dd4b29885b40aa918e628057099186d85753b7a31420d1011ced55dc0edd606c288d6cdf4ee2ffd26ebb16bbd631dc111e02 SHA512 89a37e5ace8855ce147a9c0b5acdbc94ceb33f730dfedbbed57a23c4a8c78d2937d01e122e4dd6f7bf54dce47e4836f825302912fb8617e1172c7ed55bedbfc7 EBUILD mediawiki-1.39.11.ebuild 2786 BLAKE2B 9199864edddfbb93fcc7a9af25e28d79f8e297b77f2e0ccb70762158c217b0ed7885625d0551336a41682aed9b3d52c37e84be3574cbebeb512111ec356c1795 SHA512 d2defd846cb98767bb8e5a67120b932514919925d9817de9e57ef1ff3ef20f519fb7609c1c20cf13e534ebd06da41a9a11e7035fe486955d7825414677c75176 EBUILD mediawiki-1.42.4.ebuild 2788 BLAKE2B 32b33eebfb759f52ed7ddc5423d2f3a9c12480b38684bae70d0874b93055c0f4922f53217348dc53fb0f3d5b49f7c4bdf968184758cd3703bf010d510b9fee8f SHA512 4954806a7b6651389306a558fd69975b9c4bfdc92ad8db31764b22d996128cb6f7808e91e7b68b51971a0121988a98bc837f71744ff913090f273c8f4df2b031 +EBUILD mediawiki-1.42.5.ebuild 2791 BLAKE2B 5da45c6919729d33632c3c9473423110cfa8ca9433e63ce7abb00a57e23511d2d23371189fa2ba8bff9b8b14a9c67be307054afc73697aed8a2df23e77ba6504 SHA512 a890b02a3b8bb805d094fbca3b95aecf8f5f7b071e2591ac9dba744ecaa240feb6fbe0a4cf9d436829d9ad69e500b0975f4dea152617951c9bdb18741f496ec9 EBUILD mediawiki-1.43.0.ebuild 2788 BLAKE2B 32b33eebfb759f52ed7ddc5423d2f3a9c12480b38684bae70d0874b93055c0f4922f53217348dc53fb0f3d5b49f7c4bdf968184758cd3703bf010d510b9fee8f SHA512 4954806a7b6651389306a558fd69975b9c4bfdc92ad8db31764b22d996128cb6f7808e91e7b68b51971a0121988a98bc837f71744ff913090f273c8f4df2b031 MISC metadata.xml 359 BLAKE2B 79703ba1428aafa7d5ab14386601405a4ec03015fe7920b9c8f9bc3e1fbaefce4345a77410acc429689f42610c7526fd501667230d4aa786c3d02b9241f3fd50 SHA512 6d35f7bd19d1af197137a66ac215e25e2e3b551f2b1be1b234fce56f09c3b62c3056810b154a332ce018597d759434c54148e93cc4d6013698bce8cf1d370561 diff --git a/www-apps/mediawiki/mediawiki-1.42.5.ebuild b/www-apps/mediawiki/mediawiki-1.42.5.ebuild new file mode 100644 index 000000000000..0cd744558731 --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.42.5.ebuild @@ -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 +} -- cgit v1.2.3