From 4650985dd0e898b82e0d2ec225931297d4fadccf Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 31 Jan 2018 20:30:04 +0000 Subject: gentoo resync : 31.01.2018 --- dev-ruby/nokogiri/Manifest | 2 + dev-ruby/nokogiri/nokogiri-1.8.2.ebuild | 93 +++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 dev-ruby/nokogiri/nokogiri-1.8.2.ebuild (limited to 'dev-ruby/nokogiri') diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest index 35ccba50f6bd..385e30966fc7 100644 --- a/dev-ruby/nokogiri/Manifest +++ b/dev-ruby/nokogiri/Manifest @@ -1,7 +1,9 @@ DIST nokogiri-1.6.8.1-git.tgz 5708322 BLAKE2B 54a97ac8a4bc964f9ad2a1c2eabf23864d1930e45148fb9f2bfa6edddc19670acf1066f12d01cba5654489dcd84b3021c66f942bb1fd51aa9164a2cf9053f5cd SHA512 a4546917e5979810ad4fe0f693f11f00fc719379fecefa68e36e512b128db1de083add4e80dfe3fa0546294ec68aa0f3f890575812b851e884bcbf2165f944d7 DIST nokogiri-1.7.1-git.tgz 5712371 BLAKE2B cd90c8a48a25a81f65a485ddd6a1df6667f49b2d4242c71750c76ae3d41f439f549a82ae72d87dd3f8022fca9fa917efc91ad3f097f07783666a3712c72ee241 SHA512 82a10eff835d562a215f8a38e660f43f5d05f54fae6c6ec21cb5e4797b747be6a8eeb2e42f3c2b5710294073be8d1a987d881f7845526f0ea3ca52a0feb508d8 DIST nokogiri-1.8.1-git.tgz 5747155 BLAKE2B 40eaa7506f646e47caced25e87c125f2650d69e7194491061f734de9d4b58ee3efcab202e528c8d416683bf1642b0f1e7cbeb7268e1fa32549ae2a427d55227d SHA512 fbd5e9c3edb0f7099ed7923ccb8922e778859ee1fb226c756f515f69c5f16cc4103644d4a569e16aa05374c6e94c691572255ea82af0002f95879ed396ccdc4a +DIST nokogiri-1.8.2-git.tgz 5749541 BLAKE2B bb3baa299fd27caf43890a752f93cfc1aafd5897f19783cbc6732ce2924bf9c86639ccabad9f26506cf228f5c179afae4cde57150769780c30d9dfc3403359b0 SHA512 5f34f8a055844cd034682b11e4408fb12b60640e52ea64886a13cb5504d94904eace2a85d5047b21f946f1a296ee562ab3677791d53093123ac136062167294d EBUILD nokogiri-1.6.8.1.ebuild 2690 BLAKE2B 609321fba0b149ccfc7621b4f74dc6d3b79501a79efd94975a2358a0fbc6f5fc7e89bf5920d869e993df2deb5c71abfe883345da8d3de8e66422b7a1aaddd887 SHA512 8f10a3e1b62784972741eb0fd698dbc7acda18db7781245d2077b35906f993319ee73e88d82292c8aac783ace059546d2224853925711bcc3aa6975e7862a173 EBUILD nokogiri-1.7.1.ebuild 2701 BLAKE2B ac863081591f2cb0dc7ac72768f0fc6c72b2d435b72cae8007b620f19810c7b8e4734abca9468f2236d3605950699eba44465269dfe6bb1591d62dbc934ef2c2 SHA512 11c721ec942307bf29d810abe0b3c346ff3c693c01df7f082ac87d68cf02a5d1216ba443e6e4b79994249e88514f7557d2c3be612bfe71ae49377f0624a6ee3d EBUILD nokogiri-1.8.1.ebuild 2721 BLAKE2B 6967028494aa593932e0bf0a500788416733f9de6bb29b5f9cf103bec2407f6cfc3245b90b9c7e75295f83dd5045ac4c4bf99b470da9e0f80a5c6982c282f255 SHA512 9a5e240d819b2f8eb82483811402f7c353f86789767d3b61bad529fa7d8b243d2eba2fa38aa3467abf6ec98dbe9335a261e009347f282b966890eb2ad5c7b920 +EBUILD nokogiri-1.8.2.ebuild 2727 BLAKE2B e5e4d985f06323220342e4de9973455cc073d517cfa8cac071d7574dd1097c5cb9d402e8754a3d9bf53618892624d103cbf95950c4b653acd24503bd3e4858c7 SHA512 bfc1af5762427d5c4b850be8eff1b7a398480e0730226c07da92ffc00d1f6e692199085839696e4bd224bffacc0e5fb4d0e4970039b54763d7c8534f4ceadc42 MISC metadata.xml 348 BLAKE2B 343ce4d884b8ae636991396c8d2eb1c59bec6db00204eec79bc070ce4b61505b1290ee393e2311e2fd3976e66993c9ba51878767c0d28ff8767786039b97fd7c SHA512 94d5836e5bca783420a76f15d70e3fd29515bc7b9152410d11ba0a01d778530e0d87c4954d118313f8afc340260a12157748db94342b4f12fc5e2756c1f2ff34 diff --git a/dev-ruby/nokogiri/nokogiri-1.8.2.ebuild b/dev-ruby/nokogiri/nokogiri-1.8.2.ebuild new file mode 100644 index 000000000000..1d1eaa831b04 --- /dev/null +++ b/dev-ruby/nokogiri/nokogiri-1.8.2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md 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 ~arm64 ~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.7:= + >=dev-libs/libxslt-1.1.30 + virtual/libiconv" +DEPEND="${DEPEND} + >=dev-libs/libxml2-2.9.7 + >=dev-libs/libxslt-1.1.30 + virtual/libiconv" + +ruby_add_bdepend " + dev-ruby/hoe + >=dev-ruby/pkg-config-1.1.7 + 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_test() { + ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || 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 +} -- cgit v1.2.3