Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/waylandpp/
Date: Tue, 22 Aug 2017 20:15:15
Message-Id: 1503432105.8aefce0d6bf9f411298063a200654b39115500b3.candrews@gentoo
1 commit: 8aefce0d6bf9f411298063a200654b39115500b3
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 22 02:55:55 2017 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 22 20:01:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aefce0d
7
8 dev-cpp/waylandpp: Wayland C++ bindings
9
10 Gentoo-bug: 628562
11 Package-Manager: Portage-2.3.8, Repoman-2.3.3
12
13 Closes: #5504
14
15 dev-cpp/waylandpp/Manifest | 1 +
16 dev-cpp/waylandpp/metadata.xml | 12 ++++++++
17 dev-cpp/waylandpp/waylandpp-0.1.0.ebuild | 51 ++++++++++++++++++++++++++++++++
18 dev-cpp/waylandpp/waylandpp-9999.ebuild | 51 ++++++++++++++++++++++++++++++++
19 4 files changed, 115 insertions(+)
20
21 diff --git a/dev-cpp/waylandpp/Manifest b/dev-cpp/waylandpp/Manifest
22 new file mode 100644
23 index 00000000000..49e18e0bbbb
24 --- /dev/null
25 +++ b/dev-cpp/waylandpp/Manifest
26 @@ -0,0 +1 @@
27 +DIST waylandpp-0.1.0.tar.gz 166427 SHA256 117df357cbd1f272737b6379e05925b38bad41bafda02761017530053fa950e7 SHA512 e0521ea99eeb7ae196ed9c8759e10d28406c5b99534b52ac51845cdd9c384ff820e4cc1fec65c537a0d071046746884793da122c72f6e75e7df4bca089d19eca WHIRLPOOL 1d589fbe1884dbd38547a0957b07533e3029cca7453618375227d87afa90fa36eded62283bf302139920860c90b250aeaca9b48e0f8098b0f9f8bbaffa889067
28
29 diff --git a/dev-cpp/waylandpp/metadata.xml b/dev-cpp/waylandpp/metadata.xml
30 new file mode 100644
31 index 00000000000..05f0a64835c
32 --- /dev/null
33 +++ b/dev-cpp/waylandpp/metadata.xml
34 @@ -0,0 +1,12 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>candrews@g.o</email>
40 + <name>Craig Andrews</name>
41 + </maintainer>
42 + <upstream>
43 + <bugs-to>https://github.com/NilsBrause/waylandpp/issues</bugs-to>
44 + <remote-id type="github">NilsBrause/waylandpp</remote-id>
45 + </upstream>
46 +</pkgmetadata>
47
48 diff --git a/dev-cpp/waylandpp/waylandpp-0.1.0.ebuild b/dev-cpp/waylandpp/waylandpp-0.1.0.ebuild
49 new file mode 100644
50 index 00000000000..a85f301bf9f
51 --- /dev/null
52 +++ b/dev-cpp/waylandpp/waylandpp-0.1.0.ebuild
53 @@ -0,0 +1,51 @@
54 +# Copyright 1999-2017 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=6
58 +
59 +inherit multilib scons-utils toolchain-funcs versionator
60 +
61 +DESCRIPTION="Wayland C++ bindings"
62 +HOMEPAGE="https://github.com/NilsBrause/waylandpp"
63 +
64 +LICENSE="MIT"
65 +IUSE="doc"
66 +SLOT="0/$(get_major_version)"
67 +
68 +if [[ ${PV} == *9999 ]] ; then
69 + EGIT_REPO_URI="https://github.com/NilsBrause/waylandpp.git"
70 + inherit git-r3
71 +else
72 + SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
73 + KEYWORDS="~amd64 ~x86"
74 + S="${WORKDIR}/waylandpp-${PV}"
75 +fi
76 +
77 +COMMON_DEPEND="
78 + >=dev-libs/wayland-1.11.0
79 + media-libs/mesa[wayland]
80 +"
81 +DEPEND="${COMMON_DEPEND}
82 + doc? (
83 + app-doc/doxygen
84 + media-gfx/graphviz
85 + )
86 + "
87 +RDEPEND="${COMMON_DEPEND}"
88 +
89 +src_compile() {
90 + CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" escons
91 + if use doc; then
92 + doxygen || die "error making docs"
93 + fi
94 +}
95 +
96 +src_install() {
97 + PREFIX="${D%/}/usr" scons install
98 + # fix multilib-strict QA failures
99 + mv "${ED%/}"/usr/{lib,$(get_libdir)} || die
100 + if use doc; then
101 + doman doc/man/man3/*.3
102 + HTML_DOCS="doc/html" einstalldocs
103 + fi
104 +}
105
106 diff --git a/dev-cpp/waylandpp/waylandpp-9999.ebuild b/dev-cpp/waylandpp/waylandpp-9999.ebuild
107 new file mode 100644
108 index 00000000000..a85f301bf9f
109 --- /dev/null
110 +++ b/dev-cpp/waylandpp/waylandpp-9999.ebuild
111 @@ -0,0 +1,51 @@
112 +# Copyright 1999-2017 Gentoo Foundation
113 +# Distributed under the terms of the GNU General Public License v2
114 +
115 +EAPI=6
116 +
117 +inherit multilib scons-utils toolchain-funcs versionator
118 +
119 +DESCRIPTION="Wayland C++ bindings"
120 +HOMEPAGE="https://github.com/NilsBrause/waylandpp"
121 +
122 +LICENSE="MIT"
123 +IUSE="doc"
124 +SLOT="0/$(get_major_version)"
125 +
126 +if [[ ${PV} == *9999 ]] ; then
127 + EGIT_REPO_URI="https://github.com/NilsBrause/waylandpp.git"
128 + inherit git-r3
129 +else
130 + SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
131 + KEYWORDS="~amd64 ~x86"
132 + S="${WORKDIR}/waylandpp-${PV}"
133 +fi
134 +
135 +COMMON_DEPEND="
136 + >=dev-libs/wayland-1.11.0
137 + media-libs/mesa[wayland]
138 +"
139 +DEPEND="${COMMON_DEPEND}
140 + doc? (
141 + app-doc/doxygen
142 + media-gfx/graphviz
143 + )
144 + "
145 +RDEPEND="${COMMON_DEPEND}"
146 +
147 +src_compile() {
148 + CC="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" escons
149 + if use doc; then
150 + doxygen || die "error making docs"
151 + fi
152 +}
153 +
154 +src_install() {
155 + PREFIX="${D%/}/usr" scons install
156 + # fix multilib-strict QA failures
157 + mv "${ED%/}"/usr/{lib,$(get_libdir)} || die
158 + if use doc; then
159 + doman doc/man/man3/*.3
160 + HTML_DOCS="doc/html" einstalldocs
161 + fi
162 +}