author | Da Risk <da_risk@geekorum.com> |
Wed, 03 Jul 2013 22:42:53 +0200 | |
changeset 86 | fd4c6083e69e |
parent 5 | 42fc41c83e9b |
permissions | -rw-r--r-- |
5
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
3 |
# $Header: $ |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
4 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
5 |
EAPI="2" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
6 |
PHPCHECKNODIE="yes" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
7 |
inherit webapp depend.php confutils |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
8 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
9 |
DESCRIPTION="Weblogs management tool written in PHP" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
10 |
HOMEPAGE="http://www.dotclear.net" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
11 |
SRC_URI="http://download.dotclear.org/latest/${P}.tar.gz" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
12 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
13 |
LICENSE="GPL-2" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
14 |
KEYWORDS="~amd64 ~x86" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
15 |
IUSE="postgres mysql sqlite gd" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
16 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
17 |
DEPEND="dev-lang/php:5[iconv,simplexml,xml,unicode,postgres?,mysql?,sqlite?,gd?]" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
18 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
19 |
RDEPEND="${DEPEND}" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
20 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
21 |
S="${WORKDIR}/${PN}" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
22 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
23 |
need_php5_httpd |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
24 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
25 |
# Lang Files http://download.dotclear.org/l10n/2.1.6 |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
26 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
27 |
pkg_setup() { |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
28 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
29 |
confutils_require_any postgres mysql sqlite |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
30 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
31 |
local flags="iconv simplexml unicode" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
32 |
use mysql && flags+=" mysql" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
33 |
use postgres && flags+=" postgres" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
34 |
use sqlite && flags+=" sqlite" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
35 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
36 |
require_php_with_use "${flags}" || die "Re-install ${PHP_PKG} with ${flags}" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
37 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
38 |
webapp_pkg_setup |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
39 |
} |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
40 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
41 |
src_install() { |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
42 |
webapp_src_preinst |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
43 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
44 |
insinto "${MY_HTDOCSDIR}" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
45 |
doins -r . |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
46 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
47 |
for foo in cache public; |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
48 |
do |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
49 |
webapp_serverowned -R "${MY_HTDOCSDIR}/${foo}" || die |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
50 |
chmod 666 "${D}/${MY_HTDOCSDIR}/${foo}" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
51 |
done |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
52 |
for foo in cache db inc plugins; |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
53 |
do |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
54 |
webapp_configfile "${MY_HTDOCSDIR}/${foo}"/.htaccess |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
55 |
done |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
56 |
# webapp_configfile "${MY_HTDOCSDIR}"/cache/.htaccess |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
57 |
#webapp_configfile "${MY_HTDOCSDIR}"/db/.htaccess |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
58 |
# webapp_configfile "${MY_HTDOCSDIR}"/inc/.htaccess |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
59 |
# webapp_configfile "${MY_HTDOCSDIR}"/plugins/.htaccess |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
60 |
# webapp_configfile "${MY_HTDOCSDIR}"/ |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
61 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
62 |
webapp_postinst_txt en "${FILESDIR}"/postinst.en.txt |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
63 |
webapp_src_install |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
64 |
} |