summaryrefslogtreecommitdiffstats
path: root/trinity-base/krec/krec-9999.ebuild
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2021-11-03 19:07:12 +0300
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2021-11-03 23:53:20 +0000
commitff42a26ec6adde0f78e84902c8241b89008b8e4c (patch)
treeaa1de895bfdca9ab647b948df17e0e5b839475be /trinity-base/krec/krec-9999.ebuild
parentcf54e9c6e8f096409c7b3d9343cedd40d47fae0f (diff)
downloadtde-packaging-gentoo-ff42a26ec6adde0f78e84902c8241b89008b8e4c.tar.gz
tde-packaging-gentoo-ff42a26ec6adde0f78e84902c8241b89008b8e4c.zip
Added tdemultimedia-meta metapackage with dependencies
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'trinity-base/krec/krec-9999.ebuild')
-rw-r--r--trinity-base/krec/krec-9999.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/trinity-base/krec/krec-9999.ebuild b/trinity-base/krec/krec-9999.ebuild
new file mode 100644
index 00000000..5f7d6fab
--- /dev/null
+++ b/trinity-base/krec/krec-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2021 The Trinity Desktop Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+TRINITY_MODULE_NAME="tdemultimedia"
+TSM_EXTRACT_ALSO="arts oggvorbis_artsplugin"
+
+inherit trinity-meta-2
+
+DESCRIPTION="TDE sound recorder"
+if [[ ${PV} != *9999* ]] ; then
+ KEYWORDS="~amd64 ~x86"
+fi
+IUSE="encode mp3 vorbis"
+
+DEPEND="~trinity-base/tdemultimedia-arts-${PV}
+ encode? ( mp3? ( media-sound/lame )
+ vorbis? ( media-libs/libvorbis ) )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_LAME="$(usex mp3)"
+ -DWITH_VORBIS="$(usex vorbis)"
+ -DBUILD_ARTS=yes
+ )
+
+ trinity-meta-2_src_configure
+}
+
+src_install() {
+ trinity-meta-2_src_install
+
+ #Junk all the files that overlap with tdemultimedia-arts.
+ #It would be cleaner not to let them install at all, but I wasn't
+ #able to pull that off.
+ rm -r ${D}/usr/trinity/14/share/apps/artscontrol/
+ rm -r ${D}/usr/trinity/14/share/apps/artsbuilder/
+ rm -r ${D}/usr/trinity/14/include/
+ rm -r ${D}/usr/trinity/14/lib64/libarts*
+ rm -r ${D}/usr/trinity/14/lib64/mcop/arts*
+ rm -r ${D}/usr/trinity/14/lib64/mcop/Arts/
+ rm -r ${D}/usr/trinity/14/share/icons/*/*/apps/artscontrol.png
+ rm -r ${D}/usr/trinity/14/share/icons/*/*/apps/artsbuilder.png
+ rm -r ${D}/usr/trinity/14/share/icons/hicolor/scalable/
+ rm -r ${D}/usr/trinity/14/share/icons/crystalsvg/
+ rm -r ${D}/usr/trinity/14/share/applications/tde/artscontrol.desktop
+ rm -r ${D}/usr/trinity/14/share/applications/tde/artsbuilder.desktop
+ rm -r ${D}/usr/trinity/14/bin/artscontrol
+ rm -r ${D}/usr/trinity/14/bin/artsbuilder
+ rm -r ${D}/usr/trinity/14/bin/midisend
+ rm -r ${D}/usr/trinity/14/share/mimelnk/
+ rm -r ${D}/usr/trinity/14/share/apps/kicker/
+}