]> Pileus Git - ~andy/sunrise/commitdiff
www-apps/tt-rss: New Ebuild for bug 250607
authorPatrick Nagel (padde) <mail@patrick-nagel.net>
Sat, 27 Dec 2008 00:56:16 +0000 (00:56 +0000)
committerPatrick Nagel (padde) <mail@patrick-nagel.net>
Sat, 27 Dec 2008 00:56:16 +0000 (00:56 +0000)
svn path=/sunrise/; revision=7541

www-apps/tt-rss/ChangeLog [new file with mode: 0644]
www-apps/tt-rss/Manifest [new file with mode: 0644]
www-apps/tt-rss/files/postinstall-en.txt [new file with mode: 0644]
www-apps/tt-rss/metadata.xml [new file with mode: 0644]
www-apps/tt-rss/tt-rss-1.2.30.ebuild [new file with mode: 0644]

diff --git a/www-apps/tt-rss/ChangeLog b/www-apps/tt-rss/ChangeLog
new file mode 100644 (file)
index 0000000..7db1948
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for www-apps/tt-rss
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  27 Dec 2008; Patrick Nagel (padde) <mail@patrick-nagel.net>
+  +tt-rss-1.2.30.ebuild, +files/postinstall-en.txt, +metadata.xml:
+  New Ebuild for bug 250607
+
diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest
new file mode 100644 (file)
index 0000000..b7fdd1e
--- /dev/null
@@ -0,0 +1,5 @@
+AUX postinstall-en.txt 58 RMD160 b457795efe41cee2f36bbe6fa37a3eb983a9af62 SHA1 2c62f7e3e26d20fe29e12360638c767c6472caf7 SHA256 7c524c14d391c76d72b22c947b68d20321bd98de3f892b1e044c3de6c281de59
+DIST tt-rss-1.2.30.tar.gz 687642 RMD160 a69e123302096587bdfb99e5379eadefcadaf4ea SHA1 776bb19f30faa02263d8e0ccbfd54b1c1f47cfb9 SHA256 58c93de237b696b87decb1ff0fdf0f11ef98f3153e9109f48d7241d6543ac4d2
+EBUILD tt-rss-1.2.30.ebuild 1405 RMD160 59d6605dd9bbe6062dd11b7040d0c2411c54673f SHA1 344eabc1bf62eab8d4589d9ecca2bf98a4ffeb6c SHA256 2a6eccd443da148cb744a94d9c860bb9a87a63d647ce1ba9ad951807db3c3939
+MISC ChangeLog 274 RMD160 6a06a6b2206f5acb340b02c3ee6eaa5c25839a49 SHA1 9a1db72f69f4190306229e192a7471f62d26058b SHA256 5a515edcc8662f578cf92656cebb3be8b3e5ec7676c25d312d23863fa4e239a0
+MISC metadata.xml 227 RMD160 c3d4a897d5dcaaa9c12c4aaa63e82461ea16985b SHA1 eedb67b2b577b7f1f77ac159584a8dcd92fdb2db SHA256 7b889d36e13c415c01120a0b2638240453ae308718f1a557b6ae1daac2706b1c
diff --git a/www-apps/tt-rss/files/postinstall-en.txt b/www-apps/tt-rss/files/postinstall-en.txt
new file mode 100644 (file)
index 0000000..369d5e0
--- /dev/null
@@ -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 (file)
index 0000000..291e779
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+  <email>mail@patrick-nagel.net</email>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apps/tt-rss/tt-rss-1.2.30.ebuild b/www-apps/tt-rss/tt-rss-1.2.30.ebuild
new file mode 100644 (file)
index 0000000..0a6a221
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils 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 mysqli postgres"
+
+need_httpd_cgi
+need_php_httpd
+
+pkg_setup() {
+       local flag, activeflags=""
+       for flag in ${IUSE};
+       do
+               use ${flag} && activeflags="${activeflags} ${flag}"
+       done
+       require_php_with_use ${activeflags}
+
+       webapp_pkg_setup
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       # 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 mysqli ) && ! use postgres; then
+               sed -e "/define('DB_TYPE',/{s:pgsql:mysql:}" -i config.php
+       fi
+       sed -e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" -i config.php
+}
+
+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
+}