diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-06-20 14:05:59 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-06-20 14:05:59 +0200 |
commit | d6fa18196a172f5a81c2ef23da199cb7286c96d5 (patch) | |
tree | 433c4f8554426b23f8249d24c5d5082635cb7f63 /media-sound | |
parent | media-sound/kmidimon: Import from Gentoo ebuild repository (diff) | |
download | kde-sunset-d6fa18196a172f5a81c2ef23da199cb7286c96d5.tar.gz kde-sunset-d6fa18196a172f5a81c2ef23da199cb7286c96d5.tar.bz2 kde-sunset-d6fa18196a172f5a81c2ef23da199cb7286c96d5.zip |
media-sound/kradio: Import from Gentoo ebuild repository
Package-Manager: Portage-2.3.40, Repoman-2.3.9
RepoMan-Options: --force
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/kradio/Manifest | 1 | ||||
-rw-r--r-- | media-sound/kradio/files/kradio-4.0.7-include.patch | 15 | ||||
-rw-r--r-- | media-sound/kradio/kradio-4.0.8.ebuild | 75 | ||||
-rw-r--r-- | media-sound/kradio/metadata.xml | 8 |
4 files changed, 99 insertions, 0 deletions
diff --git a/media-sound/kradio/Manifest b/media-sound/kradio/Manifest new file mode 100644 index 00000000..dae96716 --- /dev/null +++ b/media-sound/kradio/Manifest @@ -0,0 +1 @@ +DIST kradio4-4.0.8.tar.bz2 1694959 BLAKE2B 831925d008308e8334d7a5777cc3600da7af108f67411fade06db45f5b9a94fe3cdb90f74a897730ab020012de308042f3facf7672bf650adc2f259e23c6f53c SHA512 5c10cd8135d5c595cc3b1de83e59dd8913edd06ec2a74a1d69afcb01ad720eac51baea1fd53328d99f307feceb5c5f98db353f9ee94581fd290b34f6de509784 diff --git a/media-sound/kradio/files/kradio-4.0.7-include.patch b/media-sound/kradio/files/kradio-4.0.7-include.patch new file mode 100644 index 00000000..4a0d6aaf --- /dev/null +++ b/media-sound/kradio/files/kradio-4.0.7-include.patch @@ -0,0 +1,15 @@ +KDE4_INCLUDES also contains Qt includes required by KDE. +See FindKDE4Internal.cmake for more details. + +Fixes Gentoo bug #510500. +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -55,7 +55,7 @@ + ) + + INCLUDE_DIRECTORIES( +- ${KDE4_INCLUDE_DIR} ++ ${KDE4_INCLUDES} + ${QT_INCLUDE_DIR} + ${Boost_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR}/src diff --git a/media-sound/kradio/kradio-4.0.8.ebuild b/media-sound/kradio/kradio-4.0.8.ebuild new file mode 100644 index 00000000..83404bb6 --- /dev/null +++ b/media-sound/kradio/kradio-4.0.8.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +KDE_LINGUAS_DIR=( po convert-presets/po ) +PLUGINS=( + alsa-sound dbus gui-docking-menu gui-error-log gui-quickbar + gui-standard-display internetradio lirc mpris oss-sound radio recording shortcuts + soundserver streaming timecontrol timeshifter v4lradio +) +KDE_LINGUAS="cs de es is it pl pt pt_BR ru sk sr@latin tr uk" +QT3SUPPORT_REQUIRED="true" +inherit kde4-base + +MY_P=${PN}4-${PV/_/-} + +DESCRIPTION="kradio is a radio tuner application for KDE" +HOMEPAGE="http://kradio.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="4" +IUSE="alsa debug encode ffmpeg libav lirc +mp3 +vorbis v4l" + +DEPEND=" + media-libs/libsndfile + alsa? ( media-libs/alsa-lib ) + ffmpeg? ( + >=media-libs/libmms-0.4 + libav? ( media-video/libav:= ) + !libav? ( media-video/ffmpeg:0= ) + ) + lirc? ( app-misc/lirc ) + mp3? ( media-sound/lame ) + vorbis? ( + media-libs/libvorbis + media-libs/libogg + ) +" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +PATCHES=( "${FILESDIR}/${PN}-4.0.7-include.patch" ) + +src_prepare() { + local lang + for lang in ${KDE_LINGUAS} ; do + if ! use "l10n_$(kde4_lingua_to_l10n "${lang}")" ; then + for dir in "${KDE_LINGUAS_DIR[@]}" ; do + rm ${dir}/${lang}.po + done + for plugin in "${PLUGINS[@]}" ; do + rm plugins/${plugin}/po/${lang}.po + done + fi + done + + kde4-base_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DWITH_ALSA=$(usex alsa) + -DWITH_FFMPEG=$(usex ffmpeg) + -DWITH_LIRC=$(usex lirc) + -DWITH_LAME=$(usex mp3) + -DWITH_OGG_VORBIS=$(usex vorbis) + -DWITH_V4L2=$(usex v4l) + ) + + kde4-base_src_configure +} diff --git a/media-sound/kradio/metadata.xml b/media-sound/kradio/metadata.xml new file mode 100644 index 00000000..2e3475b1 --- /dev/null +++ b/media-sound/kradio/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">kradio</remote-id> + </upstream> +</pkgmetadata> |