Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/facter/
Date: Sat, 30 Jun 2018 19:01:52
Message-Id: 1530385298.3882cc2071d170916d58201c28f2300ee45be174.prometheanfire@gentoo
1 commit: 3882cc2071d170916d58201c28f2300ee45be174
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 30 19:01:00 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 30 19:01:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3882cc20
7
8 dev-ruby/facter: 3.11.2 stable amd64 and x86 with cleanup
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-ruby/facter/Manifest | 3 -
13 dev-ruby/facter/facter-2.5.1.ebuild | 61 --------------------
14 dev-ruby/facter/facter-3.10.0.ebuild | 108 -----------------------------------
15 dev-ruby/facter/facter-3.11.2.ebuild | 2 +-
16 dev-ruby/facter/facter-3.9.5.ebuild | 108 -----------------------------------
17 5 files changed, 1 insertion(+), 281 deletions(-)
18
19 diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
20 index 7ef38e725c1..72f62d63374 100644
21 --- a/dev-ruby/facter/Manifest
22 +++ b/dev-ruby/facter/Manifest
23 @@ -1,7 +1,4 @@
24 DIST facter-2.4.6.gem 246272 BLAKE2B 105a43b2697cde0a48d4fcf87e221cfcb348695f81722b8cfe2819a8f3fe19e575d22642a708c798648d05c71f54e7bf0281345320612a8fdb3b68fce993ec20 SHA512 a0a2bef37451ab96ed331c79171f77d89b6db430b083e6888a306fa5b57a72986b7f600cad3e09b5f4706e54736d1d32ea25525fe18a6108cc95f315da16664a
25 -DIST facter-2.5.1.gem 254464 BLAKE2B 7276e9c406c000e51e68a2a1c22d0636e294902d31bcaf58e922961a8e1dd99a362467b7046362a5f179fe72f6c077656d4d400e354ed40ed3a06c71de7f07cc SHA512 4fa4b5248bac64c7a76036e428f0f5fdb0b2173987fbaaf18d0130386126dabb083e23cea8cb4df37bae0ea5a883663f71bc6c04406c562bfb7adc23e0899f57
26 -DIST facter-3.10.0.tar.gz 388935 BLAKE2B fe224a098bf306cccdfea919eb898e0d60dff09d8277ad7bf70f9af5a2c10983d47bc7abc397357c9296169e3864aa5547e8e67bf7e76596929f1a2b77fa26c5 SHA512 4b8538948871578c88498e95b87757e0bf4b3ced6bef174a120fcc16189996adf6c17c9815e1fa7d8d0921dc7d8c45fe518061f79020a3e2ac49dfd3b5457c59
27 DIST facter-3.11.1.tar.gz 384201 BLAKE2B 349493f0046239ed900cb22df6cac2f5c1f748503e057a68e9be34c2f24f134a280ab9292d7f4e754a5974818a1fd01bc55634905d84706b47686a9e7a1ccc39 SHA512 295c91817912fb43fe259ede4b51ecf4ae5efd500d64b2682c700583bfdf694a8849a4bd4cb3a16a8046d563f487225957a49b760cc03d8bf86ac8487e37a756
28 DIST facter-3.11.2.tar.gz 384784 BLAKE2B f280772231a9105e5924cdb777411861a76a67c15b4d7f3cc73fb9c089752a4e5fa43c4d84b8525917fae71ae34c770925161cc94882e74a704d6609b1c1778a SHA512 aaeee7449813590ac8bc8d3b1b2a654e75bcdaabbb19f91f8b282f747e0f8af05ef71bc872b99c226f0db4d06b67549551f62c365853f5829c6b26c931c0b582
29 DIST facter-3.9.2.tar.gz 380883 BLAKE2B d2804664e0499715230e5696c5a9ebae933f5b43dfb37154251d47763c2c7f78cfa8d1413dd836e5a0c76ed67300d066fa5bb390f17f85cd4cb7a444eaf0d133 SHA512 bc040826311bbff40f5a151ade315d9d47ef1e0f3faa570805e48ca55405265e66308230118b9cd59f701ecd76a7b0fd4d9200dd4ace838521223a162b105374
30 -DIST facter-3.9.5.tar.gz 388129 BLAKE2B baa63de9c2faf4b1891999fdbb5c576461ebc0fe522b77d01d7c711a67466a739802426e2b60812083eacd4e684422353227029152384a78477a840be223781f SHA512 32462caa637e08bae5964b18821bceec3ec4de4d1f5d8c28feaacb3574e3d0dbeabe09c41a7972358d874b29ebc0b0ea73dbc75adf118ec6379d3ad04fb1b36a
31
32 diff --git a/dev-ruby/facter/facter-2.5.1.ebuild b/dev-ruby/facter/facter-2.5.1.ebuild
33 deleted file mode 100644
34 index 55e308b2c58..00000000000
35 --- a/dev-ruby/facter/facter-2.5.1.ebuild
36 +++ /dev/null
37 @@ -1,61 +0,0 @@
38 -# Copyright 1999-2017 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=5
42 -
43 -USE_RUBY="ruby20 ruby21 ruby22 ruby23"
44 -RUBY_FAKEGEM_TASK_DOC=""
45 -RUBY_FAKEGEM_RECIPE_TEST="rspec"
46 -RUBY_FAKEGEM_EXTRADOC="README.md"
47 -RUBY_FAKEGEM_BINWRAP="facter"
48 -
49 -inherit ruby-fakegem
50 -
51 -DESCRIPTION="A cross-platform Ruby library for retrieving facts from operating systems"
52 -HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
53 -
54 -LICENSE="Apache-2.0"
55 -SLOT="0"
56 -IUSE="+dmi +pciutils +virt"
57 -KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
58 -
59 -CDEPEND="
60 - app-emulation/virt-what
61 - sys-apps/net-tools
62 - sys-apps/lsb-release
63 - dmi? ( sys-apps/dmidecode )
64 - pciutils? ( sys-apps/pciutils )"
65 -
66 -RDEPEND+=" ${CDEPEND}"
67 -DEPEND+=" test? ( ${CDEPEND} )"
68 -
69 -ruby_add_bdepend "test? ( dev-ruby/mocha:1.0 )"
70 -
71 -all_ruby_prepare() {
72 - # Provide explicit path since /sbin is not in the default PATH on
73 - # Gentoo.
74 - sed -i -e 's:arp -an:/sbin/arp -an:' lib/facter/util/ec2.rb spec/unit/util/ec2_spec.rb || die
75 -
76 - # Ensure the correct version of mocha is used without using bundler.
77 - sed -i -e '1igem "mocha", "~>1.0"' spec/spec_helper.rb || die
78 -
79 - # Avoid because tests try to access outside stuff, e.g. /sys/block
80 - sed -i -e '/should load facts on the facter search path only once/,/^ end/ s:^:#:' spec/unit/util/loader_spec.rb || die
81 -
82 - # Allow specs to work with newer rspec 2.x versions.
83 - sed -i -e '1irequire "rspec-expectations"' spec/puppetlabs_spec/matchers.rb || die
84 -
85 - # Avoid specs specific to macosx requiring cfpropertylist which is
86 - # not available anymore.
87 - rm spec/unit/util/macosx_spec.rb || die
88 - sed -i -e '/macosx/ s:^:#:' \
89 - -e '/on Darwin/,/^ end/ s:^:#:' spec/unit/virtual_spec.rb || die
90 - sed -i -e '/Facter::Processors::Darwin/,/^end/ s:^:#:' spec/unit/processors/os_spec.rb || die
91 -}
92 -
93 -all_ruby_install() {
94 - all_fakegem_install
95 -
96 - # Create the directory for custom facts.
97 - keepdir /etc/facter/facts.d
98 -}
99
100 diff --git a/dev-ruby/facter/facter-3.10.0.ebuild b/dev-ruby/facter/facter-3.10.0.ebuild
101 deleted file mode 100644
102 index 7e5d9190829..00000000000
103 --- a/dev-ruby/facter/facter-3.10.0.ebuild
104 +++ /dev/null
105 @@ -1,108 +0,0 @@
106 -# Copyright 1999-2018 Gentoo Foundation
107 -# Distributed under the terms of the GNU General Public License v2
108 -
109 -EAPI=6
110 -USE_RUBY="ruby21 ruby22 ruby23 ruby24"
111 -
112 -# git-r3 goes after ruby-ng so that it overrides src_unpack properly
113 -inherit cmake-utils eutils multilib ruby-ng
114 -
115 -DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
116 -HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
117 -
118 -LICENSE="Apache-2.0"
119 -SLOT="0"
120 -IUSE="debug test"
121 -if [[ ${PV} == 9999 ]] ; then
122 - inherit git-r3
123 - EGIT_REPO_URI="https://github.com/puppetlabs/facter.git"
124 - EGIT_BRANCH="master"
125 - S="${S}/${P}"
126 -else
127 - [[ "${PV}" = *_rc* ]] || \
128 - KEYWORDS="amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc x86"
129 - SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
130 - S="${S}/all/${P}"
131 -fi
132 -
133 -BDEPEND="
134 - >=sys-devel/gcc-4.8:*
135 - dev-cpp/cpp-hocon"
136 -CDEPEND="
137 - >=dev-libs/leatherman-1.0.0:=
138 - dev-libs/openssl:*
139 - sys-apps/util-linux
140 - app-emulation/virt-what
141 - net-misc/curl
142 - >=dev-libs/boost-1.54:=[nls]
143 - >=dev-cpp/yaml-cpp-0.5.1
144 - !<app-admin/puppet-4.0.0"
145 -
146 -ruby_add_bdepend "test? ( dev-ruby/rake dev-ruby/rspec:2 dev-ruby/mocha:0.14 )"
147 -
148 -RDEPEND="${CDEPEND}"
149 -DEPEND="${BDEPEND}
150 - ${CDEPEND}"
151 -
152 -src_prepare() {
153 - # Remove the code that installs facter.rb to the wrong directory.
154 - sed -i '/install(.*facter\.rb/d' lib/CMakeLists.txt || die
155 - sed -i '/install(.*facter\.jar/d' lib/CMakeLists.txt || die
156 - # make it support multilib
157 - sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die
158 - sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die
159 - # make the require work
160 - sed -i 's/\${LIBFACTER_INSTALL_DESTINATION}\///g' lib/facter.rb.in || die
161 - # be explicit about the version of rspec we test with and use the
162 - # correct lib directory for tests
163 - sed -i -e '/libfacter.*specs/ s/rspec/rspec-2/' \
164 - -e '/libfacter.*specs/ s/lib64/lib/' CMakeLists.txt || die
165 - # be more lenient for software versions for tests
166 - sed -i -e '/rake/ s/~> 10.1.0/>= 10/' \
167 - -e '/rspec/ s/2.11.0/2.11/' \
168 - -e '/mocha/ s/0.10.5/0.14.0/' lib/Gemfile || die
169 - # patches
170 - default
171 - cmake-utils_src_prepare
172 -}
173 -
174 -src_configure() {
175 - local mycmakeargs=(
176 - -DCMAKE_VERBOSE_MAKEFILE=ON
177 - -DCMAKE_BUILD_TYPE=None
178 - -DCMAKE_INSTALL_PREFIX=/usr
179 - -DCMAKE_INSTALL_SYSCONFDIR=/etc
180 - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
181 - -DUSE_JRUBY_SUPPORT=FALSE
182 - -DBLKID_LIBRARY=/$(get_libdir)/libblkid.so.1
183 - )
184 - if use debug; then
185 - mycmakeargs+=(
186 - -DCMAKE_BUILD_TYPE=Debug
187 - )
188 - fi
189 - cmake-utils_src_configure
190 -}
191 -
192 -src_compile() {
193 - cmake-utils_src_compile
194 -}
195 -
196 -each_ruby_install() {
197 - doruby "${BUILD_DIR}"/lib/facter.rb
198 -}
199 -
200 -src_test() {
201 - cmake-utils_src_test
202 -}
203 -
204 -src_install() {
205 - cmake-utils_src_install
206 - ruby-ng_src_install
207 -
208 - # need a variable file in env.d :(
209 - diropts -m0755
210 - dodir /etc/env.d
211 - echo -n "FACTERDIR=/usr/$(get_libdir)" > "${D}/etc/env.d/00facterdir"
212 - fperms 0644 /etc/env.d/00facterdir
213 -}
214
215 diff --git a/dev-ruby/facter/facter-3.11.2.ebuild b/dev-ruby/facter/facter-3.11.2.ebuild
216 index 6210613630d..1d8bed51422 100644
217 --- a/dev-ruby/facter/facter-3.11.2.ebuild
218 +++ b/dev-ruby/facter/facter-3.11.2.ebuild
219 @@ -20,7 +20,7 @@ if [[ ${PV} == 9999 ]] ; then
220 S="${S}/${P}"
221 else
222 [[ "${PV}" = *_rc* ]] || \
223 - KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
224 + KEYWORDS="amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc x86"
225 SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
226 S="${S}/all/${P}"
227 fi
228
229 diff --git a/dev-ruby/facter/facter-3.9.5.ebuild b/dev-ruby/facter/facter-3.9.5.ebuild
230 deleted file mode 100644
231 index 921e49af450..00000000000
232 --- a/dev-ruby/facter/facter-3.9.5.ebuild
233 +++ /dev/null
234 @@ -1,108 +0,0 @@
235 -# Copyright 1999-2018 Gentoo Foundation
236 -# Distributed under the terms of the GNU General Public License v2
237 -
238 -EAPI=6
239 -USE_RUBY="ruby21 ruby22 ruby23 ruby24"
240 -
241 -# git-r3 goes after ruby-ng so that it overrides src_unpack properly
242 -inherit cmake-utils eutils multilib ruby-ng
243 -
244 -DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
245 -HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
246 -
247 -LICENSE="Apache-2.0"
248 -SLOT="0"
249 -IUSE="debug test"
250 -if [[ ${PV} == 9999 ]] ; then
251 - inherit git-r3
252 - EGIT_REPO_URI="https://github.com/puppetlabs/facter.git"
253 - EGIT_BRANCH="master"
254 - S="${S}/${P}"
255 -else
256 - [[ "${PV}" = *_rc* ]] || \
257 - KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
258 - SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
259 - S="${S}/all/${P}"
260 -fi
261 -
262 -BDEPEND="
263 - >=sys-devel/gcc-4.8:*
264 - dev-cpp/cpp-hocon"
265 -CDEPEND="
266 - >=dev-libs/leatherman-1.0.0:=
267 - dev-libs/openssl:*
268 - sys-apps/util-linux
269 - app-emulation/virt-what
270 - net-misc/curl
271 - >=dev-libs/boost-1.54:=[nls]
272 - >=dev-cpp/yaml-cpp-0.5.1
273 - !<app-admin/puppet-4.0.0"
274 -
275 -ruby_add_bdepend "test? ( dev-ruby/rake dev-ruby/rspec:2 dev-ruby/mocha:0.14 )"
276 -
277 -RDEPEND="${CDEPEND}"
278 -DEPEND="${BDEPEND}
279 - ${CDEPEND}"
280 -
281 -src_prepare() {
282 - # Remove the code that installs facter.rb to the wrong directory.
283 - sed -i '/install(.*facter\.rb/d' lib/CMakeLists.txt || die
284 - sed -i '/install(.*facter\.jar/d' lib/CMakeLists.txt || die
285 - # make it support multilib
286 - sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die
287 - sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die
288 - # make the require work
289 - sed -i 's/\${LIBFACTER_INSTALL_DESTINATION}\///g' lib/facter.rb.in || die
290 - # be explicit about the version of rspec we test with and use the
291 - # correct lib directory for tests
292 - sed -i -e '/libfacter.*specs/ s/rspec/rspec-2/' \
293 - -e '/libfacter.*specs/ s/lib64/lib/' CMakeLists.txt || die
294 - # be more lenient for software versions for tests
295 - sed -i -e '/rake/ s/~> 10.1.0/>= 10/' \
296 - -e '/rspec/ s/2.11.0/2.11/' \
297 - -e '/mocha/ s/0.10.5/0.14.0/' lib/Gemfile || die
298 - # patches
299 - default
300 - cmake-utils_src_prepare
301 -}
302 -
303 -src_configure() {
304 - local mycmakeargs=(
305 - -DCMAKE_VERBOSE_MAKEFILE=ON
306 - -DCMAKE_BUILD_TYPE=None
307 - -DCMAKE_INSTALL_PREFIX=/usr
308 - -DCMAKE_INSTALL_SYSCONFDIR=/etc
309 - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
310 - -DUSE_JRUBY_SUPPORT=FALSE
311 - -DBLKID_LIBRARY=/$(get_libdir)/libblkid.so.1
312 - )
313 - if use debug; then
314 - mycmakeargs+=(
315 - -DCMAKE_BUILD_TYPE=Debug
316 - )
317 - fi
318 - cmake-utils_src_configure
319 -}
320 -
321 -src_compile() {
322 - cmake-utils_src_compile
323 -}
324 -
325 -each_ruby_install() {
326 - doruby "${BUILD_DIR}"/lib/facter.rb
327 -}
328 -
329 -src_test() {
330 - cmake-utils_src_test
331 -}
332 -
333 -src_install() {
334 - cmake-utils_src_install
335 - ruby-ng_src_install
336 -
337 - # need a variable file in env.d :(
338 - diropts -m0755
339 - dodir /etc/env.d
340 - echo -n "FACTERDIR=/usr/$(get_libdir)" > "${D}/etc/env.d/00facterdir"
341 - fperms 0644 /etc/env.d/00facterdir
342 -}