summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-09-18 12:31:16 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-09-18 12:31:16 +0000
commit724e67f283e71ca6ad13007bb5dbe0edc2a0e7ed (patch)
tree949dc51f4495f16e50bc284122bd16eda96df54c
parentFix herd to be proxy-maintainers (diff)
downloadgentoo-2-724e67f283e71ca6ad13007bb5dbe0edc2a0e7ed.tar.gz
gentoo-2-724e67f283e71ca6ad13007bb5dbe0edc2a0e7ed.tar.bz2
gentoo-2-724e67f283e71ca6ad13007bb5dbe0edc2a0e7ed.zip
Initial import of the semacode datamatrix generation library.
(Portage version: 2.2.0_alpha58/cvs/Linux x86_64)
-rw-r--r--dev-ruby/semacode/ChangeLog10
-rw-r--r--dev-ruby/semacode/metadata.xml5
-rw-r--r--dev-ruby/semacode/semacode-0.7.4.ebuild40
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/semacode/ChangeLog b/dev-ruby/semacode/ChangeLog
new file mode 100644
index 000000000000..069eebe72496
--- /dev/null
+++ b/dev-ruby/semacode/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ruby/semacode
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/semacode/ChangeLog,v 1.1 2011/09/18 12:31:16 flameeyes Exp $
+
+*semacode-0.7.4 (18 Sep 2011)
+
+ 18 Sep 2011; Diego E. Pettenò <flameeyes@gentoo.org> +semacode-0.7.4.ebuild,
+ +metadata.xml:
+ Initial import of the semacode datamatrix generation library.
+
diff --git a/dev-ruby/semacode/metadata.xml b/dev-ruby/semacode/metadata.xml
new file mode 100644
index 000000000000..ed77b4f90bcb
--- /dev/null
+++ b/dev-ruby/semacode/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ruby</herd>
+</pkgmetadata>
diff --git a/dev-ruby/semacode/semacode-0.7.4.ebuild b/dev-ruby/semacode/semacode-0.7.4.ebuild
new file mode 100644
index 000000000000..e123707c87fa
--- /dev/null
+++ b/dev-ruby/semacode/semacode-0.7.4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/semacode/semacode-0.7.4.ebuild,v 1.1 2011/09/18 12:31:16 flameeyes Exp $
+
+EAPI=4
+
+# jruby → it's a native extension
+# ruby19 → needs trivial patching
+USE_RUBY="ruby18 ree18"
+
+RUBY_FAKEGEM_TASK_TEST="test"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_DOCDIR=""
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README"
+
+inherit ruby-fakegem
+
+DESCRIPTION="DataMatrix encoder for Ruby"
+HOMEPAGE="http://sohne.net/projects/semafox/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+each_ruby_configure() {
+ ${RUBY} -C ext extconf.rb || die "extconf.rb failed"
+}
+
+each_ruby_compile() {
+ emake -C ext \
+ CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake failed"
+ cp ext/semacode_native.so lib || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib tests/test.rb || die "tests failed"
+}