diff options
author | Craig Andrews <candrews@gentoo.org> | 2017-08-21 22:55:55 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2017-08-22 16:01:45 -0400 |
commit | 8aefce0d6bf9f411298063a200654b39115500b3 (patch) | |
tree | 62391539a83d9c01ae619ecb83c0eb76b13cad5e /dev-cpp/waylandpp/waylandpp-0.1.0.ebuild | |
parent | e55875404bfbf9b965d139e431fcc280532a3534 (diff) | |
download | gentoo-8aefce0d6bf9f411298063a200654b39115500b3.tar.gz gentoo-8aefce0d6bf9f411298063a200654b39115500b3.tar.xz |
dev-cpp/waylandpp: Wayland C++ bindings
Gentoo-bug: 628562
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Closes: #5504
Diffstat (limited to 'dev-cpp/waylandpp/waylandpp-0.1.0.ebuild')
-rw-r--r-- | dev-cpp/waylandpp/waylandpp-0.1.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-cpp/waylandpp/waylandpp-0.1.0.ebuild b/dev-cpp/waylandpp/waylandpp-0.1.0.ebuild new file mode 100644 index 00000000000..a85f301bf9f --- /dev/null +++ b/dev-cpp/waylandpp/waylandpp-0.1.0.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 +} |