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-0.3.1.ebuild @ 141:99a8dff9f4b0

dev-vcs/kallithea: PostgreSQL support
author Daniel Neugebauer <dneuge@energiequant.de>
date Mon, 28 Mar 2016 19:06:49 +0200
parents 3bcc5cfd5a95
children 2389785d147c
comparison
equal deleted inserted replaced
140:3bcc5cfd5a95 141:99a8dff9f4b0
18 18
19 DESCRIPTION="a web-based frontend and middleware to Mercurial and Git repositories" 19 DESCRIPTION="a web-based frontend and middleware to Mercurial and Git repositories"
20 HOMEPAGE="https://kallithea-scm.org/" 20 HOMEPAGE="https://kallithea-scm.org/"
21 SRC_URI="https://pypi.python.org/packages/source/K/Kallithea/Kallithea-${PV}.tar.bz2" 21 SRC_URI="https://pypi.python.org/packages/source/K/Kallithea/Kallithea-${PV}.tar.bz2"
22 22
23 IUSE="+sqlite +git" 23 IUSE="+sqlite +git postgres"
24 24
25 RDEPEND=" 25 RDEPEND="
26 dev-python/virtualenv 26 dev-python/virtualenv
27 git? ( dev-vcs/git ) 27 git? ( dev-vcs/git )
28 postgres? ( dev-db/postgresql )
28 sqlite? ( dev-lang/python:2.7[sqlite] ) 29 sqlite? ( dev-lang/python:2.7[sqlite] )
29 " 30 "
30 31
31 DEPEND="${RDEPEND} 32 DEPEND="${RDEPEND}
32 app-arch/unzip 33 app-arch/unzip
78 pip2.7 install 'PasteScript==2.0.2' || die "Failed to install PasteScript, aborting!" 79 pip2.7 install 'PasteScript==2.0.2' || die "Failed to install PasteScript, aborting!"
79 80
80 # WORKAROUND: 81 # WORKAROUND:
81 # Kallithea's attempt to install Mercurial fails, so we do it first 82 # Kallithea's attempt to install Mercurial fails, so we do it first
82 pip2.7 install 'mercurial>=2.9,<3.8' || die "Failed to install Mercurial, aborting!" 83 pip2.7 install 'mercurial>=2.9,<3.8' || die "Failed to install Mercurial, aborting!"
84
85 # WORKAROUND:
86 # Kallithea needs psycopg2 for PostgreSQL support which is not currently listed as a dependency?!
87 # at the time of writing 2.6.1 is current, so we limit the version to <2.7
88 if use postgres ; then
89 pip2.7 install 'psycopg2>=2.6,<2.7' || die "Failed to install psycopg2 (required for PostgreSQL support), aborting!"
90 fi
83 91
84 # perform automatic installation, includes dependencies 92 # perform automatic installation, includes dependencies
85 echo 93 echo
86 echo "===> output by Kallithea's setup.py" 94 echo "===> output by Kallithea's setup.py"
87 python2.7 setup.py install 95 python2.7 setup.py install