/[gentoo-x86]/www-apps/bitten/bitten-0.6-r1.ebuild
Gentoo

Contents of /www-apps/bitten/bitten-0.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Aug 27 15:46:41 2012 UTC (8 years ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Add tmpdir as home for bitten to avoid subversion going mad about non existant /dev/null/.subversion

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 xarthisius 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/www-apps/bitten/bitten-0.6.ebuild,v 1.1 2012/08/27 11:01:40 xarthisius Exp $
4    
5     EAPI=4
6    
7     MY_PN=Bitten
8     MY_P=${MY_PN}-${PV}
9    
10     PYTHON_DEPEND="2"
11     SUPPORT_PYTHON_ABIS="1"
12     RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-*"
13     DISTUTILS_SRC_TEST="setup.py"
14    
15     inherit distutils user
16    
17     DESCRIPTION="Continuous integration plugin for Trac"
18     HOMEPAGE="http://bitten.edgewall.org/"
19     SRC_URI="http://ftp.edgewall.com/pub/${PN}/${MY_P}.tar.gz"
20    
21     LICENSE="BSD Apache-2.0"
22     SLOT="0"
23     KEYWORDS="~amd64 ~x86"
24     IUSE="server test"
25    
26     CDEPEND="dev-python/setuptools"
27     DEPEND="${CDEPEND}
28     test? ( dev-python/figleaf )"
29     RDEPEND="${CDEPEND}
30     server? ( www-apps/trac )"
31    
32     S=${WORKDIR}/${MY_P}
33    
34     pkg_setup() {
35     python_pkg_setup
36     DISTUTILS_GLOBAL_OPTIONS=("2.* $(use_with server master)")
37     enewgroup tracd
38     enewuser ${PN} -1 -1 /var/tmp/${PN} tracd
39     }
40    
41     src_install() {
42     distutils_src_install
43     newinitd "${FILESDIR}"/${PN}.initd ${PN}
44     newconfd "${FILESDIR}"/${PN}.confd ${PN}
45     }
46    
47     pkg_postinst() {
48     touch "${ROOT}"/var/log/${PN}.log
49     chown -f ${PN}:tracd "${ROOT}"/var/log/${PN}.log
50     }

  ViewVC Help
Powered by ViewVC 1.1.20