diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-22 04:57:23 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-22 04:58:04 +0100 |
commit | ad3ef661e369d956d9d7f40de8c6d34fa93a2fa3 (patch) | |
tree | c7736c33f5b6e8b2f208dfaaf027c1e944950a0c /www-apps/tt-rss/tt-rss-1.4.0.ebuild | |
parent | 302b4ab1a9ccf94c2e39d770358b6bc1fe888f8a (diff) | |
download | overlay-ad3ef661e369d956d9d7f40de8c6d34fa93a2fa3.tar.gz overlay-ad3ef661e369d956d9d7f40de8c6d34fa93a2fa3.tar.xz overlay-ad3ef661e369d956d9d7f40de8c6d34fa93a2fa3.zip |
added ebuild for version 1.4.0
Diffstat (limited to 'www-apps/tt-rss/tt-rss-1.4.0.ebuild')
-rw-r--r-- | www-apps/tt-rss/tt-rss-1.4.0.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/www-apps/tt-rss/tt-rss-1.4.0.ebuild b/www-apps/tt-rss/tt-rss-1.4.0.ebuild new file mode 100644 index 0000000..cc8880e --- /dev/null +++ b/www-apps/tt-rss/tt-rss-1.4.0.ebuild @@ -0,0 +1,58 @@ +# 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 mysqli postgres" + +DEPEND="dev-lang/php[mysql?,mysqli?,postgres?]" +RDEPEND="${DEPEND}" + +need_httpd_cgi +need_php_httpd + +pkg_setup() { + webapp_pkg_setup + use mysql && require_php_with_use mysql + use mysqli && require_php_with_use mysqli + 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}." +} |