1 |
commit: 6037364d00c2ba884af59a2145fde1db1cf98dd8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 14 12:28:43 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 14 13:35:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6037364d |
7 |
|
8 |
sys-block/thin-provisioning-tools: Bump to version 0.7.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.7, Repoman-2.3.3 |
11 |
|
12 |
sys-block/thin-provisioning-tools/Manifest | 1 + |
13 |
...thin-provisioning-tools-0.7.0-build-fixes.patch | 34 ++++++++++++ |
14 |
.../thin-provisioning-tools-0.7.0.ebuild | 60 ++++++++++++++++++++++ |
15 |
3 files changed, 95 insertions(+) |
16 |
|
17 |
diff --git a/sys-block/thin-provisioning-tools/Manifest b/sys-block/thin-provisioning-tools/Manifest |
18 |
index 037df3ab19b..f3ec6b88e16 100644 |
19 |
--- a/sys-block/thin-provisioning-tools/Manifest |
20 |
+++ b/sys-block/thin-provisioning-tools/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST thin-provisioning-tools-0.4.1.tar.gz 186979 SHA256 59c8a787df8d4828bf9ca1b6 |
22 |
DIST thin-provisioning-tools-0.5.3.tar.gz 191431 SHA256 6d6856dbca2f0fcf23ece171a8e68a4a7054350a3810958da37615358695597e SHA512 c36f85fc59b98195b7b6fa635b0d18da06b5798d735887dfa3af96bf6fa88bac0d353968ceae00de5960eb5360db70bc166fdd254a88b2246c36f6868c190e6d WHIRLPOOL cc85ff4c0bd0a9f7010bbbdfb9e9dd08d9dd1370ce5ca6ebc60626e05a2bfc52dec187dca546a8e6f4d9eb5dc786ea7063322b1b2bbfaec7cd022022fe428c3f |
23 |
DIST thin-provisioning-tools-0.6.1.tar.gz 197190 SHA256 4e7bf95e05176660250b63a5b26245d199a8510e1fede7287612c95aa54cc3f0 SHA512 7db37ac325fdecf69157896333fdd1b48b33c1a0bcf6b810b68be1ea2eb4dcd658db7ad668c3920ffb958527a5f75bd742f9fc0bc408a0858a8c5cb96ccde9d5 WHIRLPOOL d5fe4ae278bc9552259b628566505e145eed8ece77809986fff1f01be2d96240649f7f142537ff2217ac11e9470380cfa461f1cc44d5e5120c8584c4299c3b59 |
24 |
DIST thin-provisioning-tools-0.6.3.tar.gz 198697 SHA256 52d808c29dcaa83c142ceb2b418d01e9423811b082eff63fa0336bb7f0590c45 SHA512 ccebf5bb1ac2da56a3dab5b7ce8d61f6a71f84b5168c2680618d724340bbf8cf97c935c1bce966a296331d9dc048a855d81775d2a39f10b4096ab3ee835286d9 WHIRLPOOL b83c0aa081a27bfd0652d3d2d9786849e998487ce70864b8996b1e5f780b56753e52fa6a3243f62183692d9393643a0a30978069672fd4272e692dea98b93d88 |
25 |
+DIST thin-provisioning-tools-0.7.0.tar.gz 230595 SHA256 68a815860fce3f09f64ef241fd4ba45713f4c7be384fe116ec1dbea467684b32 SHA512 cb6c44c7215aadd72292d73e2374d8c0c28566adcb10c7a3de83576dbd28649ebba6e2cc59945a28921e423540969cb21f648c37e375d68f48e56a8be4a4c7b8 WHIRLPOOL 80201034dafd00617951a30369fc617a9c91b4408ec5c5272b4406c8f86caf0ff738938d6ef92d27a9ac96c3110edfa16609f0777c8592e6a100aeb3e02d3837 |
26 |
|
27 |
diff --git a/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.7.0-build-fixes.patch b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.7.0-build-fixes.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..df0831f1a23 |
30 |
--- /dev/null |
31 |
+++ b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.7.0-build-fixes.patch |
32 |
@@ -0,0 +1,34 @@ |
33 |
+--- thin-provisioning-tools-0.7.0/Makefile.in |
34 |
++++ thin-provisioning-tools-0.7.0/Makefile.in |
35 |
+@@ -142,9 +142,9 @@ |
36 |
+ |
37 |
+ TOP_DIR:=@top_srcdir@ |
38 |
+ TOP_BUILDDIR:=@top_builddir@ |
39 |
+-CFLAGS+=-g -Wall -O3 -fPIC |
40 |
++CFLAGS+=-fPIC |
41 |
+ CFLAGS+=@LFS_FLAGS@ |
42 |
+-CXXFLAGS+=-g -Wall -fPIC -fno-strict-aliasing -std=c++11 |
43 |
++CXXFLAGS+=-fPIC -fno-strict-aliasing -std=c++11 |
44 |
+ |
45 |
+ ifeq ("@DEVTOOLS@", "yes") |
46 |
+ CXXFLAGS+=-DDEV_TOOLS |
47 |
+--- thin-provisioning-tools-0.7.0/unit-tests/Makefile.in |
48 |
++++ thin-provisioning-tools-0.7.0/unit-tests/Makefile.in |
49 |
+@@ -25,7 +25,7 @@ |
50 |
+ -Wno-unused-local-typedefs |
51 |
+ |
52 |
+ GMOCK_LIBS=\ |
53 |
+- -Llib -lpdata -lgmock -lpthread -laio |
54 |
++ -Llib -lpdata -lgmock -lpthread -laio -lgtest |
55 |
+ |
56 |
+ GMOCK_DEPS=\ |
57 |
+ $(wildcard $(GMOCK_DIR)/googlemock/include/*.h) \ |
58 |
+@@ -83,7 +83,7 @@ |
59 |
+ sed 's,\([^ :]*\)\.o[ :]*,\1.o \1.gmo $* : Makefile ,g' < $*.$$$$ > $*.d; \ |
60 |
+ $(RM) $*.$$$$ |
61 |
+ |
62 |
+-unit-tests/unit_tests: $(TEST_OBJECTS) lib/libgmock.a lib/libpdata.a |
63 |
++unit-tests/unit_tests: $(TEST_OBJECTS) lib/libpdata.a |
64 |
+ @echo " [LD] $<" |
65 |
+ $(V)g++ $(CXXFLAGS) $(LDFLAGS) -o $@ $(TEST_OBJECTS) $(LIBS) $(GMOCK_LIBS) $(LIBEXPAT) |
66 |
+ |
67 |
|
68 |
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 |
69 |
new file mode 100644 |
70 |
index 00000000000..36d3cd79766 |
71 |
--- /dev/null |
72 |
+++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.0.ebuild |
73 |
@@ -0,0 +1,60 @@ |
74 |
+# Copyright 1999-2017 Gentoo Foundation |
75 |
+# Distributed under the terms of the GNU General Public License v2 |
76 |
+ |
77 |
+EAPI=6 |
78 |
+ |
79 |
+inherit autotools flag-o-matic |
80 |
+ |
81 |
+DESCRIPTION="A suite of tools for thin provisioning on Linux" |
82 |
+HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools" |
83 |
+SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
84 |
+ |
85 |
+LICENSE="GPL-3" |
86 |
+SLOT="0" |
87 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
88 |
+IUSE="static test" |
89 |
+ |
90 |
+LIB_DEPEND="dev-libs/expat[static-libs(+)] |
91 |
+ dev-libs/libaio[static-libs(+)]" |
92 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
93 |
+# || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050 |
94 |
+DEPEND="${RDEPEND} |
95 |
+ static? ( ${LIB_DEPEND} ) |
96 |
+ test? ( |
97 |
+ || ( 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 ) |
98 |
+ >=dev-cpp/gmock-1.6 |
99 |
+ >=dev-cpp/gtest-1.6 |
100 |
+ dev-util/cucumber |
101 |
+ dev-util/aruba |
102 |
+ ) |
103 |
+ dev-libs/boost" |
104 |
+ |
105 |
+PATCHES=( "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch ) |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ default |
109 |
+ eautoreconf |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ use static && append-ldflags -static |
114 |
+ STRIP=true econf \ |
115 |
+ --prefix="${EPREFIX}"/ \ |
116 |
+ --bindir="${EPREFIX}"/sbin \ |
117 |
+ --with-optimisation='' \ |
118 |
+ $(use_enable test testing) |
119 |
+} |
120 |
+ |
121 |
+src_compile() { |
122 |
+ MAKEOPTS+=" V=" |
123 |
+ default |
124 |
+} |
125 |
+ |
126 |
+src_test() { |
127 |
+ emake unit-test |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ emake DESTDIR="${D}" DATADIR="${ED%/}/usr/share" install |
132 |
+ dodoc README.md TODO.org |
133 |
+} |