Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/unf: ChangeLog unf-0.1.3.ebuild
Date: Sun, 27 Oct 2013 06:43:56
Message-Id: 20131027064346.B906A20047@flycatcher.gentoo.org
1 graaff 13/10/27 06:43:46
2
3 Modified: ChangeLog
4 Added: unf-0.1.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.12 dev-ruby/unf/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/unf/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/unf/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/unf/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/unf/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 27 Oct 2013 06:38:37 -0000 1.11
24 +++ ChangeLog 27 Oct 2013 06:43:46 -0000 1.12
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/unf
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf/ChangeLog,v 1.11 2013/10/27 06:38:37 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf/ChangeLog,v 1.12 2013/10/27 06:43:46 graaff Exp $
30 +
31 +*unf-0.1.3 (27 Oct 2013)
32 +
33 + 27 Oct 2013; Hans de Graaff <graaff@g.o> +unf-0.1.3.ebuild:
34 + Version bump.
35
36 27 Oct 2013; Hans de Graaff <graaff@g.o> -unf-0.0.5-r1.ebuild:
37 Cleanup.
38
39
40
41 1.1 dev-ruby/unf/unf-0.1.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/unf/unf-0.1.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/unf/unf-0.1.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: unf-0.1.3.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf/unf-0.1.3.ebuild,v 1.1 2013/10/27 06:43:46 graaff Exp $
51
52 EAPI=5
53
54 USE_RUBY="ruby18 ruby19 jruby"
55
56 RUBY_FAKEGEM_RECIPE_TEST="none"
57 RUBY_FAKEGEM_TASK_DOC=""
58 RUBY_FAKEGEM_EXTRADOC="README.md"
59
60 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
61
62 inherit ruby-fakegem
63
64 DESCRIPTION="A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby."
65 HOMEPAGE="https://github.com/knu/ruby-unf"
66
67 LICENSE="BSD-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
70 IUSE="test"
71
72 # jruby already has support for UNF so it does not need the extension.
73 USE_RUBY=${USE_RUBY/jruby/} ruby_add_rdepend "dev-ruby/unf_ext"
74
75 ruby_add_bdepend "
76 test? (
77 >=dev-ruby/test-unit-2.5.1-r1
78 dev-ruby/shoulda
79 )"
80
81 all_ruby_prepare() {
82 sed -i -e '/bundler/,/end/ d' test/helper.rb || die
83
84 # Remove development dependencies; also remove platform as we don't
85 # care about it as it is, they only use it to avoid the unf_ext dep
86 # that we tackle on our own; finally remove git ls-files usage.
87 sed -i -e '/dependency.*\(shoulda\|bundler\|jeweler\|rcov\)/d' \
88 -e '/platform/d' \
89 -e '/git ls/d' \
90 ${RUBY_FAKEGEM_GEMSPEC} || die
91 }
92
93 each_ruby_prepare() {
94 if [[ ${RUBY} == *jruby ]]; then
95 # Remove dependency over unf_ext which does not exist for JRuby
96 # remove platform, we don't set it.
97 sed -i -e '/dependency.*unf_ext/d' \
98 ${RUBY_FAKEGEM_GEMSPEC} || die
99 fi
100 }
101
102 each_ruby_test() {
103 ruby-ng_testrb-2 test/test_*.rb
104 }