1 |
commit: 527d1858b8ea133ab6ec679ddc2e44b56c4ae006 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 18 18:32:59 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 18 19:58:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=527d1858 |
7 |
|
8 |
dev-libs/leatherman: 1.4.2-r1 bup for proper subslots |
9 |
|
10 |
Closes: https://bugs.gentoo.org/661472 |
11 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
12 |
|
13 |
dev-libs/leatherman/leatherman-1.4.2-r1.ebuild | 58 ++++++++++++++++++++++++++ |
14 |
1 file changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/leatherman/leatherman-1.4.2-r1.ebuild b/dev-libs/leatherman/leatherman-1.4.2-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..f0eb9302790 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/leatherman/leatherman-1.4.2-r1.ebuild |
21 |
@@ -0,0 +1,58 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit cmake-utils multilib |
28 |
+ |
29 |
+DESCRIPTION="A C++ toolkit" |
30 |
+HOMEPAGE="https://github.com/puppetlabs/leatherman" |
31 |
+SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="Apache-2.0" |
34 |
+IUSE="debug static-libs test" |
35 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
36 |
+SLOT="0/1.4.2" |
37 |
+ |
38 |
+RDEPEND="net-misc/curl" |
39 |
+DEPEND=">=dev-libs/boost-1.54:=[nls] |
40 |
+ net-misc/curl |
41 |
+ >=sys-devel/gcc-4.8:*" |
42 |
+ |
43 |
+PATCHES=( "${FILESDIR}"/portage-sandbox-test-fix.patch ) |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ sed -i 's/\-Werror\ //g' "cmake/cflags.cmake" || die |
47 |
+ cmake-utils_src_prepare |
48 |
+} |
49 |
+ |
50 |
+src_configure() { |
51 |
+ local mycmakeargs=( |
52 |
+ -DCMAKE_VERBOSE_MAKEFILE=ON |
53 |
+ -DCMAKE_BUILD_TYPE=None |
54 |
+ -DCMAKE_INSTALL_PREFIX=/usr |
55 |
+ ) |
56 |
+ if ! use static-libs; then |
57 |
+ mycmakeargs+=( |
58 |
+ -DLEATHERMAN_SHARED=ON |
59 |
+ ) |
60 |
+ else |
61 |
+ mycmakeargs+=( |
62 |
+ -DLEATHERMAN_SHARED=OFF |
63 |
+ ) |
64 |
+ fi |
65 |
+ if use debug; then |
66 |
+ mycmakeargs+=( |
67 |
+ -DCMAKE_BUILD_TYPE=Debug |
68 |
+ ) |
69 |
+ fi |
70 |
+ cmake-utils_src_configure |
71 |
+} |
72 |
+ |
73 |
+src_test() { |
74 |
+ "${WORKDIR}/${P}"_build/bin/leatherman_test |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ cmake-utils_src_install |
79 |
+} |