summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2017-10-17 10:40:29 -0400
committerCraig Andrews <candrews@gentoo.org>2017-10-17 10:40:51 -0400
commita9c0225c729f3bddd3a06986a2b0ed1ad5d0a91a (patch)
tree82ec79e4353bdaaf899946036e210368b8a3a4a8 /dev-cpp/waylandpp
parentapp-admin/sudo: Removed old. (diff)
downloadgentoo-a9c0225c729f3bddd3a06986a2b0ed1ad5d0a91a.tar.gz
gentoo-a9c0225c729f3bddd3a06986a2b0ed1ad5d0a91a.tar.bz2
gentoo-a9c0225c729f3bddd3a06986a2b0ed1ad5d0a91a.zip
dev-cpp/waylandpp: use cmake instead of scons
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'dev-cpp/waylandpp')
-rw-r--r--dev-cpp/waylandpp/waylandpp-9999.ebuild22
1 files changed, 7 insertions, 15 deletions
diff --git a/dev-cpp/waylandpp/waylandpp-9999.ebuild b/dev-cpp/waylandpp/waylandpp-9999.ebuild
index 1dd04bc09c5a..73572d42b7ab 100644
--- a/dev-cpp/waylandpp/waylandpp-9999.ebuild
+++ b/dev-cpp/waylandpp/waylandpp-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-inherit scons-utils toolchain-funcs versionator
+inherit cmake-utils versionator
DESCRIPTION="Wayland C++ bindings"
HOMEPAGE="https://github.com/NilsBrause/waylandpp"
@@ -31,19 +31,11 @@ DEPEND="${RDEPEND}
)
"
-src_compile() {
- CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" ROOT="${D%/}/" PREFIX="/usr" LIBDIR="$(get_libdir)" escons
- if use doc; then
- doxygen || die "error making docs"
- fi
-}
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DINSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ )
-src_install() {
- CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" ROOT="${D%/}/" PREFIX="/usr" LIBDIR="$(get_libdir)" escons install
- # fix multilib-strict QA failures
- if use doc; then
- doman doc/man/man3/*.3
- local HTML_DOCS=( doc/html )
- einstalldocs
- fi
+ cmake-utils_src_configure
}