1 |
commit: 702e51be6d100a692c4aae0115beae6d6ac67fb9 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 20 20:57:27 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 26 17:03:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=702e51be |
7 |
|
8 |
sys-block/thin-provisioning-tools: add 9999 version for testing. |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
.../thin-provisioning-tools-9999.ebuild | 65 ++++++++++++++++++++++ |
13 |
1 file changed, 65 insertions(+) |
14 |
|
15 |
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..54a1136b0ef |
18 |
--- /dev/null |
19 |
+++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild |
20 |
@@ -0,0 +1,65 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+[[ ${PV} == *9999 ]] && SCM="git-r3" |
27 |
+EGIT_REPO_URI='https://github.com/jthornber/thin-provisioning-tools.git' |
28 |
+inherit autotools flag-o-matic $SCM |
29 |
+ |
30 |
+DESCRIPTION="A suite of tools for thin provisioning on Linux" |
31 |
+HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools" |
32 |
+ |
33 |
+if [[ ${PV} != *9999 ]]; then |
34 |
+ SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
36 |
+fi |
37 |
+ |
38 |
+LICENSE="GPL-3" |
39 |
+SLOT="0" |
40 |
+IUSE="static test" |
41 |
+ |
42 |
+LIB_DEPEND="dev-libs/expat[static-libs(+)] |
43 |
+ dev-libs/libaio[static-libs(+)]" |
44 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
45 |
+# || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050 |
46 |
+DEPEND="${RDEPEND} |
47 |
+ static? ( ${LIB_DEPEND} ) |
48 |
+ test? ( |
49 |
+ || ( 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 ) |
50 |
+ >=dev-cpp/gmock-1.6 |
51 |
+ >=dev-cpp/gtest-1.6 |
52 |
+ dev-util/cucumber |
53 |
+ dev-util/aruba |
54 |
+ ) |
55 |
+ dev-libs/boost" |
56 |
+ |
57 |
+PATCHES=( "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch ) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ eautoreconf |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ use static && append-ldflags -static |
66 |
+ STRIP=true econf \ |
67 |
+ --prefix="${EPREFIX}"/ \ |
68 |
+ --bindir="${EPREFIX}"/sbin \ |
69 |
+ --with-optimisation='' \ |
70 |
+ $(use_enable test testing) |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ MAKEOPTS+=" V=" |
75 |
+ default |
76 |
+} |
77 |
+ |
78 |
+src_test() { |
79 |
+ emake unit-test |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ emake DESTDIR="${D}" DATADIR="${ED%/}/usr/share" install |
84 |
+ dodoc README.md TODO.org |
85 |
+} |