summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-02-01 23:49:32 +0100
committerDavid Seifert <soap@gentoo.org>2016-02-01 23:49:51 +0100
commit1fa22e75c685713d270b9e9226c5450d944b3264 (patch)
tree5a34655eae9aef17326abe3043777af8c16fc0c9 /media-sound
parentdev-python/colorlog: Docs changed name (diff)
downloadgentoo-1fa22e75c685713d270b9e9226c5450d944b3264.tar.gz
gentoo-1fa22e75c685713d270b9e9226c5450d944b3264.tar.bz2
gentoo-1fa22e75c685713d270b9e9226c5450d944b3264.zip
media-sound/bpmdetect: Port to scons-utils.eclass
Package-Manager: portage-2.2.27
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/bpmdetect/bpmdetect-0.6.1-r1.ebuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/media-sound/bpmdetect/bpmdetect-0.6.1-r1.ebuild b/media-sound/bpmdetect/bpmdetect-0.6.1-r1.ebuild
index 351532aa0938..8be527a26dda 100644
--- a/media-sound/bpmdetect/bpmdetect-0.6.1-r1.ebuild
+++ b/media-sound/bpmdetect/bpmdetect-0.6.1-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=6
-inherit eutils toolchain-funcs
+inherit eutils scons-utils toolchain-funcs
DESCRIPTION="Automatic BPM detection utility"
HOMEPAGE="http://sourceforge.net/projects/bpmdetect"
@@ -31,23 +31,20 @@ PATCHES=(
"${FILESDIR}/${P}-fix-printf-format.patch"
)
-src_prepare() {
- default
- tc-export CC CXX
-}
-
src_configure() {
- :
+ myscons=(
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ QTDIR="/usr/$(get_libdir)"
+ prefix="${D}/usr"
+ )
}
src_compile() {
- export QTDIR="/usr/$(get_libdir)"
- scons prefix=/usr || die "scons failed"
+ escons "${myscons[@]}"
}
src_install() {
- dobin build/${PN}
- doicon src/${PN}-icon.png
- domenu src/${PN}.desktop
+ escons "${myscons[@]}" install
dodoc authors readme todo
}