media-sound/apulse: Rearrange script editing to better fit phases.
authorDaniel Campbell <zlg@gentoo.org>
Sun, 30 Aug 2015 09:47:37 +0000 (02:47 -0700)
committerDaniel Campbell <zlg@gentoo.org>
Sun, 30 Aug 2015 09:47:37 +0000 (02:47 -0700)
Gentoo-Bug: 547524

Package-Manager: portage-2.2.20.1

media-sound/apulse/apulse-0.1.6-r1.ebuild

index 8324b905461999750de5e18f4a2fcbfee9673281..dde232ef38941a9d61897d6dfa5068a1a91411ca 100644 (file)
@@ -21,19 +21,21 @@ RDEPEND="${DEPEND}
 
 MULTILIB_CHOST_TOOLS=( /usr/bin/apulse )
 
-multilib_src_configure() {
-       local mycmakeargs="-DAPULSEPATH=${EPREFIX}/usr/$(get_libdir)/apulse"
-
-       cmake-utils_src_configure
-
-       # Ensure all relevant libdirs are added
+src_prepare() {
+       # Ensure all relevant libdirs are added, to support all ABIs
        DIRS=
        _add_dir() { DIRS="${EPREFIX}/usr/$(get_libdir)/apulse${DIRS:+:${DIRS}}"; }
        multilib_foreach_abi _add_dir
        sed -e "s#@@DIRS@@#${DIRS}#g" "${FILESDIR}"/apulse > "${T}"/apulse
 }
 
-multilib_src_install() {
+multilib_src_configure() {
+       local mycmakeargs="-DAPULSEPATH=${EPREFIX}/usr/$(get_libdir)/apulse"
+       cmake-utils_src_configure
+}
+
+multilib_src_install_all() {
        cmake-utils_src_install
+       einstalldocs
        dobin "${T}"/apulse
 }