diff options
-rw-r--r-- | www-apps/tt-rss/Manifest | 2 | ||||
-rw-r--r-- | www-apps/tt-rss/tt-rss-1.4.1.ebuild | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest index 72ac7bd..2533250 100644 --- a/www-apps/tt-rss/Manifest +++ b/www-apps/tt-rss/Manifest @@ -3,7 +3,9 @@ AUX tt-rss.conf.d 369 RMD160 873bfc8d836fc1bb70ac040e685429a1e4a628f6 SHA1 d882b AUX tt-rss.init.d 965 RMD160 f604ae261d539b3c167e8d0ab90eb538f01a3830 SHA1 8ca275b5020ce2f6c0c5847cc81b3e87b4899f9e SHA256 97e1440c462bf7bc0988ca6fbe229dbe65500a51bcba1b78b5bf9eaa77d28f0b DIST tt-rss-1.3.4.tar.gz 1037216 RMD160 5497df638ddf839013c949e1b2d1572ec9f7a0e7 SHA1 1468533d39632582e6f464869ac538041896423f SHA256 96d19c6885ddc6ac38a4890f47f0961966fdb54b308f1080a791a7b8f0d4ac41 DIST tt-rss-1.4.0.tar.gz 1181499 RMD160 a79023dcac842ee9d2e4924d7bf8b7de05a1f725 SHA1 e61b1ac41803050d4ed4b2723ae6e0bce9e46998 SHA256 d2634c2d330e86ec6694ee69698025cc873d5b995fa0983fa0cc662470cb068e +DIST tt-rss-1.4.1.tar.gz 1224563 RMD160 61321bcedf5d51cfff373f48dfddee5dcd79282e SHA1 251839638be3db8b6937b3eea2932aef2e86cfee SHA256 87a216872a2e292abdefe6ded19e873eecd20ae1541a9eaaeb53bd36756d1008 EBUILD tt-rss-1.3.4.ebuild 1613 RMD160 8de479a6b4f0e7996c83bd046641afc74a7896ec SHA1 08d8eb235267745ac5e595f1c802eefa39864dcd SHA256 c010395bd74747033e10cdb1a1284ebece2c7066421105dfe9891780100ee053 EBUILD tt-rss-1.4.0.ebuild 1613 RMD160 8de479a6b4f0e7996c83bd046641afc74a7896ec SHA1 08d8eb235267745ac5e595f1c802eefa39864dcd SHA256 c010395bd74747033e10cdb1a1284ebece2c7066421105dfe9891780100ee053 +EBUILD tt-rss-1.4.1.ebuild 1555 RMD160 821a2c06a1ba1ce286a953c9c6a20e62a3ab6d68 SHA1 54d4db254367029d342bbf7f62ee8eed3f311353 SHA256 58ccfdf62f499d449e6bb4542055cd639965064a3a0704950a822c70a17ea37a MISC ChangeLog 1558 RMD160 4d24732b3363f4c14333dc77ae739c21d1e52e0d SHA1 1ffe925769c2f56832ac67b28ea8ba9d57424040 SHA256 7248d4cfc6f3294cd44db8adc215c4720291429e4b77f10aff068dc03adeb640 MISC metadata.xml 171 RMD160 ed284df01c230fc7990a6b5888b39166d23f29ba SHA1 f3d64a69044b710e23fb874b3ee4cd338858c8b4 SHA256 a7b30fbacd0e4c312c07a3efac112a3794c81d134442d8104325734d03425adf diff --git a/www-apps/tt-rss/tt-rss-1.4.1.ebuild b/www-apps/tt-rss/tt-rss-1.4.1.ebuild new file mode 100644 index 0000000..03ed058 --- /dev/null +++ b/www-apps/tt-rss/tt-rss-1.4.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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 mysqli ) && ! 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 +} + +pkg_postinst() { + elog "If you want to use the update daemon, you could find" + elog "a conf.d file and an init script in ${FILESDIR}." +} |