diff options
Diffstat (limited to 'trinity-base/kaudiocreator')
-rw-r--r-- | trinity-base/kaudiocreator/kaudiocreator-14.0.12.ebuild | 40 | ||||
-rw-r--r-- | trinity-base/kaudiocreator/kaudiocreator-9999.ebuild | 44 |
2 files changed, 21 insertions, 63 deletions
diff --git a/trinity-base/kaudiocreator/kaudiocreator-14.0.12.ebuild b/trinity-base/kaudiocreator/kaudiocreator-14.0.12.ebuild index 6d058bdf..0be46794 100644 --- a/trinity-base/kaudiocreator/kaudiocreator-14.0.12.ebuild +++ b/trinity-base/kaudiocreator/kaudiocreator-14.0.12.ebuild @@ -14,6 +14,7 @@ if [[ ${PV} != *9999* ]] ; then fi IUSE="encode flac mp3 vorbis" DEPEND="~trinity-base/libkcddb-${PV} + ~trinity-base/libkscd-${PV} media-sound/cdparanoia" # External encoders used - no optional compile-time support @@ -23,36 +24,15 @@ RDEPEND="${RDEPEND} flac? ( media-libs/flac ) mp3? ( media-sound/lame ) )" -src_configure() { - mycmakeargs=( - -DBUILD_LIBKCDDB=yes - -DBUILD_KSCD=yes - ) - - trinity-meta-2_src_configure +src_prepare() { + sed -i 's/kcddb-shared/kcddb/' "${S}/${PN}/CMakeLists.txt" || die + sed -i 's/if( NOT BUILD_KSCD )/if( BUILD_KSCD )/' "${S}/CMakeLists.txt" || die + sed -i -e 's/kcompactdisc-static/kcompactdisc/' -e 's/workman-static/workman/' "${S}/${PN}/CMakeLists.txt" || die + trinity-meta-2_src_prepare } -src_install() { - trinity-meta-2_src_install - - #Junk all the files that overlap with libkcddb and kscd. - #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/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/ - rm -r "${D}"/usr/trinity/14/lib64/ - rm -r "${D}"/usr/trinity/14/bin/kscd - rm -r "${D}"/usr/trinity/14/bin/workman2cddb.pl - rm -r "${D}"/usr/trinity/14/share/applications/tde/kscd.desktop - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/*/apps/kscd.png - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/128x128 - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/48x48 - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/64x64 - rm -r "${D}"/usr/trinity/14/share/config.kcfg/kscd.kcfg - rm -r "${D}"/usr/trinity/14/share/apps/profiles/ - rm -r "${D}"/usr/trinity/14/share/apps/konqueror/servicemenus/audiocd_play.desktop - rm -r "${D}"/usr/trinity/14/share/apps/kscd/ - rm -r "${D}"/usr/trinity/14/share/mimelnk/ +src_configure() { + append-cxxflags "-I${TDEDIR}/include/libkcddb -I${TDEDIR}/include" + append-ldflags "-L${TDEDIR}/$(get_libdir)/kscd" + trinity-meta-2_src_configure } diff --git a/trinity-base/kaudiocreator/kaudiocreator-9999.ebuild b/trinity-base/kaudiocreator/kaudiocreator-9999.ebuild index 751c54fd..4ab79244 100644 --- a/trinity-base/kaudiocreator/kaudiocreator-9999.ebuild +++ b/trinity-base/kaudiocreator/kaudiocreator-9999.ebuild @@ -7,7 +7,7 @@ TRINITY_MODULE_TYPE="core" TRINITY_HANDBOOK="optional" TSM_EXTRACT_ALSO="libkcddb/ kscd/" -inherit trinity-meta-2 +inherit flag-o-matic trinity-meta-2 DESCRIPTION="TDE CD ripper and audio encoder frontend" if [[ ${PV} != *9999* ]] ; then @@ -15,6 +15,7 @@ if [[ ${PV} != *9999* ]] ; then fi IUSE="encode flac mp3 vorbis" DEPEND="~trinity-base/libkcddb-${PV} + ~trinity-base/libkscd-${PV} media-sound/cdparanoia" # External encoders used - no optional compile-time support @@ -24,38 +25,15 @@ RDEPEND="${RDEPEND} flac? ( media-libs/flac ) mp3? ( media-sound/lame ) )" -src_configure() { - mycmakeargs=( - -DBUILD_LIBKCDDB=yes - -DBUILD_KSCD=yes - ) - - trinity-meta-2_src_configure +src_prepare() { + sed -i 's/kcddb-shared/kcddb/' "${S}/${PN}/CMakeLists.txt" || die + sed -i 's/if( NOT BUILD_KSCD )/if( BUILD_KSCD )/' "${S}/CMakeLists.txt" || die + sed -i -e 's/kcompactdisc-static/kcompactdisc/' -e 's/workman-static/workman/' "${S}/${PN}/CMakeLists.txt" || die + trinity-meta-2_src_prepare } -src_install() { - trinity-meta-2_src_install - - #Junk all the files that overlap with libkcddb and kscd. - #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/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/ - rm -r "${D}"/usr/trinity/14/lib64/ - rm -r "${D}"/usr/trinity/14/bin/kscd - rm -r "${D}"/usr/trinity/14/bin/workman2cddb.pl - rm -r "${D}"/usr/trinity/14/share/applications/tde/kscd.desktop - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/*/apps/kscd.png - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/128x128 - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/48x48 - rm -r "${D}"/usr/trinity/14/share/icons/hicolor/64x64 - rm -r "${D}"/usr/trinity/14/share/config.kcfg/kscd.kcfg - rm -r "${D}"/usr/trinity/14/share/apps/profiles/ - rm -r "${D}"/usr/trinity/14/share/apps/konqueror/servicemenus/audiocd_play.desktop - rm -r "${D}"/usr/trinity/14/share/apps/kscd/ - rm -r "${D}"/usr/trinity/14/share/mimelnk/ - 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 +src_configure() { + append-cxxflags "-I${TDEDIR}/include/libkcddb -I${TDEDIR}/include" + append-ldflags "-L${TDEDIR}/$(get_libdir)/kscd" + trinity-meta-2_src_configure } |