summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-02-07 17:38:47 +0100
committerMichał Górny <mgorny@gentoo.org>2020-02-09 17:26:58 +0100
commit9472ed1fddb561587a7ec6ad833ac14aa5cc5737 (patch)
tree55d3e91f2e66d76b4ac62aa7e6ca91290c939cb8 /media-libs/libkate/libkate-0.4.1-r4.ebuild
parentmedia-libs/libgpod: Switch to PYTHON_MULTI_USEDEP API (diff)
downloadgentoo-9472ed1fddb561587a7ec6ad833ac14aa5cc5737.tar.gz
gentoo-9472ed1fddb561587a7ec6ad833ac14aa5cc5737.tar.bz2
gentoo-9472ed1fddb561587a7ec6ad833ac14aa5cc5737.zip
media-libs/libkate: Switch to PYTHON_MULTI_USEDEP API
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'media-libs/libkate/libkate-0.4.1-r4.ebuild')
-rw-r--r--media-libs/libkate/libkate-0.4.1-r4.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/media-libs/libkate/libkate-0.4.1-r4.ebuild b/media-libs/libkate/libkate-0.4.1-r4.ebuild
new file mode 100644
index 000000000000..3711f2d95de4
--- /dev/null
+++ b/media-libs/libkate/libkate-0.4.1-r4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib-minimal python-single-r1
+
+DESCRIPTION="Codec for karaoke and text encapsulation for Ogg"
+HOMEPAGE="https://code.google.com/p/libkate/"
+SRC_URI="https://libkate.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 sparc x86"
+
+IUSE="debug doc wxwidgets"
+REQUIRED_USE="wxwidgets? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND="
+ media-libs/libogg:=[${MULTILIB_USEDEP}]
+ media-libs/libpng:0=[${MULTILIB_USEDEP}]
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig[${MULTILIB_USEDEP}]
+ sys-devel/flex[${MULTILIB_USEDEP}]
+ sys-devel/bison
+ doc? ( app-doc/doxygen )
+"
+RDEPEND="${COMMON_DEPEND}
+ wxwidgets? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/wxpython:3.0[${PYTHON_MULTI_USEDEP}]
+ ')
+ media-libs/liboggz )
+"
+
+pkg_setup() {
+ use wxwidgets && python-single-r1_pkg_setup
+}
+
+multilib_src_configure() {
+ local ECONF_SOURCE=${S}
+ econf \
+ --disable-static \
+ $(use_enable debug) \
+ $(multilib_native_use_enable doc) \
+ $(multilib_native_usex wxwidgets '' 'PYTHON=:')
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ find "${D}" -name '*.la' -delete || die
+ use wxwidgets && python_fix_shebang "${D}"
+}