diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2017-08-14 14:28:43 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-08-14 15:35:51 +0200 |
commit | 6037364d00c2ba884af59a2145fde1db1cf98dd8 (patch) | |
tree | cf7bc8ea0a4fab5cdfac9a29e3784895a6617158 /sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.0.ebuild | |
parent | net-libs/rpc2: Removed old. (diff) | |
download | gentoo-6037364d00c2ba884af59a2145fde1db1cf98dd8.tar.gz gentoo-6037364d00c2ba884af59a2145fde1db1cf98dd8.tar.bz2 gentoo-6037364d00c2ba884af59a2145fde1db1cf98dd8.zip |
sys-block/thin-provisioning-tools: Bump to version 0.7.0
Package-Manager: Portage-2.3.7, Repoman-2.3.3
Diffstat (limited to 'sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.0.ebuild')
-rw-r--r-- | sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.0.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.0.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.0.ebuild new file mode 100644 index 000000000000..36d3cd79766f --- /dev/null +++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools flag-o-matic + +DESCRIPTION="A suite of tools for thin provisioning on Linux" +HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools" +SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="static test" + +LIB_DEPEND="dev-libs/expat[static-libs(+)] + dev-libs/libaio[static-libs(+)]" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +# || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050 +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + test? ( + || ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 ) + >=dev-cpp/gmock-1.6 + >=dev-cpp/gtest-1.6 + dev-util/cucumber + dev-util/aruba + ) + dev-libs/boost" + +PATCHES=( "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use static && append-ldflags -static + STRIP=true econf \ + --prefix="${EPREFIX}"/ \ + --bindir="${EPREFIX}"/sbin \ + --with-optimisation='' \ + $(use_enable test testing) +} + +src_compile() { + MAKEOPTS+=" V=" + default +} + +src_test() { + emake unit-test +} + +src_install() { + emake DESTDIR="${D}" DATADIR="${ED%/}/usr/share" install + dodoc README.md TODO.org +} |