From: | "Markos Chandras (hwoarang)" <hwoarang@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-apps/tt-rss: metadata.xml ChangeLog tt-rss-1.5.4.ebuild |
Date: | Sun, 03 Jul 2011 19:45:54 |
Message-Id: | 20110703123742.C446520051@flycatcher.gentoo.org |
1 | hwoarang 11/07/03 12:37:42 |
2 | |
3 | Added: metadata.xml ChangeLog tt-rss-1.5.4.ebuild |
4 | Log: |
5 | Moved from sunrise overlay. Thanks to Patrick Nagel <mail@×××××××××××××.net>. Bug #250607 |
6 | |
7 | (Portage version: 2.2.0_alpha42/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 www-apps/tt-rss/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>no-herd</herd> |
21 | <maintainer> |
22 | <email>hwoarang@g.o</email> |
23 | <name>Markos Chandras</name> |
24 | <description>Proxy maintainer. CC him on bugs</description> |
25 | </maintainer> |
26 | <maintainer> |
27 | <email>mail@×××××××××××××.net</email> |
28 | <name>Patrick Nagel</name> |
29 | <description>Maintainer. Assign bugs to him</description> |
30 | </maintainer> |
31 | </pkgmetadata> |
32 | |
33 | |
34 | |
35 | 1.1 www-apps/tt-rss/ChangeLog |
36 | |
37 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/ChangeLog?rev=1.1&view=markup |
38 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/ChangeLog?rev=1.1&content-type=text/plain |
39 | |
40 | Index: ChangeLog |
41 | =================================================================== |
42 | # ChangeLog for www-apps/tt-rss |
43 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
44 | # $Header: /var/cvsroot/gentoo-x86/www-apps/tt-rss/ChangeLog,v 1.1 2011/07/03 12:37:42 hwoarang Exp $ |
45 | |
46 | *tt-rss-1.5.4 (03 Jul 2011) |
47 | |
48 | 03 Jul 2011; Markos Chandras <hwoarang@g.o> +tt-rss-1.5.4.ebuild, |
49 | +files/postinstall-en.txt, +metadata.xml: |
50 | Moved from sunrise overlay. Thanks to Patrick Nagel <mail@×××××××××××××.net>. |
51 | Bug #250607 |
52 | |
53 | |
54 | |
55 | |
56 | 1.1 www-apps/tt-rss/tt-rss-1.5.4.ebuild |
57 | |
58 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/tt-rss-1.5.4.ebuild?rev=1.1&view=markup |
59 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/tt-rss-1.5.4.ebuild?rev=1.1&content-type=text/plain |
60 | |
61 | Index: tt-rss-1.5.4.ebuild |
62 | =================================================================== |
63 | # Copyright 1999-2011 Gentoo Foundation |
64 | # Distributed under the terms of the GNU General Public License v2 |
65 | # $Header: /var/cvsroot/gentoo-x86/www-apps/tt-rss/tt-rss-1.5.4.ebuild,v 1.1 2011/07/03 12:37:42 hwoarang Exp $ |
66 | |
67 | EAPI="2" |
68 | |
69 | inherit webapp depend.php depend.apache |
70 | |
71 | DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX" |
72 | HOMEPAGE="http://tt-rss.org/" |
73 | SRC_URI="http://tt-rss.org/download/${P}.tar.gz" |
74 | |
75 | LICENSE="GPL-2" |
76 | KEYWORDS="~amd64" |
77 | IUSE="mysql postgres" |
78 | |
79 | DEPEND="dev-lang/php[mysql?,postgres?]" |
80 | RDEPEND="${DEPEND}" |
81 | |
82 | need_httpd_cgi |
83 | need_php_httpd |
84 | |
85 | pkg_setup() { |
86 | webapp_pkg_setup |
87 | use mysql && require_php_with_use mysql |
88 | use postgres && require_php_with_use postgres |
89 | } |
90 | |
91 | src_prepare() { |
92 | # Customize config.php so that the right 'DB_TYPE' is already set (according to the USE flag) |
93 | einfo "Customizing config.php..." |
94 | mv config.php{-dist,} || die "Could not rename config.php-dist to config.php." |
95 | if use mysql && ! use postgres; then |
96 | sed -e "/define('DB_TYPE',/{s:pgsql:mysql:}" -i config.php || die "sed failed" |
97 | fi |
98 | sed -e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" -i config.php \ |
99 | || die "sed failed" |
100 | } |
101 | |
102 | src_install() { |
103 | webapp_src_preinst |
104 | |
105 | insinto "/${MY_HTDOCSDIR}" |
106 | doins -r * || die "Could not copy the files to ${MY_HTDOCSDIR}." |
107 | keepdir "/${MY_HTDOCSDIR}"/icons |
108 | |
109 | webapp_serverowned "${MY_HTDOCSDIR}"/icons |
110 | webapp_configfile "${MY_HTDOCSDIR}"/config.php |
111 | |
112 | webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
113 | webapp_src_install |
114 | } |