1 |
commit: 6e6d8eedfb53e8b88722215e4371549834e19be9 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 19 20:01:46 2022 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 19 20:01:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e6d8eed |
7 |
|
8 |
dev-libs/leatherman: 1.12.7 bump |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
dev-libs/leatherman/Manifest | 1 + |
14 |
dev-libs/leatherman/leatherman-1.12.7.ebuild | 62 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/leatherman/Manifest b/dev-libs/leatherman/Manifest |
18 |
index 3968c41f1a39..507b8797507e 100644 |
19 |
--- a/dev-libs/leatherman/Manifest |
20 |
+++ b/dev-libs/leatherman/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST leatherman-1.12.6.tar.gz 818106 BLAKE2B 056ea52c355cf178e16be03f2a4fb54bf0e6aece4045545e7e45c50664e711db2bb756f56c9cd33a6dfe1de24c4ecb98766d4bd158ffb7757958274ba38f76db SHA512 4e2a1ee2e7226224f115648a78bc3e4798ef0528ef32e01d1e7ebcbeb1250fd6ed88001c9db21456feeef3bd6ff201b0fd68fd5feb2671a66d13519dd3454386 |
23 |
+DIST leatherman-1.12.7.tar.gz 815838 BLAKE2B 21284f5128c9264b751011b1d68c6baf553037612cab39cc339920091ae42980f6c3920f5b339d4cba31a40b190fa73d779f45dcc30b78e866708c3178ac6699 SHA512 dd763bf89d8356aa00805817af7029ee77452a9210b6aded16ac1434f233fbba9b41014ab55a076773f50da6d16e1cffae50e2a23d1c4b336df9cc88c05ede56 |
24 |
|
25 |
diff --git a/dev-libs/leatherman/leatherman-1.12.7.ebuild b/dev-libs/leatherman/leatherman-1.12.7.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..aee2fa1b1fe9 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/leatherman/leatherman-1.12.7.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit cmake |
37 |
+ |
38 |
+DESCRIPTION="A C++ toolkit" |
39 |
+HOMEPAGE="https://github.com/puppetlabs/leatherman" |
40 |
+SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="Apache-2.0" |
43 |
+SLOT="0/${PV}" |
44 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
45 |
+IUSE="debug static-libs test" |
46 |
+#RESTRICT="!test? ( test )" |
47 |
+RESTRICT="test" # restricted til we don't need the shared_nowide patch |
48 |
+ |
49 |
+RDEPEND=">=dev-libs/boost-1.73:=[nls] |
50 |
+ net-misc/curl" |
51 |
+DEPEND="${RDEPEND}" |
52 |
+ |
53 |
+PATCHES=( |
54 |
+ "${FILESDIR}"/portage-sandbox-test-fix.patch |
55 |
+ "${FILESDIR}"/1.12.2-shared_nowide.patch |
56 |
+) |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ sed -i 's/\-Werror\ //g' "cmake/cflags.cmake" || die |
60 |
+ # vendored boost lib conflicts with boost 1.73 and above |
61 |
+ cmake_src_prepare |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local mycmakeargs=( |
66 |
+ -DCMAKE_VERBOSE_MAKEFILE=ON |
67 |
+ -DCMAKE_BUILD_TYPE=None |
68 |
+ -DLEATHERMAN_ENABLE_TESTING=$(usex test) |
69 |
+ # We depend on Boost with nls, so this is always true |
70 |
+ -DLEATHERMAN_USE_ICU=ON |
71 |
+ |
72 |
+ -DLEATHERMAN_SHARED=$(usex !static-libs) |
73 |
+ ) |
74 |
+ |
75 |
+ if use debug; then |
76 |
+ mycmakeargs+=( |
77 |
+ -DCMAKE_BUILD_TYPE=Debug |
78 |
+ ) |
79 |
+ fi |
80 |
+ |
81 |
+ cmake_src_configure |
82 |
+ cd "${BUILD_DIR}" |
83 |
+ eapply "${FILESDIR}"/${P}-SIGSTKSZ.patch |
84 |
+} |
85 |
+ |
86 |
+src_test() { |
87 |
+ "${WORKDIR}/${P}"_build/bin/leatherman_test || die |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ cmake_src_install |
92 |
+} |