1 |
commit: c8114be20f923956a9ce69ea77d5c20871cb2bfe |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 1 06:02:33 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 1 06:08:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8114be2 |
7 |
|
8 |
dev-ruby/sigar: EAPI 8; add ruby30; fix extension install |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/sigar/sigar-0.7.3-r1.ebuild | 30 ++++++++++++++++++++++++++++++ |
14 |
1 file changed, 30 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/sigar/sigar-0.7.3-r1.ebuild b/dev-ruby/sigar/sigar-0.7.3-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..887ece67957 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/sigar/sigar-0.7.3-r1.ebuild |
21 |
@@ -0,0 +1,30 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+USE_RUBY="ruby26 ruby27 ruby30" |
27 |
+ |
28 |
+RUBY_FAKEGEM_RECIPE_TEST="" |
29 |
+RUBY_FAKEGEM_EXTRADOC="README" |
30 |
+RUBY_FAKEGEM_EXTENSIONS=(bindings/ruby/extconf.rb) |
31 |
+ |
32 |
+inherit multilib ruby-fakegem |
33 |
+ |
34 |
+DESCRIPTION="System Information Gatherer And Reporter" |
35 |
+HOMEPAGE="http://sigar.hyperic.com/" |
36 |
+ |
37 |
+LICENSE="Apache-2.0" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="" |
41 |
+ |
42 |
+DEPEND+=" || ( <sys-libs/glibc-2.26 net-libs/libtirpc )" |
43 |
+ |
44 |
+all_ruby_prepare() { |
45 |
+ sed -i -e '25i$CFLAGS += " -std=gnu89 -I/usr/include/tirpc"' \ |
46 |
+ -e '25i$LDFLAGS += " -ltirpc"' bindings/ruby/extconf.rb || die |
47 |
+ |
48 |
+ # Fix compatibility with glibc 2.25 |
49 |
+ sed -i -e '26i#include <sys/sysmacros.h>' \ |
50 |
+ -e '27i#include <ctype.h>' bindings/ruby/rbsigar.c src/os/linux/linux_sigar.c || die |
51 |
+} |