diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-08-23 15:29:17 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-08-23 15:29:17 +0000 |
commit | 09e016fdcf93f65a05cce7ede4fb541ef1129e61 (patch) | |
tree | 0df841cfd69be7b02b8c5352d52b8721aa1a14cb /dev-ruby/pdf-reader | |
parent | old (diff) | |
download | gentoo-2-09e016fdcf93f65a05cce7ede4fb541ef1129e61.tar.gz gentoo-2-09e016fdcf93f65a05cce7ede4fb541ef1129e61.tar.bz2 gentoo-2-09e016fdcf93f65a05cce7ede4fb541ef1129e61.zip |
Version bump, thanks to upstream who tagged the new release.
(Portage version: 2.2_rc39/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/pdf-reader')
-rw-r--r-- | dev-ruby/pdf-reader/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/pdf-reader/pdf-reader-0.7.5.ebuild | 79 |
2 files changed, 86 insertions, 1 deletions
diff --git a/dev-ruby/pdf-reader/ChangeLog b/dev-ruby/pdf-reader/ChangeLog index ec58aabbe90f..076f201c877c 100644 --- a/dev-ruby/pdf-reader/ChangeLog +++ b/dev-ruby/pdf-reader/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/pdf-reader # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pdf-reader/ChangeLog,v 1.1 2009/07/16 13:02:52 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pdf-reader/ChangeLog,v 1.2 2009/08/23 15:29:17 flameeyes Exp $ + +*pdf-reader-0.7.5 (23 Aug 2009) + + 23 Aug 2009; Diego E. Pettenò <flameeyes@gentoo.org> + +pdf-reader-0.7.5.ebuild: + Version bump, thanks to upstream who tagged the new release. *pdf-reader-0.7.4 (16 Jul 2009) diff --git a/dev-ruby/pdf-reader/pdf-reader-0.7.5.ebuild b/dev-ruby/pdf-reader/pdf-reader-0.7.5.ebuild new file mode 100644 index 000000000000..eddc4937a235 --- /dev/null +++ b/dev-ruby/pdf-reader/pdf-reader-0.7.5.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pdf-reader/pdf-reader-0.7.5.ebuild,v 1.1 2009/08/23 15:29:17 flameeyes Exp $ + +EAPI=2 + +GITHUB_USER=yob + +inherit ruby + +DESCRIPTION="PDF parser conforming as much as possible to the PDF specification from Adobe" +HOMEPAGE="http://github.com/yob/pdf-reader/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" + +RESTRICT=test + +SRC_URI="http://github.com/${GITHUB_USER}/${PN}/tarball/v${PV} -> ${P}.tgz" + +USE_RUBY="ruby18" + +DEPEND="doc? ( dev-ruby/rake ) + test? ( dev-ruby/rake dev-ruby/rspec )" +RDEPEND="" + +S="${WORKDIR}" + +src_compile() { + cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* + + if use doc; then + rake doc || die "rake rdoc failed" + fi +} + +src_test() { + cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* + + rake spec || die "rake test failed" +} + +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 + + # Note: this only works with 1.8 so if you need to make it work + # with 1.9 you better wait for ruby-fakegem.eclass. + insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')/../gems/1.8/specifications + doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec" +} + +src_install() { + cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* + + pushd lib + doruby -r * || die "install lib failed" + popd + + dodoc CHANGELOG README.rdoc TODO || die "Installing docs failed." + + if use doc; then + pushd doc + dohtml -r * || die "Installing html documentation failed." + popd + fi + + # Don't install binaries, they don't seem be to be very useful for now + + dofakegemspec +} |