blob: 71e058d1b028bdc5a61b174aeb5d66af5a5438ed (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils webapp
DESCRIPTION="An open source Google Code clone"
HOMEPAGE="http://www.indefero.net/"
SRC_URI="http://projects.ceondo.com/p/${PN}/downloads/get/${P}.zip"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="app-arch/unzip"
RDEPEND="${DEPEND}
dev-lang/php[gd]
dev-php/pluf
"
S="${WORKDIR}/${PN}"
src_prepare(){
#Expect pluf to be installed in the normal location.
epatch "${FILESDIR}/${PN}-gentoo-pluf.diff"
cp "${FILESDIR}/dbsetup.sh" src/
cp "${FILESDIR}/bootstrap.php" www/
}
src_compile(){ :; }
src_install(){
webapp_src_preinst
rm COPYING INSTALL.mdtext release-script run-tests .gitignore .gitattributes
dodoc doc/* NEWS.mdtext AUTHORS CONTRIBUTE.mdtext
rm -rf doc NEWS.mdtext AUTHORS CONTRIBUTE.mdtext
mv src/IDF/conf/idf.php-dist src/IDF/conf/idf.php
mv src/IDF/conf/path.php-dist src/IDF/conf/path.php
cp -R . "${D}/${MY_HTDOCSDIR}"
webapp_configfile "${MY_HTDOCSDIR}/src/IDF/conf/idf.php"
webapp_postinst_txt en "${FILESDIR}/postinstall-en-${PV}.txt"
webapp_src_install
}
pkg_postinst(){
webapp_pkg_postinst
elog "The postinstall document contains all of the information"
elog "needed to get ${PN} running."
}
|