1 |
commit: 1e4744e4a226e36cbe75d2d042a4087048db5c0e |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 27 18:05:57 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 27 18:06:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e4744e4 |
7 |
|
8 |
dev-ruby/facter: 3.6.4 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.2 |
11 |
|
12 |
dev-ruby/facter/Manifest | 1 + |
13 |
dev-ruby/facter/facter-3.6.4.ebuild | 88 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 89 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest |
17 |
index e9e4612f540..ad3b6876608 100644 |
18 |
--- a/dev-ruby/facter/Manifest |
19 |
+++ b/dev-ruby/facter/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST facter-3.1.4.tar.gz 620501 SHA256 7ca1872edbdc5ffcd11dc292e5e0625c9e0d35aa7 |
21 |
DIST facter-3.1.8.tar.gz 324710 SHA256 bd393026640baf149507c11d36be144759889d4c90174d7c6bfb35e0a341fbca SHA512 2884c2c0bb3075b2552763dee7f33228b0e70b4eb46367f52c4cbf9e01930ddc5e58d062d06ced4174900fc3eae5214d80471a4fe499bf0f2ac0278640e0e8c7 WHIRLPOOL 465432940e068318da0028ce1c8ea3084392212cfc6a50449a3ba034fe721836c88ba16c2248b4b3f062a890087421c93a3d14574c8d03e1eafe4f4f82b49d0d |
22 |
DIST facter-3.6.1.tar.gz 364596 SHA256 cee28c3fb0134cfd90417c6facec795c1de724ea067911aa4f5b21b1c3785591 SHA512 7cb01536c2682576a8074abf0d617de31f3c9b79eb7f753e8a2ea8b231a9dc4d2017a1e8cf383f6a664596799111803b40e3772f0559c6de74351b8bb75ec0f3 WHIRLPOOL 2eafcfdae1cf83592907624716e21b8f030f96a42b4fa613eacde99ea895a0eae06bb6571d4a197c418aa0db9ad8f04b56938fc8f490d05423824b321ee11b74 |
23 |
DIST facter-3.6.3.tar.gz 370771 SHA256 8c7491db7937a350d738985ee9b4ab370f074d82d89b6ed0115cc21e5adadcbe SHA512 cdcc6bd848c664f395f656d57e0bd28b62cccfdaeccdc9cd364d90a96693c6c8cdc079aa70409297f0ecfdee041c28bad52b3cb4b8981e66de2887bc5eb1bf33 WHIRLPOOL 91d7b8df9e79455f65e89f7a4e17c1cd7076e08091af89a8eb2116bc4716a7b4d4163559cdbed55f356d2fafc6a86cd075de6e15d8b9103be62d6ec3f68b69f6 |
24 |
+DIST facter-3.6.4.tar.gz 373722 SHA256 de12c53c74dd3f39633e61f62a900842d829cbe24b76e72b0c6e85000a99b8bc SHA512 d5e03bb40da448805a56accc2fb972569f686a1e8c8b343d4e0defb5a00a982665496049174c225a8b04abb4d09112bd2117a8a96c9360bb2e36e4d569d86337 WHIRLPOOL f7a05a044c7031f248a888458678b48fc8d7996a2d0bc588323bf6c76513ff4fc838f0299db19f212dd0b5ba094b8135558db7da7f4ff596267832354d369634 |
25 |
|
26 |
diff --git a/dev-ruby/facter/facter-3.6.4.ebuild b/dev-ruby/facter/facter-3.6.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..47f77c3cc1a |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/facter/facter-3.6.4.ebuild |
31 |
@@ -0,0 +1,88 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=5 |
36 |
+USE_RUBY="ruby21 ruby22" |
37 |
+ |
38 |
+inherit cmake-utils multilib ruby-ng |
39 |
+ |
40 |
+DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems" |
41 |
+HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/" |
42 |
+SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+S="${S}/all/${P}" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+IUSE="debug test" |
48 |
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" |
49 |
+ |
50 |
+BDEPEND=" |
51 |
+ >=sys-devel/gcc-4.8:* |
52 |
+ >=dev-libs/boost-1.54[nls] |
53 |
+ >=dev-libs/leatherman-0.9.3 |
54 |
+ >=dev-cpp/yaml-cpp-0.5.1 |
55 |
+ dev-cpp/cpp-hocon" |
56 |
+CDEPEND=" |
57 |
+ dev-libs/openssl:* |
58 |
+ sys-apps/util-linux |
59 |
+ app-emulation/virt-what |
60 |
+ net-misc/curl |
61 |
+ !<app-admin/puppet-4.0.0" |
62 |
+ |
63 |
+RDEPEND="${CDEPEND}" |
64 |
+DEPEND="${BDEPEND} |
65 |
+ ${CDEPEND}" |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ # Remove the code that installs facter.rb to the wrong directory. |
69 |
+ sed -i '/install(.*facter\.rb/d' lib/CMakeLists.txt || die |
70 |
+ sed -i '/install(.*facter\.jar/d' lib/CMakeLists.txt || die |
71 |
+ # make it support multilib |
72 |
+ sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die |
73 |
+ sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die |
74 |
+ # make the require work |
75 |
+ sed -i 's/\${LIBFACTER_INSTALL_DESTINATION}\///g' lib/facter.rb.in || die |
76 |
+ # patches |
77 |
+ epatch_user |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ local mycmakeargs=( |
82 |
+ -DCMAKE_VERBOSE_MAKEFILE=ON |
83 |
+ -DCMAKE_BUILD_TYPE=None |
84 |
+ -DCMAKE_INSTALL_PREFIX=/usr |
85 |
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc |
86 |
+ -DCMAKE_INSTALL_LOCALSTATEDIR=/var |
87 |
+ -DUSE_JRUBY_SUPPORT=FALSE |
88 |
+ -DBLKID_LIBRARY=/$(get_libdir)/libblkid.so.1 |
89 |
+ ) |
90 |
+ if use debug; then |
91 |
+ mycmakeargs+=( |
92 |
+ -DCMAKE_BUILD_TYPE=Debug |
93 |
+ ) |
94 |
+ fi |
95 |
+ cmake-utils_src_configure |
96 |
+} |
97 |
+ |
98 |
+src_compile() { |
99 |
+ cmake-utils_src_compile |
100 |
+} |
101 |
+ |
102 |
+each_ruby_install() { |
103 |
+ doruby "${BUILD_DIR}"/lib/facter.rb |
104 |
+} |
105 |
+ |
106 |
+src_test() { |
107 |
+ cmake-utils_src_test |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ cmake-utils_src_install |
112 |
+ ruby-ng_src_install |
113 |
+ |
114 |
+ # need a variable file in env.d :( |
115 |
+ diropts -m0755 |
116 |
+ dodir /etc/env.d |
117 |
+ echo -n "FACTERDIR=/usr/$(get_libdir)" > "${D}/etc/env.d/00facterdir" |
118 |
+ fperms 0644 /etc/env.d/00facterdir |
119 |
+} |