/[gentoo-x86]/www-apps/phpwiki/phpwiki-1.3.14.ebuild
Gentoo

Contents of /www-apps/phpwiki/phpwiki-1.3.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 27 20:15:53 2012 UTC (8 years ago) by mabi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
remove phpwiki (dead upstream)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/phpwiki/phpwiki-1.3.14.ebuild,v 1.3 2008/02/04 08:30:59 hollow Exp $
4
5 inherit webapp depend.php
6
7 DESCRIPTION="PhpWiki is a WikiWikiWeb clone in PHP"
8 HOMEPAGE="http://phpwiki.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 KEYWORDS="~amd64 ppc ~sparc ~x86"
13 IUSE="msql mysql postgres"
14
15 RDEPEND="virtual/httpd-cgi"
16 need_php
17
18 pkg_setup() {
19 local flags="pcre"
20 for f in msql mysql postgres ; do
21 use ${f} && flags="${flags} ${f}"
22 done
23 if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \
24 ! PHPCHECKNODIE="yes" require_php_with_any_use apache2 cgi ; then
25 die "Re-install ${PHP_PKG} with ${flags} and at least one of apache2 or cgi."
26 fi
27 webapp_pkg_setup
28 }
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33 rm -f Makefile LICENSE
34 }
35
36 src_install() {
37 webapp_src_preinst
38
39 cp -pPR * "${D}/${MY_HTDOCSDIR}"
40 rm -rf "${D}/${MY_HTDOCSDIR}"/{doc,schemas,README,INSTALL,TODO,UPGRADING}
41
42 dodoc README INSTALL TODO UPGRADING doc/* schemas/*
43
44 # Create config file from distribution default, and fix up invalid defaults
45 dosed "s:;DEBUG = 1:DEBUG = 0:" "${MY_HTDOCSDIR}"/config/config-dist.ini
46 cd "${D}"/${MY_HTDOCSDIR}/config
47 cp config-dist.ini config.ini
48
49 webapp_postinst_txt en "${FILESDIR}"/postinstall-1.3-en.txt
50 webapp_configfile "${MY_HTDOCSDIR}"/config/config.ini
51
52 webapp_src_install
53 }

  ViewVC Help
Powered by ViewVC 1.1.20