1 |
commit: ad2985a1e9c633daa6162e4be1a55669d2b8e4ad |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 13 20:50:46 2021 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 13 20:53:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad2985a1 |
7 |
|
8 |
dev-libs/leatherman: 1.12.5 bump |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
dev-libs/leatherman/Manifest | 1 + |
14 |
dev-libs/leatherman/leatherman-1.12.5.ebuild | 61 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/leatherman/Manifest b/dev-libs/leatherman/Manifest |
18 |
index 0e2857d871b..03859e6c7da 100644 |
19 |
--- a/dev-libs/leatherman/Manifest |
20 |
+++ b/dev-libs/leatherman/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST leatherman-1.12.2.tar.gz 816010 BLAKE2B 4b7b00b88ef0ba5cb01405aa24fd5ff72918a122cc8a1c0a029e374152964f77afa29a1f503ed5863a39bd13aa808dba2a0b351f65756e97c8e2e8408358cbfc SHA512 9be8333b616bd9772f234474ae874c7214fa0c1bc4658ff042233d6e1683cc61b63d666d750297c79a8058490e42c8b2ff8999cb7f04aa329644f52540e43bde |
23 |
DIST leatherman-1.12.4.tar.gz 818043 BLAKE2B 7a8718d598bf48b70d555d2a21e2e930eba6b3407ad5414b43d30411acf4c9bf4193ad20058b63d3c8911b7c5b0d021f84d6eca6dd3d00165c7d145186f8177f SHA512 b2645a5049856f93c30bb89e87e3a47cf8137aeac73708248b2b228874818063fb31440ca2bd760783e8c95e880fe7ae34a387fcc448efee01dd0cda48089b55 |
24 |
+DIST leatherman-1.12.5.tar.gz 818066 BLAKE2B 9d30fb224d3f4389f398294712dc85af782eeff877dd0a214fc60ee67d4a70467c1d32255cf8814f0cfc5428c660a315c24a9becdb1aa05f4d5c43ede8552af7 SHA512 dad1ee67f98a4cd12d9c6f022ae2b8c748e4c081918744030191d7c33f84983691f6bcfba3ddf5c0e5b4c36109ebd757325d6e42d88c74caaff942e6603d333e |
25 |
|
26 |
diff --git a/dev-libs/leatherman/leatherman-1.12.5.ebuild b/dev-libs/leatherman/leatherman-1.12.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..7f68e10d0d2 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/leatherman/leatherman-1.12.5.ebuild |
31 |
@@ -0,0 +1,61 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit cmake-utils |
38 |
+ |
39 |
+DESCRIPTION="A C++ toolkit" |
40 |
+HOMEPAGE="https://github.com/puppetlabs/leatherman" |
41 |
+SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0" |
44 |
+IUSE="debug static-libs test" |
45 |
+#RESTRICT="!test? ( test )" |
46 |
+RESTRICT="test" # restricted til we don't need the shared_nowide patch |
47 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
48 |
+SLOT="0/${PV}" |
49 |
+ |
50 |
+RDEPEND="net-misc/curl" |
51 |
+DEPEND=">=dev-libs/boost-1.73:=[nls] |
52 |
+ net-misc/curl |
53 |
+ >=sys-devel/gcc-4.8:*" |
54 |
+ |
55 |
+PATCHES=( "${FILESDIR}"/portage-sandbox-test-fix.patch ) |
56 |
+PATCHES+=( "${FILESDIR}"/1.12.2-shared_nowide.patch ) |
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-utils_src_prepare |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local mycmakeargs=( |
66 |
+ -DCMAKE_VERBOSE_MAKEFILE=ON |
67 |
+ -DCMAKE_BUILD_TYPE=None |
68 |
+ ) |
69 |
+ if ! use static-libs; then |
70 |
+ mycmakeargs+=( |
71 |
+ -DLEATHERMAN_SHARED=ON |
72 |
+ ) |
73 |
+ else |
74 |
+ mycmakeargs+=( |
75 |
+ -DLEATHERMAN_SHARED=OFF |
76 |
+ ) |
77 |
+ fi |
78 |
+ if use debug; then |
79 |
+ mycmakeargs+=( |
80 |
+ -DCMAKE_BUILD_TYPE=Debug |
81 |
+ ) |
82 |
+ fi |
83 |
+ cmake-utils_src_configure |
84 |
+} |
85 |
+ |
86 |
+src_test() { |
87 |
+ "${WORKDIR}/${P}"_build/bin/leatherman_test |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ cmake-utils_src_install |
92 |
+} |