diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-05-08 10:31:40 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-05-08 10:31:40 +0000 |
commit | 09a6e8ec287c42844711508d753b8c9e16a73bce (patch) | |
tree | 3b55f9bd96648f5a8f5b2b266a03753764fefe94 | |
parent | Temporarily mask mono-2.4-r1 for bug 265912. (diff) | |
download | historical-09a6e8ec287c42844711508d753b8c9e16a73bce.tar.gz historical-09a6e8ec287c42844711508d753b8c9e16a73bce.tar.bz2 historical-09a6e8ec287c42844711508d753b8c9e16a73bce.zip |
Version bump and use a fake spec instead of a gem.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
-rw-r--r-- | dev-ruby/hpricot/ChangeLog | 9 | ||||
-rw-r--r-- | dev-ruby/hpricot/Manifest | 14 | ||||
-rw-r--r-- | dev-ruby/hpricot/hpricot-0.8.ebuild | 76 |
3 files changed, 86 insertions, 13 deletions
diff --git a/dev-ruby/hpricot/ChangeLog b/dev-ruby/hpricot/ChangeLog index f042debd7d46..d82ea36e2c38 100644 --- a/dev-ruby/hpricot/ChangeLog +++ b/dev-ruby/hpricot/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ruby/hpricot -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/hpricot/ChangeLog,v 1.13 2008/12/29 15:54:27 graaff Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/hpricot/ChangeLog,v 1.14 2009/05/08 10:31:40 flameeyes Exp $ + +*hpricot-0.8 (08 May 2009) + + 08 May 2009; Diego E. Pettenò <flameeyes@gentoo.org> +hpricot-0.8.ebuild: + Version bump and use a fake spec instead of a gem. 29 Dec 2008; Hans de Graaff <graaff@gentoo.org> -hpricot-0.6.164.ebuild: Remove known to be broken version since we can't fix the gem easily. diff --git a/dev-ruby/hpricot/Manifest b/dev-ruby/hpricot/Manifest index d0c3fcd158e4..5b42e226cac7 100644 --- a/dev-ruby/hpricot/Manifest +++ b/dev-ruby/hpricot/Manifest @@ -1,14 +1,6 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - DIST hpricot-0.6.gem 217088 RMD160 80f785afd1d25219b6769271201733a934b52450 SHA1 4be23c83200d8446f25d2441a5154f53d41a34f2 SHA256 8c40e3767d2e6b31c70b534c86c8f68c3648516b5b8e1f9515f6311088eff3c1 +DIST hpricot-0.8.tgz 256331 RMD160 c96bc6b560b45ce43790d3383aa41aa41b31729e SHA1 bf509f05a61d1fbbd2efe27b5ddd7469f3b464c7 SHA256 e1c120b373b34ae7d8ce1101ea183b4776cd1666d786d02c775c419982b8c483 EBUILD hpricot-0.6.ebuild 541 RMD160 9746bf258354fa2f0e71a7e5ba4d09e3a52534a7 SHA1 f8401903afe2e22511aaaba690b0994eb72f2bff SHA256 1647acf5354d6f0cfbfc46c7966049bfd2e4079cee88e7bea4c1be6e9bd7dafe -MISC ChangeLog 1654 RMD160 41c6728834d35f8f1c78e0c660b9f380dd49d71e SHA1 f3f798939f21f940a949556c67acaf091c1875f2 SHA256 3a1591cae4e8d8570045c7b24b6f53b67d9e8e26839809e2e89fa777ee4e697d +EBUILD hpricot-0.8.ebuild 1702 RMD160 1b721345b0d00dc3bca0453b64df4203e815cd11 SHA1 74271253c864d41a4f1467e877c48ff5e8e58f27 SHA256 f3d37fe478c54f05f7aaba8949ec0d04a3a8d7927b1b07c0c83d32eab0ae726f +MISC ChangeLog 1816 RMD160 6577dceb9f72c18c7331b46929653dc9f67578da SHA1 7387f9677cda73f1e33cc5a1111fc635a5a35068 SHA256 5b368a7c5a97fa008294698471ee33b9d060831f31ad5693b86337970020d08d MISC metadata.xml 158 RMD160 097f8145a9994f98be4971b43b23b9e5e8bccb66 SHA1 7ac646714b1ab83fda98f3ccdd8b48a31c148b27 SHA256 70b396ab3c7a63a81cb895b7728bd9eccdc9770afdb9919f2c54694b685f7032 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) - -iEYEARECAAYFAklY8rgACgkQqj4ysMWt/vv4iACgjGR/FYwHQwG5g9t1FgWbkHeM -mwEAoLBT6vY1JZMXEVIbTAdiKkRQsJFv -=Azls ------END PGP SIGNATURE----- diff --git a/dev-ruby/hpricot/hpricot-0.8.ebuild b/dev-ruby/hpricot/hpricot-0.8.ebuild new file mode 100644 index 000000000000..4f3e85726ad9 --- /dev/null +++ b/dev-ruby/hpricot/hpricot-0.8.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/hpricot/hpricot-0.8.ebuild,v 1.1 2009/05/08 10:31:40 flameeyes Exp $ + +EAPI=2 + +inherit ruby + +GITHUB_USER=why + +USE_RUBY="ruby18" + +DESCRIPTION="A fast and liberal HTML parser for Ruby." +HOMEPAGE="http://code.whytheluckystiff.net/hpricot/" + +SRC_URI="http://github.com/${GITHUB_USER}/${PN}/tarball/${PV} -> ${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="doc test" + +DEPEND="dev-util/ragel + dev-ruby/rake" +RDEPEND=">=dev-lang/ruby-1.8.4" + +dofakegemspec() { + cat - > "${T}"/${P}.gemspec <<EOF +Gem::Specification.new do |s| + s.name = "${PN}" + s.version = "${PV}" + s.summary = "${DESCRIPTION}" + s.homepage = "${HOMEPAGE}" +end +EOF + + insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications + doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec" +} + +src_compile() { + cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* + + rake compile || die "rake failed" + + if use doc; then + rake rdoc || die "rake rdoc failed" + fi +} + +src_test() { + cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* + + for ruby in $USE_RUBY; do + [[ -n `type -p $ruby` ]] || continue + $ruby $(type -p rake) test || die "testsuite failed" + done +} + +src_install() { + cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* + + pushd lib + doruby -r *.rb hpricot || die "doruby failed" + exeinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]') + doexe *.so || die "doruby failed" + popd + + if use doc; then + dohtml -r doc/* || die "dohtml failed" + fi + + dodoc CHANGELOG README || die "dodoc failed" + + dofakegemspec +} |