Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ffi/
Date: Tue, 12 Jul 2016 04:38:50
Message-Id: 1468297003.ec3261dcf5ee56524c686d0017ae01e118d6030e.graaff@gentoo
1 commit: ec3261dcf5ee56524c686d0017ae01e118d6030e
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 12 04:16:43 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 12 04:16:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec3261dc
7
8 dev-ruby/ffi: cleanup
9
10 Package-Manager: portage-2.2.28
11
12 dev-ruby/ffi/ffi-1.9.6-r1.ebuild | 67 ----------------------------------------
13 1 file changed, 67 deletions(-)
14
15 diff --git a/dev-ruby/ffi/ffi-1.9.6-r1.ebuild b/dev-ruby/ffi/ffi-1.9.6-r1.ebuild
16 deleted file mode 100644
17 index 9c7c84a..0000000
18 --- a/dev-ruby/ffi/ffi-1.9.6-r1.ebuild
19 +++ /dev/null
20 @@ -1,67 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -
27 -# jruby → unneeded, this is part of the standard JRuby distribution, and
28 -# would just install a dummy.
29 -USE_RUBY="ruby19 ruby20"
30 -
31 -RUBY_FAKEGEM_RECIPE_TEST="rspec"
32 -
33 -RUBY_FAKEGEM_RECIPE_DOC="yard"
34 -RUBY_FAKEGEM_DOCDIR="doc"
35 -RUBY_FAKEGEM_EXTRADOC="README.md"
36 -
37 -inherit ruby-fakegem
38 -
39 -DESCRIPTION="Ruby extension for programmatically loading dynamic libraries"
40 -HOMEPAGE="https://wiki.github.com/ffi/ffi"
41 -
42 -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${PN}-git-${PV}.tgz"
43 -
44 -IUSE=""
45 -LICENSE="BSD"
46 -SLOT="0"
47 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
48 -
49 -RDEPEND+=" virtual/libffi"
50 -DEPEND+=" virtual/libffi"
51 -
52 -ruby_add_bdepend "doc? ( dev-ruby/yard )"
53 -
54 -all_ruby_prepare() {
55 - sed -i -e '/tasks/ s:^:#:' \
56 - -e '/Gem::Tasks/,/end/ s:^:#:' Rakefile || die
57 -
58 - # Fix Makefile for tests
59 - sed -i -e '/CCACHE :=/ s:^:#:' \
60 - -e 's/-O2//' \
61 - -e 's/^CFLAGS =/CFLAGS +=/' libtest/GNUmakefile || die
62 -
63 - # Remove bundled version of libffi.
64 - rm -rf ext/ffi_c/libffi || die
65 -}
66 -
67 -each_ruby_configure() {
68 - ${RUBY} -Cext/ffi_c extconf.rb || die
69 -}
70 -
71 -each_ruby_compile() {
72 - emake -Cext/ffi_c V=1
73 - cp ext/ffi_c/ffi_c.so lib/ || die
74 -
75 - ${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed"
76 -}
77 -
78 -each_ruby_test() {
79 - CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${RUBY} -S rspec spec || die
80 -}
81 -
82 -all_ruby_install() {
83 - all_fakegem_install
84 -
85 - docinto examples
86 - dodoc samples/*
87 -}