diff options
Diffstat (limited to 'dev-ruby/serialport')
-rw-r--r-- | dev-ruby/serialport/Manifest | 5 | ||||
-rw-r--r-- | dev-ruby/serialport/metadata.xml | 8 | ||||
-rw-r--r-- | dev-ruby/serialport/serialport-1.3.1.ebuild | 48 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/serialport/Manifest b/dev-ruby/serialport/Manifest new file mode 100644 index 000000000000..a54e5270577a --- /dev/null +++ b/dev-ruby/serialport/Manifest @@ -0,0 +1,5 @@ +DIST serialport-1.3.1.gem 25088 SHA256 59293f68d8d6fe8e54726a238f46143f0e5541d4232cc211f10cb627c8219747 SHA512 cdce9e13065cecf6d090d716626abb399bcc2a079be7bf1fe7755a20360218550f2f31980d62d8aae1fcc62fc62d6f7549685f865e30d2a5f40a617f5f197ed9 WHIRLPOOL 0e0521aa7feb35aa7f68201c77620605e74c5ba58b8bf95b52b0cc8ba0ca1165bbe5456e9c038459897fd2dfe68cab67a534ec85c3a25df31563b0442601445d +EBUILD serialport-1.3.1.ebuild 1055 SHA256 332a2c2d7d1a2ac0bf62912056ee84ddf529a294764253316824a08e103f1b6a SHA512 f1c4a7f877fc3a6c78084ad222bef5d89d4f4b3e826d3feb25937678175cb5a8fce4e2715c40ccac74ef586e52d3e1719ba19d0d9da5a3fdd0a590fcc5c64ed2 WHIRLPOOL b4136ab945415c2321949d30a863b2dd182f6e0fe8f9c615b5f80c0203fb72d4b7fef0d9d7744037b8c6d96358ff29d076e7209bd6dd865657cdc6cf5cc5afdf +MISC ChangeLog 3884 SHA256 e24dc4f9bb80e49adc03c72001652c8fb9eb36b07d79a49a1b64adfd755c8257 SHA512 f327cccdb4d01280ee25b8421e21cd61e67ad86c2021911267302d99659f2e3c0ff10464d7ead6c0d1e7ced4120c197ce79b1a05d20476c51beb31547b2751d5 WHIRLPOOL 56b40f6f7b1bc025ff3fb3b1a02f2728f666ea98813ecef662d8f629124df48e80f4d7ada47c09b1547c48c8550f7f998e80700660a299eb597bf5ae656e5d77 +MISC ChangeLog-2015 4835 SHA256 fadd1eac0eb49ef3e35a506f3648ac6e6bb2ae217bd93552ab838aa50ef55382 SHA512 fdaa72e4be26a912932f34309dfb59282f7ddb8be8fca17e46ac56ba13f624d24e82d5bbd1170892b7ca888490678506023ef8754215492546458790e06dcb4e WHIRLPOOL 0f511e3e208899c50c3772608b90c1a0bf3e3e714ea538d3932e0a5092e5d91d6102c6836e6b62976a0adf622144ea3d5c044471c81a9396665a61d21e9966b2 +MISC metadata.xml 251 SHA256 e42b6a84b1ae72e905433686395988601795455bdc99180089f055a3498c4c9f SHA512 17d4dbd64468a524311a24ca065537a5b21560388efd282f3fa873e6722f70db6f83e3e5615556450905c29d5df2cf0a0855f9c0b38bf23f0f8112501456d4ea WHIRLPOOL 2408c62b64285a8a340b446568718af55786b22010e127543f28dc67de0c67f1739905e31b7d0e549bfc663ba05ea646c011de5df57505a5bc5ea7a79e2e7639 diff --git a/dev-ruby/serialport/metadata.xml b/dev-ruby/serialport/metadata.xml new file mode 100644 index 000000000000..eb1e47f2edfb --- /dev/null +++ b/dev-ruby/serialport/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> +</pkgmetadata> diff --git a/dev-ruby/serialport/serialport-1.3.1.ebuild b/dev-ruby/serialport/serialport-1.3.1.ebuild new file mode 100644 index 000000000000..e81e364482e3 --- /dev/null +++ b/dev-ruby/serialport/serialport-1.3.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md" + +inherit multilib ruby-fakegem + +DESCRIPTION="a library for serial port (rs232) access in ruby" +HOMEPAGE="http://rubyforge.org/projects/ruby-serialport/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +all_ruby_prepare() { + # Fix the miniterm script so that it might actually work, we'll + # install it as example. + sed -i -e 's:\.\./serialport.so:serialport:' test/miniterm.rb || die +} + +each_ruby_configure() { + cd ext/native || die + ${RUBY} extconf.rb || die +} + +each_ruby_compile() { + pushd ext/native &>/dev/null + emake V=1 + popd &>/dev/null + + # Avoids the need for a specific install phase + cp ext/native/*$(get_modname) lib/ || die "extension copy failed" +} + +all_ruby_install() { + all_fakegem_install + + # don't compress it + insinto /usr/share/doc/${PF}/examples + doins test/miniterm.rb +} |