blob: 94a17bd7caf2492a37bad01cd8064eecdb560d1d (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-opengl/ruby-opengl-0.32g.ebuild,v 1.2 2006/05/12 19:58:12 caleb Exp $
inherit ruby
DESCRIPTION="OpenGL / GLUT bindings for ruby"
HOMEPAGE="http://www2.giganet.net/~yoshi/"
SRC_URI="http://www2.giganet.net/~yoshi/rbogl-${PV}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE=""
USE_RUBY="ruby16 ruby18 ruby19"
DEPEND="virtual/ruby
virtual/opengl
virtual/glut"
S=${WORKDIR}/opengl-${PV}
src_compile() {
# ruby -i -pe 'sub "PLATFORM","RUBY_PLATFORM"' extconf.rb
ruby extconf.rb || die
emake -j1 -f Makefile.ogl || die
emake -j1 -f Makefile.glut || die
}
src_install () {
make -f Makefile.ogl DESTDIR=${D} install || die "install ogl failed"
make -f Makefile.glut DESTDIR=${D} install || die "install glut failed"
dodoc README.EUC ChangeLog
insinto /usr/share/${PN}/sample
doins sample/*.rb
}
|