/[gentoo-x86]/dev-ruby/semacode/semacode-0.7.4.ebuild
Gentoo

Contents of /dev-ruby/semacode/semacode-0.7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Sep 18 12:31:16 2011 UTC (3 years, 8 months ago) by flameeyes
Branch: MAIN
Initial import of the semacode datamatrix generation library.

(Portage version: 2.2.0_alpha58/cvs/Linux x86_64)

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/mechanize/mechanize-1.0.0.ebuild,v 1.4 2011/08/02 16:32:23 hwoarang 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 }

  ViewVC Help
Powered by ViewVC 1.1.20