summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-07-03 12:37:42 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-07-03 12:37:42 +0000
commit45fc2b619c3a14f30bc905c412012240d5aca7cb (patch)
treea87f45de22ce761ed5c8f5c1617a0886b9c5f570
parentAdded new snapshot. (diff)
downloadgentoo-2-45fc2b619c3a14f30bc905c412012240d5aca7cb.tar.gz
gentoo-2-45fc2b619c3a14f30bc905c412012240d5aca7cb.tar.bz2
gentoo-2-45fc2b619c3a14f30bc905c412012240d5aca7cb.zip
Moved from sunrise overlay. Thanks to Patrick Nagel <mail@patrick-nagel.net>. Bug #250607
(Portage version: 2.2.0_alpha42/cvs/Linux x86_64)
-rw-r--r--www-apps/tt-rss/ChangeLog11
-rw-r--r--www-apps/tt-rss/files/postinstall-en.txt1
-rw-r--r--www-apps/tt-rss/metadata.xml15
-rw-r--r--www-apps/tt-rss/tt-rss-1.5.4.ebuild52
4 files changed, 79 insertions, 0 deletions
diff --git a/www-apps/tt-rss/ChangeLog b/www-apps/tt-rss/ChangeLog
new file mode 100644
index 000000000000..f47ce7831a8f
--- /dev/null
+++ b/www-apps/tt-rss/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apps/tt-rss
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/tt-rss/ChangeLog,v 1.1 2011/07/03 12:37:42 hwoarang Exp $
+
+*tt-rss-1.5.4 (03 Jul 2011)
+
+ 03 Jul 2011; Markos Chandras <hwoarang@gentoo.org> +tt-rss-1.5.4.ebuild,
+ +files/postinstall-en.txt, +metadata.xml:
+ Moved from sunrise overlay. Thanks to Patrick Nagel <mail@patrick-nagel.net>.
+ Bug #250607
+
diff --git a/www-apps/tt-rss/files/postinstall-en.txt b/www-apps/tt-rss/files/postinstall-en.txt
new file mode 100644
index 000000000000..369d5e03dc27
--- /dev/null
+++ b/www-apps/tt-rss/files/postinstall-en.txt
@@ -0,0 +1 @@
+Please read http://tt-rss.org/trac/wiki/InstallationNotes
diff --git a/www-apps/tt-rss/metadata.xml b/www-apps/tt-rss/metadata.xml
new file mode 100644
index 000000000000..ad473023fbb8
--- /dev/null
+++ b/www-apps/tt-rss/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+</maintainer>
+<maintainer>
+ <email>mail@patrick-nagel.net</email>
+ <name>Patrick Nagel</name>
+ <description>Maintainer. Assign bugs to him</description>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apps/tt-rss/tt-rss-1.5.4.ebuild b/www-apps/tt-rss/tt-rss-1.5.4.ebuild
new file mode 100644
index 000000000000..40994b2fb35d
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-1.5.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI="2"
+
+inherit webapp depend.php depend.apache
+
+DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
+HOMEPAGE="http://tt-rss.org/"
+SRC_URI="http://tt-rss.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64"
+IUSE="mysql postgres"
+
+DEPEND="dev-lang/php[mysql?,postgres?]"
+RDEPEND="${DEPEND}"
+
+need_httpd_cgi
+need_php_httpd
+
+pkg_setup() {
+ webapp_pkg_setup
+ use mysql && require_php_with_use mysql
+ use postgres && require_php_with_use postgres
+}
+
+src_prepare() {
+ # Customize config.php so that the right 'DB_TYPE' is already set (according to the USE flag)
+ einfo "Customizing config.php..."
+ mv config.php{-dist,} || die "Could not rename config.php-dist to config.php."
+ if use mysql && ! use postgres; then
+ sed -e "/define('DB_TYPE',/{s:pgsql:mysql:}" -i config.php || die "sed failed"
+ fi
+ sed -e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" -i config.php \
+ || die "sed failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ insinto "/${MY_HTDOCSDIR}"
+ doins -r * || die "Could not copy the files to ${MY_HTDOCSDIR}."
+ keepdir "/${MY_HTDOCSDIR}"/icons
+
+ webapp_serverowned "${MY_HTDOCSDIR}"/icons
+ webapp_configfile "${MY_HTDOCSDIR}"/config.php
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}