dev-cpp/waylandpp: ebuild cleanup
authorCraig Andrews <candrews@gentoo.org>
Wed, 23 Aug 2017 16:27:31 +0000 (12:27 -0400)
committerCraig Andrews <candrews@gentoo.org>
Wed, 23 Aug 2017 16:28:18 +0000 (12:28 -0400)
Note that none of these changes modify the installed image or the ebuild metadata so no revbump is required.

Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-cpp/waylandpp/waylandpp-0.1.0.ebuild
dev-cpp/waylandpp/waylandpp-9999.ebuild

index a85f301bf9fd850f788aa721716357702e6c01f9..846643b6113cd3f0ca74ecf06353ab468d086045 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit multilib scons-utils toolchain-funcs versionator
+inherit scons-utils toolchain-funcs versionator
 
 DESCRIPTION="Wayland C++ bindings"
 HOMEPAGE="https://github.com/NilsBrause/waylandpp"
@@ -18,34 +18,33 @@ if [[ ${PV} == *9999 ]] ; then
 else
        SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
-       S="${WORKDIR}/waylandpp-${PV}"
 fi
 
-COMMON_DEPEND="
+RDEPEND="
        >=dev-libs/wayland-1.11.0
        media-libs/mesa[wayland]
 "
-DEPEND="${COMMON_DEPEND}
+DEPEND="${RDEPEND}
        doc? (
                app-doc/doxygen
                media-gfx/graphviz
        )
        "
-RDEPEND="${COMMON_DEPEND}"
 
 src_compile() {
-       CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" escons
+       CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" PREFIX="${D%/}/usr" escons
        if use doc; then
                doxygen || die "error making docs"
        fi
 }
 
 src_install() {
-       PREFIX="${D%/}/usr" scons install
+       CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" PREFIX="${D%/}/usr" escons install
        # fix multilib-strict QA failures
        mv "${ED%/}"/usr/{lib,$(get_libdir)} || die
        if use doc; then
                doman doc/man/man3/*.3
-               HTML_DOCS="doc/html" einstalldocs
+               local HTML_DOCS=( doc/html )
+               einstalldocs
        fi
 }
index a85f301bf9fd850f788aa721716357702e6c01f9..846643b6113cd3f0ca74ecf06353ab468d086045 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit multilib scons-utils toolchain-funcs versionator
+inherit scons-utils toolchain-funcs versionator
 
 DESCRIPTION="Wayland C++ bindings"
 HOMEPAGE="https://github.com/NilsBrause/waylandpp"
@@ -18,34 +18,33 @@ if [[ ${PV} == *9999 ]] ; then
 else
        SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
-       S="${WORKDIR}/waylandpp-${PV}"
 fi
 
-COMMON_DEPEND="
+RDEPEND="
        >=dev-libs/wayland-1.11.0
        media-libs/mesa[wayland]
 "
-DEPEND="${COMMON_DEPEND}
+DEPEND="${RDEPEND}
        doc? (
                app-doc/doxygen
                media-gfx/graphviz
        )
        "
-RDEPEND="${COMMON_DEPEND}"
 
 src_compile() {
-       CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" escons
+       CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" PREFIX="${D%/}/usr" escons
        if use doc; then
                doxygen || die "error making docs"
        fi
 }
 
 src_install() {
-       PREFIX="${D%/}/usr" scons install
+       CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" PREFIX="${D%/}/usr" escons install
        # fix multilib-strict QA failures
        mv "${ED%/}"/usr/{lib,$(get_libdir)} || die
        if use doc; then
                doman doc/man/man3/*.3
-               HTML_DOCS="doc/html" einstalldocs
+               local HTML_DOCS=( doc/html )
+               einstalldocs
        fi
 }