summaryrefslogtreecommitdiffstats
path: root/trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2022-07-12 18:16:28 +0000
committerormorph <roma251078@mail.ru>2022-07-12 19:20:10 +0000
commit069b3ccd7c13a84218de705a7034fda34cf4b31c (patch)
tree919165d6684a920c8642b822ed46fc3e00df3a6a /trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild
parent43d268cffc49770ffa1bd8dfc59d68f862c6dbcd (diff)
downloadtde-packaging-gentoo-069b3ccd7c13a84218de705a7034fda34cf4b31c.tar.gz
tde-packaging-gentoo-069b3ccd7c13a84218de705a7034fda34cf4b31c.zip
Solving the tdemultimedia multiple build problem
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild')
-rw-r--r--trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild37
1 files changed, 14 insertions, 23 deletions
diff --git a/trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild b/trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild
index db067c6f..8f30f5be 100644
--- a/trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild
+++ b/trinity-base/tdemultimedia-tdeioslaves/tdemultimedia-tdeioslaves-9999.ebuild
@@ -6,10 +6,10 @@ EAPI="8"
TRINITY_MODULE_NAME="tdemultimedia"
TRINITY_MODULE_TYPE="core"
-TRINITY_SUBMODULE="kscd libkcddb tdeioslave"
+TRINITY_SUBMODULE="tdeioslave"
TRINITY_HANDBOOK="optional"
TSM_EXTRACT="kscd libkcddb tdeioslave"
-inherit trinity-meta-2
+inherit flag-o-matic trinity-meta-2
DESCRIPTION="Multimedia Trinity TDEIOslaves"
if [[ ${PV} != *9999* ]] ; then
@@ -18,11 +18,23 @@ fi
IUSE="flac"
DEPEND="~trinity-base/libkcddb-${PV}
+ ~trinity-base/libkscd-${PV}
media-sound/cdparanoia
flac? ( media-libs/flac )"
RDEPEND="${DEPEND}"
+src_prepare() {
+ sed -i 's/NOT BUILD_KSCD/BUILD_KSCD/' "${S}/tdeioslave/CMakeLists.txt" || die
+ sed -i 's/kcddb-shared/kcddb/' "${S}/tdeioslave/audiocd/plugins/CMakeLists.txt" || die
+ sed -i 's/kcddb-shared/kcddb/' "${S}/tdeioslave/audiocd/CMakeLists.txt" || die
+ sed -i -e 's/kcompactdisc-static/kcompactdisc/' -e 's/workman-static/workman/' \
+ "${S}/tdeioslave/audiocd/CMakeLists.txt" || die
+ trinity-meta-2_src_prepare
+}
+
src_configure() {
+ append-cxxflags "-I${TDEDIR}/include/libkcddb -I${TDEDIR}/include"
+ append-ldflags "-L${TDEDIR}/$(get_libdir) -L${TDEDIR}/$(get_libdir)/kscd"
local mycmakeargs=(
-DWITH_FLAC=$(usex flac)
-DWITH_CDPARANOIA=ON
@@ -30,24 +42,3 @@ src_configure() {
trinity-meta-2_src_configure
}
-src_install() {
- trinity-meta-2_src_install
- rm -r "${D}"/usr/trinity/14/share/apps/tdeconf_update/kcmcddb-emailsettings.upd
- rm -r "${D}"/usr/trinity/14/share/config.kcfg/libkcddb.kcfg
- rm -r "${D}"/usr/trinity/14/share/applications/tde/libkcddb.desktop
- rm -r "${D}"/usr/trinity/14/include/libkcddb
- rm -r "${D}"/usr/trinity/14/lib64/libkcddb*
- rm -r "${D}"/usr/trinity/14/lib64/trinity/kcm_cddb*
- rm -r "${D}"/usr/share/doc/tdemultimedia-tdeioslaves-${PV}/kscd*
- rm -r "${D}"/usr/trinity/14/bin
- rm -r "${D}"/usr/trinity/14/share/icons/hicolor/*/apps/kscd.png
- rm -r "${D}"/usr/trinity/14/share/config.kcfg/kscd.kcfg
- rm -r "${D}"/usr/trinity/14/share/mimelnk/text/xmcd.desktop
- rm -r "${D}"/usr/trinity/14/share/applications/tde/kscd.desktop
- rm -r "${D}"/usr/trinity/14/share/apps/konqueror/servicemenus/audiocd_play.desktop
- rm -r "${D}"/usr/trinity/14/share/apps/profiles/kscd.profile.xml
- rm -r "${D}"/usr/trinity/14/share/apps/kscd/icons/crystalsvg/22x22/actions/cdsmall.png
- rm -r "${D}"/usr/trinity/14/share/doc/tde/HTML/en/kcontrol/cddb
- rm -r "${D}"/usr/trinity/14/share/doc/tde/HTML/en/kscd
-}
-