Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/leatherman/
Date: Thu, 30 Apr 2020 15:51:38
Message-Id: 1588261888.73a209f274c4d0f96ebde6dcb41d8d478a65b7ce.prometheanfire@gentoo
1 commit: 73a209f274c4d0f96ebde6dcb41d8d478a65b7ce
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 15:46:41 2020 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 15:51:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73a209f2
7
8 dev-libs/leatherman: 1.12.0 bump
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 dev-libs/leatherman/Manifest | 1 +
14 dev-libs/leatherman/leatherman-1.12.0.ebuild | 58 ++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/dev-libs/leatherman/Manifest b/dev-libs/leatherman/Manifest
18 index 7c2b6547dd1..ba0a675f4ed 100644
19 --- a/dev-libs/leatherman/Manifest
20 +++ b/dev-libs/leatherman/Manifest
21 @@ -1,2 +1,3 @@
22 DIST leatherman-1.11.0.tar.gz 815946 BLAKE2B 73afb7c517ea93d0c3dc1c88adb3e5041c764bbfb223357b14a6a3f864ff614d178e7a71293eb533f09013fe3f64d5afe40c9404882d2fe6836da7322e869d8f SHA512 0cbc558ba6976d4f14947efbc59e2ebc306a8c7e4590a22fa2e2f044b37ffd8804dbabaf96c599c47394fd9379f2de1330ce5282237b5009730d8d3b87349ae5
23 +DIST leatherman-1.12.0.tar.gz 815947 BLAKE2B cc268275f7ef7e9bddca9a2ca25c1a6b0bca64d57f90a485b83103a2477d476a39fe91ccf46798f1885b29c697de6556890131c7aac2a9e61590edab66fd6ea7 SHA512 2ceb16f94bf3d06bfe477a40e15db5a1d3d3999eaa7023245a08ab4e0054179f28308d9bf6ba73a839ca3a68130259894593fc8e77664b672ac5f3d20511a4d2
24 DIST leatherman-1.3.0.tar.gz 434229 BLAKE2B e0c19bca2378afc4928554ac0862543504ba725aadc6cffd78220f7f7f1b725cad960fc6d9fdd2d54a43c233b35959ebcb9c71d1191a5535703599fa32e3301e SHA512 5e06be7add652f69b0d4a8d778e33dfb68183c4d598217cc6542d2431f7984f0af989c27bd69e89b77ab03d6dd2adab9d70f68cd87dae20d8e24ae05923fbe9b
25
26 diff --git a/dev-libs/leatherman/leatherman-1.12.0.ebuild b/dev-libs/leatherman/leatherman-1.12.0.ebuild
27 new file mode 100644
28 index 00000000000..aef4cd92309
29 --- /dev/null
30 +++ b/dev-libs/leatherman/leatherman-1.12.0.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake-utils multilib
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 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
47 +SLOT="0/${PV}"
48 +
49 +RDEPEND="net-misc/curl"
50 +DEPEND=">=dev-libs/boost-1.54:=[nls]
51 + net-misc/curl
52 + >=sys-devel/gcc-4.8:*"
53 +
54 +PATCHES=( "${FILESDIR}"/portage-sandbox-test-fix.patch )
55 +
56 +src_prepare() {
57 + sed -i 's/\-Werror\ //g' "cmake/cflags.cmake" || die
58 + cmake-utils_src_prepare
59 +}
60 +
61 +src_configure() {
62 + local mycmakeargs=(
63 + -DCMAKE_VERBOSE_MAKEFILE=ON
64 + -DCMAKE_BUILD_TYPE=None
65 + )
66 + if ! use static-libs; then
67 + mycmakeargs+=(
68 + -DLEATHERMAN_SHARED=ON
69 + )
70 + else
71 + mycmakeargs+=(
72 + -DLEATHERMAN_SHARED=OFF
73 + )
74 + fi
75 + if use debug; then
76 + mycmakeargs+=(
77 + -DCMAKE_BUILD_TYPE=Debug
78 + )
79 + fi
80 + cmake-utils_src_configure
81 +}
82 +
83 +src_test() {
84 + "${WORKDIR}/${P}"_build/bin/leatherman_test
85 +}
86 +
87 +src_install() {
88 + cmake-utils_src_install
89 +}