From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 61F211396D0 for ; Tue, 26 Sep 2017 17:03:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9675AE0849; Tue, 26 Sep 2017 17:03:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75CC9E0849 for ; Tue, 26 Sep 2017 17:03:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2055833B864 for ; Tue, 26 Sep 2017 17:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A59178F83 for ; Tue, 26 Sep 2017 17:03:22 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1506445389.702e51be6d100a692c4aae0115beae6d6ac67fb9.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/thin-provisioning-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild X-VCS-Directories: sys-block/thin-provisioning-tools/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 702e51be6d100a692c4aae0115beae6d6ac67fb9 X-VCS-Branch: master Date: Tue, 26 Sep 2017 17:03:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b316eeb0-1e77-49c6-9b6f-7d99b5741028 X-Archives-Hash: 3792fc6d625e49bd0aa5802022356098 commit: 702e51be6d100a692c4aae0115beae6d6ac67fb9 Author: Robin H. Johnson gentoo org> AuthorDate: Wed Sep 20 20:57:27 2017 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Sep 26 17:03:09 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=702e51be sys-block/thin-provisioning-tools: add 9999 version for testing. Package-Manager: Portage-2.3.8, Repoman-2.3.3 .../thin-provisioning-tools-9999.ebuild | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild new file mode 100644 index 00000000000..54a1136b0ef --- /dev/null +++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +[[ ${PV} == *9999 ]] && SCM="git-r3" +EGIT_REPO_URI='https://github.com/jthornber/thin-provisioning-tools.git' +inherit autotools flag-o-matic $SCM + +DESCRIPTION="A suite of tools for thin provisioning on Linux" +HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools" + +if [[ ${PV} != *9999 ]]; then + SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-3" +SLOT="0" +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 +}