commit: c101b865664144f61696db8cdffad872be12307c
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Fri May 30 03:22:04 2025 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Fri May 30 03:30:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c101b865
www-apps/dokuwiki: add 20250514a
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
www-apps/dokuwiki/Manifest | 1 +
www-apps/dokuwiki/dokuwiki-20250514a.ebuild | 85 +++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
diff --git a/www-apps/dokuwiki/Manifest b/www-apps/dokuwiki/Manifest
index 42b918c6fa23..82bef649c282 100644
--- a/www-apps/dokuwiki/Manifest
+++ b/www-apps/dokuwiki/Manifest
@@ -1,2 +1,3 @@
DIST dokuwiki-2024-02-06b.tgz 4206676 BLAKE2B
d9d01723f0dca747fb5d7c99057c22af916879be05f3d7048af37d51552efeae328231dabd321c03ab7dd09474157372ec95846c5d80f9eb111ce3eb67210c42
SHA512
6edaa8baaf5f1c090476e98fff94f14ef71ea1293c8f7e329cee62dacab6e5f49e7fb016e238c96f0e770927c69e7800d98cce2f2a52aa3d1fefd4c869f1bb4a
DIST dokuwiki-2025-05-14.tgz 4251299 BLAKE2B
83f8f50a707c20c6d038602600a0f310affa79e9acb304240eecbc8685b605fcad59c53487401e7bb1ae8228242c79763afdf08e562699d64fa5cb8caeb2287e
SHA512
436712c2282c6285e68281f63ab0a557de0cd4a79f69edc857b6a725dfa87c52b2a2f2e3366c4f7869133e73d2b95318a3e8a798ad5dfba6ced197897f25f48d
+DIST dokuwiki-2025-05-14a.tgz 4255545 BLAKE2B
f6f9922c93ad9613722349b8d3c34f7b9de949139bc525e40be70ce25002b65103ad42ea98679491e9346426c3cdc8c85e33b5d823a6569e6bb1ed7fc6ca5ce7
SHA512
424bca2fb925d31e565fc1fd03ded66037cafb787ac156078553b35e08165a239ce0095da0dea2b29c28c86978be3af7b6bc728802af4b4d51fe2677b1e340b1
diff --git a/www-apps/dokuwiki/dokuwiki-20250514a.ebuild
b/www-apps/dokuwiki/dokuwiki-20250514a.ebuild
new file mode 100644
index 000000000000..d57864b781ae
--- /dev/null
+++ b/www-apps/dokuwiki/dokuwiki-20250514a.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit webapp
+
+# upstream uses dashes in the datestamp
+MY_BASE_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
+
+if [[ ${PV} == *rc* ]]; then
+ MY_PV="${MY_BASE_PV}${PV:8:4}"
+ MY_P="${PN}-rc-${MY_BASE_PV}"
+ S="${WORKDIR}/${MY_P}"
+ SRC_URI="https://download.dokuwiki.org/src/${PN}/${PN}-rc.tgz ->
${PN}-${PV}.tgz"
+else
+ MY_PV="${MY_BASE_PV}${PV:8:4}"
+ SRC_URI="https://download.dokuwiki.org/src/${PN}/${PN}-${MY_PV}.tgz"
+ S="${WORKDIR}/${PN}-${MY_PV}"
+fi
+
+DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small company's
documentation needs"
+HOMEPAGE="https://wiki.dokuwiki.org"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~sparc ~x86"
+IUSE="gd"
+
+RDEPEND="
+ >=dev-lang/php-8.0[xml]
+ virtual/httpd-php:*
+ gd? ( ||
+ (
+ dev-lang/php[gd]
+ media-gfx/imagemagick
+ )
+ )
+"
+
+need_httpd_cgi
+
+src_prepare() {
+ # create initial changes file
+ touch data/changes.log
+
+ default
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc README
+ rm -f README COPYING
+
+ docinto scripts
+ dodoc bin/*
+ rm -rf bin
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r .
+
+ # Copy custom .htaccess that works with both apache 2.2 and 2.4
+ for dir in "conf" "data" "inc" "inc/lang"; do
+ insinto "${MY_HTDOCSDIR}/${dir}"
+ newins "${FILESDIR}/htaccess" ".htaccess"
+ done
+
+ # Use custom .htaccess.dist that works with both apache 2.2 and 2.4
+ insinto "${MY_HTDOCSDIR}/"
+ newins "${FILESDIR}/htaccess-dist" ".htaccess.dist"
+
+ for x in $(find data/ -not -name '.htaccess'); do
+ webapp_serverowned "${MY_HTDOCSDIR}"/${x}
+ done
+
+ webapp_configfile "${MY_HTDOCSDIR}"/.htaccess.dist
+ webapp_configfile "${MY_HTDOCSDIR}"/conf
+
+ for x in $(find conf/ -not -name 'msg'); do
+ webapp_configfile "${MY_HTDOCSDIR}"/${x}
+ done
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}