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 @ 142:2389785d147c

dev-vcs/kallithea: adding MySQL support, removing sqlite default selection, requiring at least one database USE flag
author Daniel Neugebauer <dneuge@energiequant.de>
date Mon, 28 Mar 2016 20:27:26 +0200
parents 99a8dff9f4b0
children b4939be30911
comparison
equal deleted inserted replaced
141:99a8dff9f4b0 142:2389785d147c
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 postgres" 23 IUSE="+git mysql postgres sqlite"
24 REQUIRED_USE="|| ( mysql postgres sqlite )"
24 25
25 RDEPEND=" 26 RDEPEND="
26 dev-python/virtualenv 27 dev-python/virtualenv
27 git? ( dev-vcs/git ) 28 git? ( dev-vcs/git )
29 mysql? ( dev-db/mysql )
28 postgres? ( dev-db/postgresql ) 30 postgres? ( dev-db/postgresql )
29 sqlite? ( dev-lang/python:2.7[sqlite] ) 31 sqlite? ( dev-lang/python:2.7[sqlite] )
30 " 32 "
33 #mysql? ( virtual/libmysqlclient )
31 34
32 DEPEND="${RDEPEND} 35 DEPEND="${RDEPEND}
33 app-arch/unzip 36 app-arch/unzip
34 sys-apps/sed" 37 sys-apps/sed"
35 38
85 # WORKAROUND: 88 # WORKAROUND:
86 # Kallithea needs psycopg2 for PostgreSQL support which is not currently listed as a dependency?! 89 # 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 90 # at the time of writing 2.6.1 is current, so we limit the version to <2.7
88 if use postgres ; then 91 if use postgres ; then
89 pip2.7 install 'psycopg2>=2.6,<2.7' || die "Failed to install psycopg2 (required for PostgreSQL support), aborting!" 92 pip2.7 install 'psycopg2>=2.6,<2.7' || die "Failed to install psycopg2 (required for PostgreSQL support), aborting!"
93 fi
94
95 # WORKAROUND:
96 # Kallithea needs MySQLdb for MySQL support which is not currently listed as a dependency?!
97 # at the time of writing 1.2.5 is current, so we limit the version to <1.3
98 if use mysql ; then
99 pip2.7 install 'MySQL-python>=1.2,<1.3' || die "Failed to install MySQL-python (required for MySQL support), aborting!"
90 fi 100 fi
91 101
92 # perform automatic installation, includes dependencies 102 # perform automatic installation, includes dependencies
93 echo 103 echo
94 echo "===> output by Kallithea's setup.py" 104 echo "===> output by Kallithea's setup.py"