summaryrefslogtreecommitdiff
blob: 7e33b59927f86f1204a89062fdc31d307d362301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/xoops/xoops-2.2.4.ebuild,v 1.7 2008/02/26 14:32:53 wrobel Exp $

inherit webapp depend.php

DESCRIPTION="eXtensible Object Oriented Portal System (xoops) is an open-source
Content Management System, including various portal features and supplemental modules."
HOMEPAGE="http://www.xoops.org/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-2.2.3a-Final.tar.gz
mirror://sourceforge/${PN}/xoops-2.2.3a-to-2.2.4.tgz"

LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc ~amd64"
S=${WORKDIR}

IUSE=""

need_httpd_cgi
need_php_httpd

pkg_setup() {
	if ! PHPCHECKNODIE="yes" require_php_with_use mysql || \
		! PHPCHECKNODIE="yes" require_php_with_any_use apache2 cgi ; then
			die "Re-install ${PHP_PKG} with mysql and at least one of apache2 or cgi flags."
	fi
	webapp_pkg_setup
}

src_unpack() {
	unpack ${A}
	cd "${S}"
	cp -f xoops-2.2.3a-to-2.2.4/docs/* docs/ || die
	cp -Rf xoops-2.2.3a-to-2.2.4/html/* html/ || die
}

src_install() {
	webapp_src_preinst

	dodir ${MY_HOSTROOTDIR}/${PF}
	dodoc docs/changelog.txt
	dohtml docs/INSTALL.html docs/UPDATE.html

	cp -R docs/images "${D}"/usr/share/doc/${PF}/html
	cp -pPR html/* "${D}/${MY_HTDOCSDIR}"
	cp -pPR extras/* "${D}"/${MY_HOSTROOTDIR}/${PF}

	webapp_serverowned ${MY_HTDOCSDIR}/uploads
	webapp_serverowned ${MY_HTDOCSDIR}/cache
	webapp_serverowned ${MY_HTDOCSDIR}/templates_c
	webapp_configfile ${MY_HTDOCSDIR}/mainfile.php
	webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt

	webapp_src_install
}