From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/prawn: metadata.xml ChangeLog prawn-0.4.1.ebuild |
Date: | Thu, 16 Jul 2009 13:09:51 |
Message-Id: | E1MRQib-0005cE-H1@stork.gentoo.org |
1 | flameeyes 09/07/16 13:09:49 |
2 | |
3 | Added: metadata.xml ChangeLog prawn-0.4.1.ebuild |
4 | Log: |
5 | Initial import of prawn. |
6 | (Portage version: 2.2_rc33/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/prawn/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/prawn/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/prawn/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>ruby</herd> |
20 | </pkgmetadata> |
21 | |
22 | |
23 | |
24 | 1.1 dev-ruby/prawn/ChangeLog |
25 | |
26 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/prawn/ChangeLog?rev=1.1&view=markup |
27 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/prawn/ChangeLog?rev=1.1&content-type=text/plain |
28 | |
29 | Index: ChangeLog |
30 | =================================================================== |
31 | # ChangeLog for dev-ruby/prawn |
32 | # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
33 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/prawn/ChangeLog,v 1.1 2009/07/16 13:09:49 flameeyes Exp $ |
34 | |
35 | *prawn-0.4.1 (16 Jul 2009) |
36 | |
37 | 16 Jul 2009; Diego E. Pettenò <flameeyes@g.o> +prawn-0.4.1.ebuild, |
38 | +metadata.xml: |
39 | Initial import of prawn. |
40 | |
41 | |
42 | |
43 | |
44 | 1.1 dev-ruby/prawn/prawn-0.4.1.ebuild |
45 | |
46 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/prawn/prawn-0.4.1.ebuild?rev=1.1&view=markup |
47 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/prawn/prawn-0.4.1.ebuild?rev=1.1&content-type=text/plain |
48 | |
49 | Index: prawn-0.4.1.ebuild |
50 | =================================================================== |
51 | # Copyright 1999-2009 Gentoo Foundation |
52 | # Distributed under the terms of the GNU General Public License v2 |
53 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/prawn/prawn-0.4.1.ebuild,v 1.1 2009/07/16 13:09:49 flameeyes Exp $ |
54 | |
55 | EAPI=2 |
56 | |
57 | GITHUB_USER=sandal |
58 | |
59 | inherit ruby |
60 | |
61 | DESCRIPTION="Fast, Nimble PDF Generation For Ruby" |
62 | HOMEPAGE="http://prawn.majesticseacreature.com/" |
63 | |
64 | LICENSE="|| ( GPL-2 Ruby )" |
65 | SLOT="0" |
66 | KEYWORDS="~amd64" |
67 | IUSE="doc examples test" |
68 | |
69 | SRC_URI="http://github.com/${GITHUB_USER}/${PN}/tarball/${PV} -> ${P}.tgz" |
70 | |
71 | USE_RUBY="ruby18" |
72 | |
73 | RDEPEND="dev-ruby/ttfunk" |
74 | DEPEND="doc? ( dev-ruby/rake ) |
75 | test? ( |
76 | dev-ruby/rake |
77 | dev-ruby/test-spec |
78 | >=dev-ruby/pdf-reader-0.7.3 |
79 | ${RDEPEND} |
80 | )" |
81 | |
82 | S="${WORKDIR}" |
83 | |
84 | src_compile() { |
85 | cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* |
86 | |
87 | if use doc; then |
88 | rake rdoc || die "rake rdoc failed" |
89 | fi |
90 | } |
91 | |
92 | src_test() { |
93 | cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* |
94 | |
95 | rake test || die "rake test failed" |
96 | } |
97 | |
98 | dofakegemspec() { |
99 | cat - > "${T}"/${P}.gemspec <<EOF |
100 | Gem::Specification.new do |s| |
101 | s.name = "${PN}" |
102 | s.version = "${PV}" |
103 | s.summary = "${DESCRIPTION}" |
104 | s.homepage = "${HOMEPAGE}" |
105 | end |
106 | EOF |
107 | |
108 | # Note: this only works with 1.8 so if you need to make it work |
109 | # with 1.9 you better wait for ruby-fakegem.eclass. |
110 | insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')/../gems/1.8/specifications |
111 | doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec" |
112 | } |
113 | |
114 | src_install() { |
115 | cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* |
116 | |
117 | pushd lib |
118 | doruby -r * || die "install lib failed" |
119 | popd |
120 | |
121 | dofakegemspec |
122 | |
123 | dodoc README HACKING || die "Installing docs failed." |
124 | |
125 | dohtml -r www/* || die |
126 | |
127 | if use doc; then |
128 | docinto apidocs |
129 | pushd doc |
130 | dohtml -r * || die "Installing html documentation failed." |
131 | popd |
132 | fi |
133 | |
134 | if use examples; then |
135 | docinto examples |
136 | dodoc -r examples/* || die "Installing examples failes." |
137 | fi |
138 | } |