megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
changeset 127:86d178602b1f
adding dev version Kallithea ebuild
author | Daniel Neugebauer <dneuge@energiequant.de> |
---|---|
date | Sat, 12 Jul 2014 23:37:46 +0200 |
parents | 769f5cdd5c27 |
children | 507516b40917 |
files | dev-vcs/kallithea/Manifest dev-vcs/kallithea/kallithea-9999.ebuild |
diffstat | 2 files changed, 64 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-vcs/kallithea/Manifest Sat Jul 12 23:37:46 2014 +0200 @@ -0,0 +1,1 @@ +EBUILD kallithea-9999.ebuild 1821 SHA256 a7388d7e4d880d5157bf28ef6931a7be9bfddc2b1e77836382bf3449de3a0124 SHA512 e9fb5518a5f2abf5e56d703e745e759ac74d786bcbad92fbbfa1f3e6574b0a533d374df0ac8ac3eca4d847cca3704d3e322c248f21fd0323805f2a51c6231e5b WHIRLPOOL 2f727ce306fc183dcc7b3b18b35ce9f12a62c26acf53b2b38ad981111214526d20693bd8abc454d17e37e31581a9fbe960e7718ef7623abf188353c643dc5e7e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-vcs/kallithea/kallithea-9999.ebuild Sat Jul 12 23:37:46 2014 +0200 @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit mercurial + +DESCRIPTION="a web-based frontend and middleware to Mercurial and Git repositories" +HOMEPAGE="https://kallithea-scm.org/" + +#EHG_REPO_URI="https://kallithea-scm.org/repos/kallithea" +EHG_REPO_URI="https://bitbucket.org/conservancy/kallithea" + +RDEPEND="dev-python/virtualenv" + +DEPEND="${RDEPEND}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RESTRICT_PYTHON_ABIS="3.*" + +src_compile() { + # not really compiling anything + + # create new virtual environment + virtualenv --no-site-packages dist/v + + # activate environment + source dist/v/bin/activate + + # WORKAROUND: + # pylonshq.com is dead, remove from config + sed -e 's/\(find_links\s*=\s*http:\/\/www.pylonshq.com\/\)/;\1/' -i setup.cfg + + # perform automatic installation, includes dependencies + python setup.py install || die "Automatic installation failed, please check above output." + + # rewrite virtualenv directory to later installation directory + sed -e 's/^\(VIRTUAL_ENV\s*=\s*\).*/\1"\/opt\/kallithea\/"/' -i dist/v/bin/activate +} + +src_install() { + # QA: no need to have anything world-writable... + chmod o-w -R dist/v/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info + + # just copy the virtualenv directory to /opt/kallithea + dodir /opt + cp -aR "${S}/dist/v" "${D}/opt/kallithea" +} + +pkg_postinst() { + einfo "You need to setup Kallithea according to the instructions at:" + einfo " https://pythonhosted.org/Kallithea/setup.html" + einfo "" + einfo "Kallithea also provides a way to migrate your database if you" + einfo "are coming from RhodeCode. Instructions can be found at:" + einfo "https://pythonhosted.org/Kallithea/index.html#converting-from-rhodecode" +}