author | Da Risk <da_risk@elyzion.net> |
Wed, 20 Feb 2013 20:55:34 +0100 | |
changeset 61 | 47675f6649b5 |
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 |
|
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 depend.apache |
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="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
10 |
HOMEPAGE="http://tt-rss.org/" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
11 |
SRC_URI="http://tt-rss.org/download/${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" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
15 |
IUSE="mysql postgres" |
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[mysql?,postgres?]" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
18 |
RDEPEND="${DEPEND}" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
19 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
20 |
need_httpd_cgi |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
21 |
need_php_httpd |
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 |
pkg_setup() { |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
24 |
webapp_pkg_setup |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
25 |
use mysql && require_php_with_use mysql |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
26 |
use postgres && require_php_with_use postgres |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
27 |
} |
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 |
src_prepare() { |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
30 |
# Customize config.php so that the right 'DB_TYPE' is already set (according to the USE flag) |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
31 |
einfo "Customizing config.php..." |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
32 |
mv config.php{-dist,} || die "Could not rename config.php-dist to config.php." |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
33 |
if use mysql && ! use postgres; then |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
34 |
sed -e "/define('DB_TYPE',/{s:pgsql:mysql:}" -i config.php || die "sed failed" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
35 |
fi |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
36 |
sed -e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" -i config.php \ |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
37 |
|| die "sed failed" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
38 |
} |
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 |
src_install() { |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
41 |
webapp_src_preinst |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
42 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
43 |
insinto "/${MY_HTDOCSDIR}" |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
44 |
doins -r * || die "Could not copy the files to ${MY_HTDOCSDIR}." |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
45 |
keepdir "/${MY_HTDOCSDIR}"/icons |
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 |
webapp_serverowned "${MY_HTDOCSDIR}"/icons |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
48 |
webapp_configfile "${MY_HTDOCSDIR}"/config.php |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
49 |
|
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
50 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
51 |
webapp_src_install |
42fc41c83e9b
Add ebuild for tinyrss (from sunrise overlays) and dotclear (bugzilla)
Da Risk <da_risk@elyzion.net>
parents:
diff
changeset
|
52 |
} |