Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libkate/
Date: Mon, 05 Jun 2017 10:21:55
Message-Id: 1496658101.36175d21171b68af965eae9353e737f51bfca7d6.pacho@gentoo
1 commit: 36175d21171b68af965eae9353e737f51bfca7d6
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 10:20:59 2017 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 10:21:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36175d21
7
8 media-libs/libkate: Use wxpython-3.0 (#601184), drop static libs (#514380)
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 media-libs/libkate/libkate-0.4.1-r2.ebuild | 53 ++++++++++++++++++++++++++++++
13 1 file changed, 53 insertions(+)
14
15 diff --git a/media-libs/libkate/libkate-0.4.1-r2.ebuild b/media-libs/libkate/libkate-0.4.1-r2.ebuild
16 new file mode 100644
17 index 00000000000..a7a2d150f1c
18 --- /dev/null
19 +++ b/media-libs/libkate/libkate-0.4.1-r2.ebuild
20 @@ -0,0 +1,53 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +PYTHON_COMPAT=( python2_7 )
27 +inherit ltprune python-single-r1
28 +
29 +DESCRIPTION="Codec for karaoke and text encapsulation for Ogg"
30 +HOMEPAGE="https://code.google.com/p/libkate/"
31 +SRC_URI="https://libkate.googlecode.com/files/${P}.tar.gz"
32 +
33 +LICENSE="BSD"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
36 +
37 +IUSE="debug doc wxwidgets"
38 +REQUIRED_USE="wxwidgets? ( ${PYTHON_REQUIRED_USE} )"
39 +
40 +COMMON_DEPEND="
41 + media-libs/libogg:=
42 + media-libs/libpng:0=
43 +"
44 +DEPEND="${COMMON_DEPEND}
45 + virtual/pkgconfig
46 + sys-devel/flex
47 + sys-devel/bison
48 + doc? ( app-doc/doxygen )
49 +"
50 +RDEPEND="${COMMON_DEPEND}
51 + wxwidgets? (
52 + ${PYTHON_DEPS}
53 + dev-python/wxpython:3.0[${PYTHON_USEDEP}]
54 + media-libs/liboggz )
55 +"
56 +
57 +pkg_setup() {
58 + use wxwidgets && python-single-r1_pkg_setup
59 +}
60 +
61 +src_configure() {
62 + if ! use wxwidgets; then
63 + sed -i -e "s/HAVE_PYTHON=yes/HAVE_PYTHON=no/" configure || die
64 + fi
65 +
66 + econf --disable-static $(use_enable debug) $(use_enable doc)
67 +}
68 +
69 +src_install() {
70 + default
71 + prune_libtool_files
72 + use wxwidgets && python_fix_shebang "${D}"
73 +}