2014-08-12 13:29:40 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-12-24 22:10:33 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-12-22 03:03:58 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/www-apps/dokuwiki/dokuwiki-20140929b.ebuild,v 1.3 2014/12/21 11:41:17 ago Exp $
|
2012-12-24 22:10:33 +04:00
|
|
|
|
2014-12-12 19:40:02 +03:00
|
|
|
EAPI=5
|
2012-12-24 22:10:33 +04:00
|
|
|
|
|
|
|
inherit webapp depend.php
|
|
|
|
|
|
|
|
# upstream uses dashes in the datestamp
|
|
|
|
MY_BASE_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
|
|
|
|
MY_PV="${MY_BASE_PV}${PV:8:1}"
|
|
|
|
|
2014-12-12 19:40:02 +03:00
|
|
|
DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small company's documentation needs."
|
2012-12-24 22:10:33 +04:00
|
|
|
HOMEPAGE="http://wiki.splitbrain.org/wiki:dokuwiki"
|
2014-12-12 19:40:02 +03:00
|
|
|
SRC_URI="http://download.dokuwiki.org/src/${PN}/${PN}-${MY_PV}.tgz"
|
2012-12-24 22:10:33 +04:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
2014-12-22 03:03:58 +03:00
|
|
|
KEYWORDS="amd64 ~ppc ~sparc x86"
|
2012-12-24 22:10:33 +04:00
|
|
|
IUSE="gd"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="
|
|
|
|
>=dev-lang/php-5.3[xml]
|
2014-12-12 19:40:02 +03:00
|
|
|
gd? ( ||
|
|
|
|
(
|
|
|
|
dev-lang/php[gd]
|
|
|
|
media-gfx/imagemagick
|
|
|
|
)
|
|
|
|
)
|
|
|
|
"
|
2012-12-24 22:10:33 +04:00
|
|
|
|
|
|
|
need_httpd_cgi
|
|
|
|
need_php_httpd
|
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# create initial changes file
|
|
|
|
touch data/changes.log
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
webapp_src_preinst
|
|
|
|
|
|
|
|
dodoc README
|
|
|
|
rm -f README COPYING
|
|
|
|
|
|
|
|
docinto scripts
|
|
|
|
dodoc bin/*
|
|
|
|
rm -rf bin
|
|
|
|
|
|
|
|
insinto "${MY_HTDOCSDIR}"
|
|
|
|
doins -r .
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|