Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libkate/
Date: Fri, 11 Aug 2017 13:21:05
Message-Id: 1502457634.0967057a69d7f97894df3e3336fbf9f52ff45eea.mgorny@gentoo
1 commit: 0967057a69d7f97894df3e3336fbf9f52ff45eea
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 9 05:09:51 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 11 13:20:34 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0967057a
7
8 media-libs/libkate: Use the configure var to override PYTHON
9
10 Replace the 'sed' hack with a cleaner PYTHON=: configure override to
11 disable Python. This will make it possible to override it per-ABI.
12
13 media-libs/libkate/libkate-0.4.1-r3.ebuild | 53 ++++++++++++++++++++++++++++++
14 1 file changed, 53 insertions(+)
15
16 diff --git a/media-libs/libkate/libkate-0.4.1-r3.ebuild b/media-libs/libkate/libkate-0.4.1-r3.ebuild
17 new file mode 100644
18 index 00000000000..fe9f1232492
19 --- /dev/null
20 +++ b/media-libs/libkate/libkate-0.4.1-r3.ebuild
21 @@ -0,0 +1,53 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python2_7 )
28 +inherit ltprune python-single-r1
29 +
30 +DESCRIPTION="Codec for karaoke and text encapsulation for Ogg"
31 +HOMEPAGE="https://code.google.com/p/libkate/"
32 +SRC_URI="https://libkate.googlecode.com/files/${P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
37 +
38 +IUSE="debug doc wxwidgets"
39 +REQUIRED_USE="wxwidgets? ( ${PYTHON_REQUIRED_USE} )"
40 +
41 +COMMON_DEPEND="
42 + media-libs/libogg:=
43 + media-libs/libpng:0=
44 +"
45 +DEPEND="${COMMON_DEPEND}
46 + virtual/pkgconfig
47 + sys-devel/flex
48 + sys-devel/bison
49 + doc? ( app-doc/doxygen )
50 +"
51 +RDEPEND="${COMMON_DEPEND}
52 + wxwidgets? (
53 + ${PYTHON_DEPS}
54 + dev-python/wxpython:3.0[${PYTHON_USEDEP}]
55 + media-libs/liboggz )
56 +"
57 +
58 +pkg_setup() {
59 + use wxwidgets && python-single-r1_pkg_setup
60 +}
61 +
62 +src_configure() {
63 + econf \
64 + --disable-static \
65 + $(use_enable debug) \
66 + $(use_enable doc) \
67 + $(usex wxwidgets '' 'PYTHON=:')
68 +}
69 +
70 +src_install() {
71 + default
72 + prune_libtool_files
73 + use wxwidgets && python_fix_shebang "${D}"
74 +}