summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/pkg-config/Manifest1
-rw-r--r--dev-ruby/pkg-config/pkg-config-1.1.7.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/pkg-config/Manifest b/dev-ruby/pkg-config/Manifest
index 7cdc79a05531..df29fdcda502 100644
--- a/dev-ruby/pkg-config/Manifest
+++ b/dev-ruby/pkg-config/Manifest
@@ -1 +1,2 @@
DIST pkg-config-1.1.6.gem 19456 SHA256 f89c285286d9bb1607022225d042d8ff96d41d2755d4de80611d52f3ab0f7626 SHA512 089aec86cf008d1dca3fa6ee6604ef5860cd404671e23b539eb82a4654255eecddd142d0249e0c89dad7a467a5252ed3afea665cda8bb4012ae5ec8e24d2d825 WHIRLPOOL 619d85ad9e7ce5adaf4731abebbbe2e089571defac38f147c528e1f0a99d0f5345e0ecb7b0f27c999353dc5b4e22df0771a25403a6c31d1cb550664c3fbcfef8
+DIST pkg-config-1.1.7.gem 19456 SHA256 1f3cd171432f4634805ebf7cd187d1d728d732bfead3837c349f2c502d8e9252 SHA512 9f515874d3edabdfff5f4c8d624bbc91e9c5032e79c241412cd073f0a049e35a2e2a660d5503eaae9640286d74cb98510bbbb34f757c702e220f728fba1c2337 WHIRLPOOL b1eea580d1db95bd651004752f913c7ce5f821ebaa0a1742609bd2e07738c2d125b36f6d5a03dd8b6c34b126246163ee1bd59ef19143df8a0b2f01bb7b260f9b
diff --git a/dev-ruby/pkg-config/pkg-config-1.1.7.ebuild b/dev-ruby/pkg-config/pkg-config-1.1.7.ebuild
new file mode 100644
index 000000000000..93633a103fd7
--- /dev/null
+++ b/dev-ruby/pkg-config/pkg-config-1.1.7.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_EXTRADOC="README.rdoc NEWS"
+
+RUBY_FAKEGEM_TASK_DOC=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="A pkg-config implementation by Ruby"
+HOMEPAGE="https://github.com/rcairo/pkg-config"
+LICENSE="|| ( LGPL-2 LGPL-2.1 LGPL-3 )"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+SLOT="0"
+IUSE="test"
+
+ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.5.1-r1 )"
+# this is used for testing
+DEPEND+=" test? ( x11-libs/cairo )"
+
+all_ruby_prepare() {
+# drop failing tests
+ sed -i -e "/test_cflags/,/end/d"\
+ -e "/test_cflags_only_I/,/end/d" test/test_pkg_config.rb || die
+}
+
+each_ruby_test() {
+ ruby-ng_testrb-2 -Ilib test/test_${PN/-/_}.rb || die
+}