summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2018-07-18 13:32:59 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2018-07-18 14:58:36 -0500
commit527d1858b8ea133ab6ec679ddc2e44b56c4ae006 (patch)
treea966739ce887bc9b41bfd8e3c681eb35133ea04c /dev-libs/leatherman
parentadd arm64 use mask for networkx to disable pandas (diff)
downloadgentoo-527d1858b8ea133ab6ec679ddc2e44b56c4ae006.tar.gz
gentoo-527d1858b8ea133ab6ec679ddc2e44b56c4ae006.tar.bz2
gentoo-527d1858b8ea133ab6ec679ddc2e44b56c4ae006.zip
dev-libs/leatherman: 1.4.2-r1 bup for proper subslots
Closes: https://bugs.gentoo.org/661472 Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'dev-libs/leatherman')
-rw-r--r--dev-libs/leatherman/leatherman-1.4.2-r1.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/leatherman/leatherman-1.4.2-r1.ebuild b/dev-libs/leatherman/leatherman-1.4.2-r1.ebuild
new file mode 100644
index 000000000000..f0eb93027909
--- /dev/null
+++ b/dev-libs/leatherman/leatherman-1.4.2-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils multilib
+
+DESCRIPTION="A C++ toolkit"
+HOMEPAGE="https://github.com/puppetlabs/leatherman"
+SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+IUSE="debug static-libs test"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0/1.4.2"
+
+RDEPEND="net-misc/curl"
+DEPEND=">=dev-libs/boost-1.54:=[nls]
+ net-misc/curl
+ >=sys-devel/gcc-4.8:*"
+
+PATCHES=( "${FILESDIR}"/portage-sandbox-test-fix.patch )
+
+src_prepare() {
+ sed -i 's/\-Werror\ //g' "cmake/cflags.cmake" || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_VERBOSE_MAKEFILE=ON
+ -DCMAKE_BUILD_TYPE=None
+ -DCMAKE_INSTALL_PREFIX=/usr
+ )
+ if ! use static-libs; then
+ mycmakeargs+=(
+ -DLEATHERMAN_SHARED=ON
+ )
+ else
+ mycmakeargs+=(
+ -DLEATHERMAN_SHARED=OFF
+ )
+ fi
+ if use debug; then
+ mycmakeargs+=(
+ -DCMAKE_BUILD_TYPE=Debug
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${WORKDIR}/${P}"_build/bin/leatherman_test
+}
+
+src_install() {
+ cmake-utils_src_install
+}