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 AB45F138AE9 for ; Thu, 28 Dec 2017 23:00:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7358E0E61; Thu, 28 Dec 2017 23:00:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B8566E0E59 for ; Thu, 28 Dec 2017 23:00:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 62795341301 for ; Thu, 28 Dec 2017 23:00:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA0B0A1A0 for ; Thu, 28 Dec 2017 23:00:28 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1514502017.ac0d571e0dc662f248dde17441a6734c5ec0853a.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/gpgme/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/gpgme/gpgme-2.0.12-r1.ebuild X-VCS-Directories: dev-ruby/gpgme/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: ac0d571e0dc662f248dde17441a6734c5ec0853a X-VCS-Branch: master Date: Thu, 28 Dec 2017 23:00:28 +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: 9bbe840b-1b81-4a28-8f13-169becbf5e29 X-Archives-Hash: e5089496f19d13295fe8d73dd5e831fe commit: ac0d571e0dc662f248dde17441a6734c5ec0853a Author: Robin H. Johnson gentoo org> AuthorDate: Thu Dec 28 00:28:55 2017 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Thu Dec 28 23:00:17 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac0d571e dev-ruby/gpgme: bump for ruby targets Signed-off-by: Robin H. Johnson gentoo.org> Package-Manager: Portage-2.3.16, Repoman-2.3.6 dev-ruby/gpgme/gpgme-2.0.12-r1.ebuild | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/dev-ruby/gpgme/gpgme-2.0.12-r1.ebuild b/dev-ruby/gpgme/gpgme-2.0.12-r1.ebuild new file mode 100644 index 00000000000..4ca047dc74c --- /dev/null +++ b/dev-ruby/gpgme/gpgme-2.0.12-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="NEWS README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-ng ruby-fakegem flag-o-matic + +DESCRIPTION="Ruby language binding for GnuPG Made Easy" +HOMEPAGE="https://github.com/ueno/ruby-gpgme" +SRC_URI="https://github.com/ueno/ruby-gpgme/archive/${PV}.tar.gz -> ruby-${P}.tar.gz" +RUBY_S="ruby-${P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND+=">=app-crypt/gpgme-1.1.3" +RDEPEND+=">=app-crypt/gpgme-1.1.3" + +ruby_add_bdepend "test? ( dev-ruby/mocha:0.14 )" + +all_ruby_prepare() { + sed -i -e '/\(coverall\|bundler\|ruby-debug\|byebug\)/I s:^:#:' \ + -e '3igem "mocha", "~> 0.14"' \ + test/test_helper.rb || die + + # Remove failing tests for now. This package was added without + # running any tests :-( + rm -f test/{ctx,crypto}_test.rb || die + + sed -i -e '/portile/d' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_configure() { + append-flags -fPIC + export RUBY_GPGME_USE_SYSTEM_LIBRARIES=1 + ${RUBY} -C ext "${S}/ext/gpgme/extconf.rb" || die "extconf.rb failed" +} + +each_ruby_compile() { + emake V=1 -C ext archflag="${LDFLAGS}" || die "emake failed" + cp -f "${S}/ext/gpgme_n.so" "${S}/lib" || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die +}