diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2010-09-12 19:44:30 +0000 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2010-09-12 19:44:30 +0000 |
commit | 169af50cfa1fff3f157e8c34fae17fbcb0c3e07b (patch) | |
tree | b5afa33d82231acfe5a607b0a0158fa525dc434c /www-apps/venus/venus-20100911.ebuild | |
parent | Add fix from upstream for building on sparc #336939 by Raúl Porcel. (diff) | |
download | gentoo-2-169af50cfa1fff3f157e8c34fae17fbcb0c3e07b.tar.gz gentoo-2-169af50cfa1fff3f157e8c34fae17fbcb0c3e07b.tar.bz2 gentoo-2-169af50cfa1fff3f157e8c34fae17fbcb0c3e07b.zip |
Initial commit, special thanks to Arfrever, djc and darkside for their help
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'www-apps/venus/venus-20100911.ebuild')
-rw-r--r-- | www-apps/venus/venus-20100911.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/www-apps/venus/venus-20100911.ebuild b/www-apps/venus/venus-20100911.ebuild new file mode 100644 index 000000000000..9dba578d2a99 --- /dev/null +++ b/www-apps/venus/venus-20100911.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/venus/venus-20100911.ebuild,v 1.1 2010/09/12 19:44:30 tampakrap Exp $ + +EAPI="3" +PYTHON_DEPEND="2:2.4" +SUPPORT_PYTHON_ABIS="1" + +inherit webapp python + +WEBAPP_MANUAL_SLOT="yes" + +DESCRIPTION="A feed aggregator application" +HOMEPAGE="http://intertwingly.net/code/venus/" +SRC_URI="http://dev.gentoo.org/~tampakrap/${P}.tar.bz2" + +LICENSE="PSF-2.2" +KEYWORDS="~amd64 ~x86" +IUSE="django genshi redland test" +SLOT="0" + +DEPEND=" + test? ( =dev-lang/python-2*[berkdb] ) + " +RDEPEND="django? ( dev-python/django ) + genshi? ( dev-python/genshi ) + redland? ( dev-python/rdflib[redland] ) + dev-python/chardet + dev-python/httplib2 + dev-python/utidylib +" +RESTRICT_PYTHON_ABIS="3.*" + +S="${WORKDIR}"/${PN} + +src_prepare() { + python_convert_shebangs -r 2 . +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" runtests.py + } + python_execute_function testing +} + +src_install() { + webapp_src_preinst + + dodoc AUTHORS README TODO + dohtml -r docs/* + + installation() { + insinto "$(python_get_sitedir)/${PN}" + doins -r *py {filters,planet} + } + python_execute_function installation + + insinto "${MY_APPDIR}" + doins -r themes + + insinto "${MY_HOSTROOTDIR}/conf" + doins -r examples + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + + webapp_src_install +} + +pkg_postinst() { + python_mod_optimize venus + webapp_pkg_postinst + elog "Installation instructions can be found at /usr/share/doc/${PF}/html/ + or http://intertwingly.net/code/venus/docs/index.html" +} + +pkg_postrm() { + python_mod_cleanup venus +} |