Lines 1-11
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial-server/mercurial-server-1.2.ebuild,v 1.4 2012/12/26 23:17:35 ottxor Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial-server/mercurial-server-1.2.ebuild,v 1.4 2012/12/26 23:17:35 ottxor Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI=5 |
6 |
PYTHON_DEPEND="2" |
|
|
7 |
|
6 |
|
8 |
inherit distutils eutils user |
7 |
PYTHON_COMPAT=( python2_7 ) |
|
|
8 |
DISTUTILS_SINGLE_IMPL=1 |
9 |
|
10 |
inherit distutils-r1 user |
9 |
|
11 |
|
10 |
if [[ "${PV}" = "9999" ]]; then |
12 |
if [[ "${PV}" = "9999" ]]; then |
11 |
inherit mercurial |
13 |
inherit mercurial |
Lines 25-31
Link Here
|
25 |
SLOT="0" |
27 |
SLOT="0" |
26 |
IUSE="doc" |
28 |
IUSE="doc" |
27 |
|
29 |
|
28 |
RDEPEND="dev-vcs/mercurial" |
30 |
RDEPEND="dev-vcs/mercurial[${PYTHON_USEDEP}]" |
29 |
DEPEND="${RDEPEND} |
31 |
DEPEND="${RDEPEND} |
30 |
doc? ( |
32 |
doc? ( |
31 |
app-text/docbook-xsl-stylesheets |
33 |
app-text/docbook-xsl-stylesheets |
Lines 35-43
Link Here
|
35 |
pkg_setup() { |
37 |
pkg_setup() { |
36 |
enewgroup hg |
38 |
enewgroup hg |
37 |
enewuser hg -1 /bin/bash "/var/lib/${PN}" hg |
39 |
enewuser hg -1 /bin/bash "/var/lib/${PN}" hg |
|
|
40 |
python-single-r1_pkg_setup |
38 |
} |
41 |
} |
39 |
|
42 |
|
40 |
src_prepare() { |
43 |
src_prepare() { |
|
|
44 |
distutils-r1_src_prepare |
41 |
# remove useless makefile |
45 |
# remove useless makefile |
42 |
rm Makefile |
46 |
rm Makefile |
43 |
|
47 |
|
Lines 51-59
Link Here
|
51 |
fi |
55 |
fi |
52 |
} |
56 |
} |
53 |
|
57 |
|
54 |
src_compile() { |
58 |
python_compile_all() { |
55 |
distutils_src_compile |
|
|
56 |
|
57 |
# build documentation |
59 |
# build documentation |
58 |
if use doc; then |
60 |
if use doc; then |
59 |
xsltproc --nonet -o manual.html \ |
61 |
xsltproc --nonet -o manual.html \ |
Lines 63-69
Link Here
|
63 |
} |
65 |
} |
64 |
|
66 |
|
65 |
src_install() { |
67 |
src_install() { |
66 |
distutils_src_install --install-scripts="/usr/share/${PN}" |
68 |
distutils-r1_src_install |
67 |
|
69 |
|
68 |
# install configuration files |
70 |
# install configuration files |
69 |
insinto "/etc/${PN}" |
71 |
insinto "/etc/${PN}" |