diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-07-17 07:06:54 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-07-17 08:20:54 +0200 |
commit | 95039e19ddcb8029810209b2d8ddcf1fda69fe53 (patch) | |
tree | 4b16a9688713e03feec8078deb4d7840151a6f10 /dev-ruby/dep_selector | |
parent | dev-ruby/delayer-deferred: add 2.0.0 (diff) | |
download | gentoo-95039e19ddcb8029810209b2d8ddcf1fda69fe53.tar.gz gentoo-95039e19ddcb8029810209b2d8ddcf1fda69fe53.tar.bz2 gentoo-95039e19ddcb8029810209b2d8ddcf1fda69fe53.zip |
dev-ruby/dep_selector: add 1.0.5
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/dep_selector')
-rw-r--r-- | dev-ruby/dep_selector/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/dep_selector/dep_selector-1.0.5.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/dep_selector/Manifest b/dev-ruby/dep_selector/Manifest index d1df51da59ee..766c2e89e3d1 100644 --- a/dev-ruby/dep_selector/Manifest +++ b/dev-ruby/dep_selector/Manifest @@ -1 +1,2 @@ DIST dep_selector-0.1.1.tar.gz 81472 SHA256 c49ac900a5011628be9031e57fded6948533a36b15569b0e52d4ed9c8b19579b SHA512 08004bb54678983739a1861285d66915f7c7c3921371f5154f4e3ccd31748d1fb05856b6cb0f545975350e0ebdf881ab01b955036bfa19b9738a89cebb552720 WHIRLPOOL 9dee298246e05a5efefd576f1f37b618a7c31048b6ebb863f27694be1649b767335e6622e95a198e9f9d750719fd98f801435bca139ba968a57f0e0e09fe2dc2 +DIST dep_selector-1.0.5.tar.gz 70408 SHA256 166853c5a5d8b5cf1fb8982d3884b68637ae9c8cffb04a0bd823593fbe91e643 SHA512 05035e2e8c5206a5c7a126f9be39385dd800a0f40ceaed0e36afe08afc83259f4a170d112f6720dbb19e5901bc794f914fddf5366ad1200075fa688dee7e05c3 WHIRLPOOL b63551480b36e4c03d91421bcba404ed240d5b3c82cc7fa09573c778ea560342829a7da9e5e5dbaa50844b723d72c1d68409fc6606f9b30ef5aeea69ad4aa73d diff --git a/dev-ruby/dep_selector/dep_selector-1.0.5.ebuild b/dev-ruby/dep_selector/dep_selector-1.0.5.ebuild new file mode 100644 index 000000000000..313c99adf564 --- /dev/null +++ b/dev-ruby/dep_selector/dep_selector-1.0.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="constraint based package dependency resolver" +HOMEPAGE="https://github.com/opscode/dep-selector" +SRC_URI="https://github.com/opscode/dep-selector/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RUBY_S=${P/_/-} + +DEPEND+=" >=dev-libs/gecode-3.5.0 <dev-libs/gecode-4" +RDEPEND+=" >=dev-libs/gecode-3.5.0 <dev-libs/gecode-4" + +ruby_add_rdepend ">=dev-ruby/ffi-1.9" + +all_ruby_prepare() { + # Avoid dependency on vendored libgecode and use system version instead + sed -i -e '27,46 s:^:#:' ext/dep_gecode/extconf.rb || die + sed -i -e '/dep-selector-libgecode/d' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid integration tests for unpackaged solve + rm spec/solve_integration_spec.rb || die +} + +each_ruby_configure() { + ${RUBY} -Cext/dep_gecode extconf.rb || die "extconf.rb failed" +} + +each_ruby_compile() { + emake -Cext/dep_gecode CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" V=1 + cp ext/dep_gecode/dep_gecode$(get_modname) lib/ || die +} |