blob: fc352b3b18d91a27a089289c86c9aeb8836e9336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.0-r1.ebuild,v 1.1 2009/05/03 19:59:48 graaff Exp $
inherit ruby
IUSE=""
DESCRIPTION="Ruby bindings for cairo"
HOMEPAGE="http://cairographics.org/rcairo/"
SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
SLOT="0"
LICENSE="|| ( Ruby GPL-2 )"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
USE_RUBY="ruby18"
RDEPEND=">=x11-libs/cairo-1.2.0"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
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_install() {
ruby_src_install
dofakegemspec
}
|