Gentoo Archives: gentoo-commits

From: "André Erdmann" <dywi@×××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/R_overlay:master commit in: /
Date: Sat, 22 Feb 2014 14:56:16
Message-Id: 1393080216.451b9c4a86e0ebcb13e6333900178c59e40393d6.dywi@gentoo
1 commit: 451b9c4a86e0ebcb13e6333900178c59e40393d6
2 Author: André Erdmann <dywi <AT> mailerd <DOT> de>
3 AuthorDate: Sat Feb 22 14:35:45 2014 +0000
4 Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
5 CommitDate: Sat Feb 22 14:43:36 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=451b9c4a
7
8 roverlay-9999.ebuild: compression USE flags
9
10 * bzip2 renamed to compress-config
11 * the (new) xz flag can be selected to have guaranteed runtime support for xz
12
13 ---
14 roverlay-9999.ebuild | 18 +++++++++---------
15 1 file changed, 9 insertions(+), 9 deletions(-)
16
17 diff --git a/roverlay-9999.ebuild b/roverlay-9999.ebuild
18 index db24ce6..abe6b6a 100644
19 --- a/roverlay-9999.ebuild
20 +++ b/roverlay-9999.ebuild
21 @@ -22,18 +22,18 @@ SRC_URI=""
22 LICENSE="GPL-2+"
23 SLOT="0"
24 KEYWORDS=""
25 -IUSE="bzip2 +prebuilt-documentation"
26 -
27 +IUSE="compress-config xz +prebuilt-documentation"
28
29 DEPEND="
30 dev-python/setuptools
31 - !prebuilt-documentation? ( >=dev-python/docutils-0.9 )"
32 + !prebuilt-documentation? ( >=dev-python/docutils-0.9 )
33 + compress-config? ( app-arch/bzip2 )"
34 RDEPEND="
35 sys-apps/portage
36 virtual/python-argparse
37 dev-python/mako[${PYTHON_USEDEP}]
38 - virtual/python-futures"
39 -
40 + xz? ( $(python_gen_cond_dep dev-python/backports-lzma[${PYTHON_USEDEP}] python{2_7,3_2}) )
41 + virtual/python-futures[${PYTHON_USEDEP}]"
42
43 pkg_setup() {
44 enewgroup roverlay
45 @@ -41,9 +41,9 @@ pkg_setup() {
46
47 python_prepare_all() {
48 distutils-r1_python_prepare_all
49 - if use bzip2; then
50 - einfo "USE=bzip2: Compressing dependency rules and license map"
51 - emake BUILDDIR="${S}/compressed" compress-config
52 + if use compress-config; then
53 + einfo "Compressing dependency rules and license map"
54 + emake X_COMPRESS=bzip2 BUILDDIR="${S}/compressed" compress-config
55 fi
56 }
57
58 @@ -55,7 +55,7 @@ python_install_all() {
59 distutils-r1_python_install_all
60
61 emake BUILDDIR="${S}/compressed" DESTDIR="${D}" \
62 - install-data $(usex bzip2 install-config{-compressed,})
63 + install-data $(usex compress-config install-config{-compressed,})
64
65 # could be done in the Makefile as well
66 dobin "${S}/bin/install/${PN}-setup-interactive"