Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/hpricot: ChangeLog hpricot-0.8.ebuild
Date: Fri, 08 May 2009 10:31:43
Message-Id: E1M2NMj-0004Wh-2M@stork.gentoo.org
1 flameeyes 09/05/08 10:31:41
2
3 Modified: ChangeLog
4 Added: hpricot-0.8.ebuild
5 Log:
6 Version bump and use a fake spec instead of a gem.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.14 dev-ruby/hpricot/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/hpricot/ChangeLog?rev=1.14&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/hpricot/ChangeLog?rev=1.14&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/hpricot/ChangeLog?r1=1.13&r2=1.14
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/hpricot/ChangeLog,v
19 retrieving revision 1.13
20 retrieving revision 1.14
21 diff -u -r1.13 -r1.14
22 --- ChangeLog 29 Dec 2008 15:54:27 -0000 1.13
23 +++ ChangeLog 8 May 2009 10:31:40 -0000 1.14
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-ruby/hpricot
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/hpricot/ChangeLog,v 1.13 2008/12/29 15:54:27 graaff Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/hpricot/ChangeLog,v 1.14 2009/05/08 10:31:40 flameeyes Exp $
30 +
31 +*hpricot-0.8 (08 May 2009)
32 +
33 + 08 May 2009; Diego E. Pettenò <flameeyes@g.o> +hpricot-0.8.ebuild:
34 + Version bump and use a fake spec instead of a gem.
35
36 29 Dec 2008; Hans de Graaff <graaff@g.o> -hpricot-0.6.164.ebuild:
37 Remove known to be broken version since we can't fix the gem easily.
38
39
40
41 1.1 dev-ruby/hpricot/hpricot-0.8.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/hpricot/hpricot-0.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/hpricot/hpricot-0.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hpricot-0.8.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/hpricot/hpricot-0.8.ebuild,v 1.1 2009/05/08 10:31:40 flameeyes Exp $
51
52 EAPI=2
53
54 inherit ruby
55
56 GITHUB_USER=why
57
58 USE_RUBY="ruby18"
59
60 DESCRIPTION="A fast and liberal HTML parser for Ruby."
61 HOMEPAGE="http://code.whytheluckystiff.net/hpricot/"
62
63 SRC_URI="http://github.com/${GITHUB_USER}/${PN}/tarball/${PV} -> ${P}.tgz"
64
65 LICENSE="MIT"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
68 IUSE="doc test"
69
70 DEPEND="dev-util/ragel
71 dev-ruby/rake"
72 RDEPEND=">=dev-lang/ruby-1.8.4"
73
74 dofakegemspec() {
75 cat - > "${T}"/${P}.gemspec <<EOF
76 Gem::Specification.new do |s|
77 s.name = "${PN}"
78 s.version = "${PV}"
79 s.summary = "${DESCRIPTION}"
80 s.homepage = "${HOMEPAGE}"
81 end
82 EOF
83
84 insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications
85 doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec"
86 }
87
88 src_compile() {
89 cd "${WORKDIR}"/${GITHUB_USER}-${PN}-*
90
91 rake compile || die "rake failed"
92
93 if use doc; then
94 rake rdoc || die "rake rdoc failed"
95 fi
96 }
97
98 src_test() {
99 cd "${WORKDIR}"/${GITHUB_USER}-${PN}-*
100
101 for ruby in $USE_RUBY; do
102 [[ -n `type -p $ruby` ]] || continue
103 $ruby $(type -p rake) test || die "testsuite failed"
104 done
105 }
106
107 src_install() {
108 cd "${WORKDIR}"/${GITHUB_USER}-${PN}-*
109
110 pushd lib
111 doruby -r *.rb hpricot || die "doruby failed"
112 exeinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
113 doexe *.so || die "doruby failed"
114 popd
115
116 if use doc; then
117 dohtml -r doc/* || die "dohtml failed"
118 fi
119
120 dodoc CHANGELOG README || die "dodoc failed"
121
122 dofakegemspec
123 }