From 8aefce0d6bf9f411298063a200654b39115500b3 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Mon, 21 Aug 2017 22:55:55 -0400 Subject: dev-cpp/waylandpp: Wayland C++ bindings Gentoo-bug: 628562 Package-Manager: Portage-2.3.8, Repoman-2.3.3 Closes: #5504 --- dev-cpp/waylandpp/waylandpp-9999.ebuild | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-cpp/waylandpp/waylandpp-9999.ebuild (limited to 'dev-cpp/waylandpp/waylandpp-9999.ebuild') diff --git a/dev-cpp/waylandpp/waylandpp-9999.ebuild b/dev-cpp/waylandpp/waylandpp-9999.ebuild new file mode 100644 index 000000000000..a85f301bf9fd --- /dev/null +++ b/dev-cpp/waylandpp/waylandpp-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib scons-utils toolchain-funcs versionator + +DESCRIPTION="Wayland C++ bindings" +HOMEPAGE="https://github.com/NilsBrause/waylandpp" + +LICENSE="MIT" +IUSE="doc" +SLOT="0/$(get_major_version)" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/NilsBrause/waylandpp.git" + inherit git-r3 +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=" + >=dev-libs/wayland-1.11.0 + media-libs/mesa[wayland] +" +DEPEND="${COMMON_DEPEND} + doc? ( + app-doc/doxygen + media-gfx/graphviz + ) + " +RDEPEND="${COMMON_DEPEND}" + +src_compile() { + CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" escons + if use doc; then + doxygen || die "error making docs" + fi +} + +src_install() { + PREFIX="${D%/}/usr" scons 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 + fi +} -- cgit v1.2.3-65-gdbad