From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 39C5D139085 for ; Sat, 14 Jan 2017 06:36:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85927E0E50; Sat, 14 Jan 2017 06:36:50 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5837CE0E50 for ; Sat, 14 Jan 2017 06:36:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F499341831 for ; Sat, 14 Jan 2017 06:36:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 88462267E for ; Sat, 14 Jan 2017 06:36:47 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1484375760.661ac773eb206845ef73bf4bbe5db7fc5536ee04.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ffi/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/ffi/Manifest dev-ruby/ffi/ffi-1.9.17.ebuild X-VCS-Directories: dev-ruby/ffi/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 661ac773eb206845ef73bf4bbe5db7fc5536ee04 X-VCS-Branch: master Date: Sat, 14 Jan 2017 06:36:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 72d1eb9b-9bff-4859-9eed-7144e7dbf81c X-Archives-Hash: 6c8605650a7b7a9d4ad394f306d3aea8 commit: 661ac773eb206845ef73bf4bbe5db7fc5536ee04 Author: Hans de Graaff gentoo org> AuthorDate: Sat Jan 14 06:35:23 2017 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Jan 14 06:36:00 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=661ac773 dev-ruby/ffi: add 1.9.17 Package-Manager: portage-2.3.0 dev-ruby/ffi/Manifest | 1 + dev-ruby/ffi/ffi-1.9.17.ebuild | 63 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-ruby/ffi/Manifest b/dev-ruby/ffi/Manifest index 46618d7..6953704 100644 --- a/dev-ruby/ffi/Manifest +++ b/dev-ruby/ffi/Manifest @@ -1,3 +1,4 @@ DIST ffi-git-1.9.10.tgz 897526 SHA256 3a9a9f6d36fe6a99a3e93865f9680a7578a01f2f52368c6e3c4eac94d3784c70 SHA512 6b47ec43bffdbed31607b8fdc32c26cce9af4eadf03d751cf61f5d2fdd06a281891b6f2ad5f9c9916790211331edf022e5889dae13982be1ad42d12af8186146 WHIRLPOOL ec8e816752c8ed35750dafe1146c2d371824154adfe5adf5c95846fa2a393d92eaaeee6e2a8052b2eea7513fbd9fa974b40bd788f7633068a4fcba26d4846d45 DIST ffi-git-1.9.14.tgz 900791 SHA256 dc5488a9cf407b6da7485f7edbe51dc7e6404adcf902649d8473cbcbb7dd0245 SHA512 9ce000f878f5adfee6b286c4908e867ec829bc9212e8609b29ae816bdf400abec7c1fdebe674253270981545a96652cfcd6a163e060d8745c175ff7d599601a2 WHIRLPOOL c2d234637656d7ace85f5c34e61f8bba6be490f4aa1af3d8932205d4aed11670df983ed651992cf734d07e22ae63ec1fab6ea408598686921d9342fb988416af +DIST ffi-git-1.9.17.tgz 901769 SHA256 69281e0961f565dddd4835a174b4d7c8b33a7eec19843a77e3154281264708e9 SHA512 13380d873849dbba1934b4fed7d2928f5ed35649a32e0c8768242525b4871b9d95c7d3d6045c28417b907bf318dd1d47069d93730bf9404e99e8707e039f5100 WHIRLPOOL 87f6cce67fca60ba19cd39728de44a2a3e867a4a481ef7bfa6d4984fa8640b75cee45557dee85abdff1f49232e9f7fd0fe62ff1d26dc708e33bdb0423ae5aafc DIST ffi-git-1.9.6.tgz 895468 SHA256 b27a59bf2eddcc17abaf7063a64e527fa892ba95cdb6320aba6fa945c769c9c7 SHA512 4b690b70db41642be679f13b33a67e27e1a4b14ca56d6ce355ea0a300c793a63e1081fb19d4c4bd395c1bea55a1669b96e3405932fffeebd328809a410fe3e8f WHIRLPOOL 7f5ad8d7766b037e24cff4721db02f05b39604c1be5e07ddad9de4a5155124d2a05ebd43209dfc2491cdc50ea08e5cda856f7502bf1c12666fa19b77516c81f7 diff --git a/dev-ruby/ffi/ffi-1.9.17.ebuild b/dev-ruby/ffi/ffi-1.9.17.ebuild new file mode 100644 index 00000000..fee3925 --- /dev/null +++ b/dev-ruby/ffi/ffi-1.9.17.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit ruby-fakegem + +DESCRIPTION="Ruby extension for programmatically loading dynamic libraries" +HOMEPAGE="https://wiki.github.com/ffi/ffi" + +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${PN}-git-${PV}.tgz" + +IUSE="" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND+=" virtual/libffi" +DEPEND+=" virtual/libffi" + +all_ruby_prepare() { + sed -i -e '/tasks/ s:^:#:' \ + -e '/Gem::Tasks/,/end/ s:^:#:' Rakefile || die + + # Fix Makefile for tests + sed -i -e '/CCACHE :=/ s:^:#:' \ + -e 's/-O2//' \ + -e 's/^CFLAGS =/CFLAGS +=/' libtest/GNUmakefile || die + + # Remove bundled version of libffi. + rm -rf ext/ffi_c/libffi || die +} + +each_ruby_configure() { + ${RUBY} -Cext/ffi_c extconf.rb || die +} + +each_ruby_compile() { + emake -Cext/ffi_c V=1 + cp ext/ffi_c/ffi_c.so lib/ || die + + ${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed" +} + +each_ruby_test() { + CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${RUBY} -S rspec spec || die +} + +all_ruby_install() { + all_fakegem_install + + docinto examples + dodoc samples/* +}