From 76bfa05801381f88c697d89cf909c09612458e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Sat, 13 Aug 2022 22:27:54 +0200 Subject: www-apps/dokuwiki: add ebuild for new release Package-Manager: Portage-3.0.30, Repoman-3.0.3 --- www-apps/dokuwiki/dokuwiki-20220731.ebuild | 86 ++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 www-apps/dokuwiki/dokuwiki-20220731.ebuild (limited to 'www-apps/dokuwiki/dokuwiki-20220731.ebuild') diff --git a/www-apps/dokuwiki/dokuwiki-20220731.ebuild b/www-apps/dokuwiki/dokuwiki-20220731.ebuild new file mode 100644 index 0000000..deda950 --- /dev/null +++ b/www-apps/dokuwiki/dokuwiki-20220731.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~sparc ~x86" +IUSE="gd" + +DEPEND="" +RDEPEND=" + >=dev-lang/php-5.3[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 +} -- cgit v1.2.3