We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison dev-vcs/kallithea/kallithea-9999.ebuild @ 127:86d178602b1f

adding dev version Kallithea ebuild
author Daniel Neugebauer <dneuge@energiequant.de>
date Sat, 12 Jul 2014 23:37:46 +0200
parents dev-vcs/rhodecode/rhodecode-1.3.6.ebuild@f6aeaeb53f52
children 507516b40917
comparison
equal deleted inserted replaced
63:769f5cdd5c27 127:86d178602b1f
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI="2"
5 PYTHON_DEPEND="2"
6 SUPPORT_PYTHON_ABIS="1"
7
8 inherit mercurial
9
10 DESCRIPTION="a web-based frontend and middleware to Mercurial and Git repositories"
11 HOMEPAGE="https://kallithea-scm.org/"
12
13 #EHG_REPO_URI="https://kallithea-scm.org/repos/kallithea"
14 EHG_REPO_URI="https://bitbucket.org/conservancy/kallithea"
15
16 RDEPEND="dev-python/virtualenv"
17
18 DEPEND="${RDEPEND}"
19
20 LICENSE="GPL-3"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86"
23 IUSE=""
24
25 RESTRICT_PYTHON_ABIS="3.*"
26
27 src_compile() {
28 # not really compiling anything
29
30 # create new virtual environment
31 virtualenv --no-site-packages dist/v
32
33 # activate environment
34 source dist/v/bin/activate
35
36 # WORKAROUND:
37 # pylonshq.com is dead, remove from config
38 sed -e 's/\(find_links\s*=\s*http:\/\/www.pylonshq.com\/\)/;\1/' -i setup.cfg
39
40 # perform automatic installation, includes dependencies
41 python setup.py install || die "Automatic installation failed, please check above output."
42
43 # rewrite virtualenv directory to later installation directory
44 sed -e 's/^\(VIRTUAL_ENV\s*=\s*\).*/\1"\/opt\/kallithea\/"/' -i dist/v/bin/activate
45 }
46
47 src_install() {
48 # QA: no need to have anything world-writable...
49 chmod o-w -R dist/v/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info
50
51 # just copy the virtualenv directory to /opt/kallithea
52 dodir /opt
53 cp -aR "${S}/dist/v" "${D}/opt/kallithea"
54 }
55
56 pkg_postinst() {
57 einfo "You need to setup Kallithea according to the instructions at:"
58 einfo " https://pythonhosted.org/Kallithea/setup.html"
59 einfo ""
60 einfo "Kallithea also provides a way to migrate your database if you"
61 einfo "are coming from RhodeCode. Instructions can be found at:"
62 einfo "https://pythonhosted.org/Kallithea/index.html#converting-from-rhodecode"
63 }