1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/semacode/semacode-0.7.4.ebuild,v 1.1 2011/09/18 12:31:16 flameeyes Exp $ |
4 |
|
5 |
EAPI=4 |
6 |
|
7 |
# jruby → it's a native extension |
8 |
# ruby19 → needs trivial patching |
9 |
USE_RUBY="ruby18 ree18" |
10 |
|
11 |
RUBY_FAKEGEM_TASK_TEST="test" |
12 |
|
13 |
RUBY_FAKEGEM_TASK_DOC="" |
14 |
RUBY_FAKEGEM_DOCDIR="" |
15 |
|
16 |
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README" |
17 |
|
18 |
inherit ruby-fakegem |
19 |
|
20 |
DESCRIPTION="DataMatrix encoder for Ruby" |
21 |
HOMEPAGE="http://sohne.net/projects/semafox/" |
22 |
|
23 |
LICENSE="GPL-2" |
24 |
SLOT="0" |
25 |
KEYWORDS="~amd64" |
26 |
IUSE="" |
27 |
|
28 |
each_ruby_configure() { |
29 |
${RUBY} -C ext extconf.rb || die "extconf.rb failed" |
30 |
} |
31 |
|
32 |
each_ruby_compile() { |
33 |
emake -C ext \ |
34 |
CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake failed" |
35 |
cp ext/semacode_native.so lib || die |
36 |
} |
37 |
|
38 |
each_ruby_test() { |
39 |
${RUBY} -Ilib tests/test.rb || die "tests failed" |
40 |
} |