mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 11:11:08 +02:00
nokogiri: forked, upstream bug #570048
This commit is contained in:
parent
5769db5843
commit
27a14d4983
9 changed files with 152 additions and 16 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST mini_portile-0.5.1.gem 11264 SHA256 efa9058711e1d382b29fd413c728dc2b49c8e6492b558677a17faadf20b54e31 SHA512 b45408c24b16207b67e1a716a81eb3aa4fe610b2da2c3b6c6b12397f39648dc161154c267df87348524e1977a84c92063891a9791f3e8d11c96849143fe066bd WHIRLPOOL 0de1336c25e2225a902deb696828ffa61a67e87a6114a6bac6d469c9781f6bc71651968009d3119d01ceef74164a2ac6ef2ae6189d135ac609d663fbba603743
|
||||
DIST mini_portile-0.5.3.gem 12800 SHA256 4826194ebfee89f41a8592ec88bfb05a3f26de8b460164864165105a3461879d SHA512 49002b5d60bd7c000766043ce35acf6cd219a86b13b9ed1da7304311ca48e4f2867a923b1cec2d62ddeb364b77137371e8f03287edcce5379fb6055d9cf72d9b WHIRLPOOL da7a6500e885d103471a42411e6a0dbf646873c4c094efc7248128b4822daca7929e5632a2f1645afd529e1015ea9ecbb40bb4fae4a53b220e4e6f462230c717
|
||||
DIST mini_portile-0.6.2.gem 13824 SHA256 5c60cd85db3df6b279e9a6807954c596dc0ced359a10fcd9b49969a6aa8d7d40 SHA512 fd6ce49b5db291e8216f001e4a3bd14d69a920d6d457de7566f7526abf616dad3ec86d4951ab4b881ffd185b4d4e02e64eb2ae494cd9a1275e342b78afa4e2bc WHIRLPOOL da19a70fac69930ed277f94e4ff02b214f26ec2f31af4c8683fad0c14d8429acee8d54291ad7b71a41573ca1afd6b23143106ff6d5c81097307927e1b8ecd9cf
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
USE_RUBY="ruby18 ruby19"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="Simplified way to compile against dependency libraries without messing up your system"
|
||||
HOMEPAGE="https://rubygems.org/gems/mini_portile"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
15
dev-ruby/mini_portile/mini_portile-0.5.3.ebuild
Normal file
15
dev-ruby/mini_portile/mini_portile-0.5.3.ebuild
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
USE_RUBY="ruby20 ruby21"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="Simplified way to compile against dependency libraries"
|
||||
HOMEPAGE="https://rubygems.org/gems/mini_portile"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
15
dev-ruby/mini_portile/mini_portile-0.6.2.ebuild
Normal file
15
dev-ruby/mini_portile/mini_portile-0.6.2.ebuild
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="Simplified way to compile against dependency libraries"
|
||||
HOMEPAGE="https://rubygems.org/gems/mini_portile"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
1
dev-ruby/mini_portile2/Manifest
Normal file
1
dev-ruby/mini_portile2/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST mini_portile2-2.0.0.gem 18432 SHA256 147d9f63e3dceb4da9e2036a93b9a6d45b12668c55abe0696f70925aeccacd14 SHA512 70f4f6ee33b4d2265736a2bdfcb885dff59e967018450f7d3eb6b73aa983db7636036f8610a5734697d01db7db9173278063ae42942459eba460ad27252720ae WHIRLPOOL 8025ab3a8aebf1c119744f41919267dd7254541c3620ce3bad0c476f0d8cc6196d0a95644c8d4e23aad28a3801eaf8e958827f7726cb4f33394cf822a780f439
|
||||
15
dev-ruby/mini_portile2/mini_portile2-2.0.0.ebuild
Normal file
15
dev-ruby/mini_portile2/mini_portile2-2.0.0.ebuild
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="Simplistic port-like solution for developers"
|
||||
HOMEPAGE="https://rubygems.org/gems/mini_portile2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
1
dev-ruby/nokogiri/Manifest
Normal file
1
dev-ruby/nokogiri/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST nokogiri-1.6.6.2-git.tgz 2258820 SHA256 32358b52936f1e2de0136130d3f43ea7e8d6c6f417265e21dc7e7d8572aff5b6 SHA512 6335c8e584c6b13a5cc9353b348b6df65f3e84392628b3ff458279bb03253e0f773f4557bac701872842761b1656a23d520a8446b83fcbc30efa29109fb2fec5 WHIRLPOOL c488a97872c560be4f366a1fb6cc8da08e025af3da19cd5083fb6bc9ce31127a021bd8ebb4a203172a799dfe5f29cb8c96da86e6165fe50e10a3e73f9e899632
|
||||
8
dev-ruby/nokogiri/metadata.xml
Normal file
8
dev-ruby/nokogiri/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>ruby</herd>
|
||||
<upstream>
|
||||
<remote-id type="github">sparklemotion/nokogiri</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
95
dev-ruby/nokogiri/nokogiri-1.6.6.2-r1.ebuild
Normal file
95
dev-ruby/nokogiri/nokogiri-1.6.6.2-r1.ebuild
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc CHANGELOG.ja.rdoc README.rdoc README.ja.rdoc ROADMAP.md STANDARD_RESPONSES.md"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="ext"
|
||||
|
||||
inherit ruby-fakegem eutils multilib
|
||||
|
||||
DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
|
||||
HOMEPAGE="http://nokogiri.org/"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
>=dev-libs/libxml2-2.9.2:=
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
DEPEND="${DEPEND}
|
||||
>=dev-libs/libxml2-2.9.2
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
|
||||
ruby_add_bdepend "
|
||||
=dev-ruby/mini_portile-0.6* "
|
||||
|
||||
# The tests require _minitest_, not the virtual; what is shipped with
|
||||
# Ruby 1.9 is *not* enough, unfortunately
|
||||
ruby_add_bdepend "
|
||||
dev-ruby/hoe
|
||||
dev-ruby/rake-compiler
|
||||
dev-ruby/rexical
|
||||
dev-ruby/rdoc
|
||||
dev-ruby/racc
|
||||
test? ( dev-ruby/minitest )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i \
|
||||
-e '/tasks\/cross_compile/s:^:#:' \
|
||||
-e '/:test.*prerequisites/s:^:#:' \
|
||||
-e '/license/ s:^:#:' \
|
||||
Rakefile || die
|
||||
# Remove the cross compilation options since they interfere with
|
||||
# native building.
|
||||
sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
|
||||
sed -i -e '/cross_config_options/d' Rakefile || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
|
||||
${RUBY} -Cext/${PN} extconf.rb \
|
||||
--with-zlib-include="${EPREFIX}"/usr/include \
|
||||
--with-zlib-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-iconv-include="${EPREFIX}"/usr/include \
|
||||
--with-iconv-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
|
||||
--with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-xslt-dir="${EPREFIX}"/usr \
|
||||
--with-iconvlib=iconv \
|
||||
|| die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
|
||||
fi
|
||||
|
||||
if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
|
||||
fi
|
||||
|
||||
emake -Cext/${PN} \
|
||||
V=1 \
|
||||
CFLAGS="${CFLAGS} -fPIC" \
|
||||
archflag="${LDFLAGS}" || die "make extension failed"
|
||||
cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
# Clean up "ext" directory before installing it. nokogumbo expects
|
||||
# the header files and shared object to be in ext.
|
||||
rm -rf ext/java ext/nokogiri/*.o ext/nokogiri/{mkmf.log,Makefile} || die
|
||||
|
||||
each_fakegem_install
|
||||
}
|
||||
Loading…
Reference in a new issue