summaryrefslogtreecommitdiff
path: root/dev-ruby/libxml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/libxml
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/libxml')
-rw-r--r--dev-ruby/libxml/Manifest7
-rw-r--r--dev-ruby/libxml/libxml-2.8.0-r1.ebuild63
-rw-r--r--dev-ruby/libxml/libxml-2.9.0.ebuild49
-rw-r--r--dev-ruby/libxml/metadata.xml11
4 files changed, 130 insertions, 0 deletions
diff --git a/dev-ruby/libxml/Manifest b/dev-ruby/libxml/Manifest
new file mode 100644
index 000000000000..2c6355d2adac
--- /dev/null
+++ b/dev-ruby/libxml/Manifest
@@ -0,0 +1,7 @@
+DIST libxml-ruby-2.8.0.gem 261120 SHA256 0bd2780afaaf944d38786999d929a4fd37eb30922c404301b86dee94c9c512b6 SHA512 085670e0d343d47085d03d7d95a94498e7be049fbab5e60f1c5f43f9fc41222fe96315de7d5b12b221a3c866d0c178dbfbe2e717a206cce8c4471a2b3ddb9c42 WHIRLPOOL bae7fe3e885b35c58e314cf84ecf0f09abb754e4d41e047b101f20fc2d62f7695e328f8cc07f91d473de87ceb82c2a54d37ea4cb03c421897a5d539605883400
+DIST libxml-ruby-2.9.0.gem 262144 SHA256 e25a6278aaca2376ec0cc9e93a034a25d95af1102590abdbfce786d5c6612ddf SHA512 06ad42ce68c16715fc92a41439c3c27b49fc25b4f8829fac0a27f860d6c3df9a4cb964f1b4677d7587d31c0e5542c4d1c1c25ae3bcfcec889015618d22f6ff3c WHIRLPOOL e656ac449cd893325378b5af1d1108c8b2fa53e79b9000891785ffe5800a067f961c162699d1c6fab585dd8ba475b4b97898ee1ff2d2cf254c10a965504122c8
+EBUILD libxml-2.8.0-r1.ebuild 1937 SHA256 8168de946e0fd012050b8c77a84b8e3cb856c1e8b05abf78adedbeb5bf9ce1df SHA512 847062ac253bb86afe488108a6cadeb031a289cc4436ca3c21926e13c0f722978ffc5eac98088dfed9efa0c2f3dae2abd38e3354bfb9ee79df3efd5f4e54e676 WHIRLPOOL a25eb323b652617608699e834971de1ab2fb81773f4b72483436a5ee50370c341e8f13df26cca7ba5753295c92883a8eeea3cfb2c04a84262536c92d27a886d8
+EBUILD libxml-2.9.0.ebuild 1388 SHA256 2502cb164a9564f1ea841946514fe8f8b90b46deea5d7a922742ee508305a2fa SHA512 1144cbcc5cccb7c15782fabae49599a8fff18875c438a09f32226b07b6e27e9197909ebe0f09ded45aba003f3c6c2e8abe0fe557ac88eeba51ea1a0f71ca0ef0 WHIRLPOOL dff1089e4a8b662ac18363781d0854fef1d57900e10055b38290966a4a4e46e4410474b5e74a45a499ac99b8d9f75c164649782bcf435d3b63d23d3e69f5a227
+MISC ChangeLog 3044 SHA256 7a74cd10b526336a60136fc914f4170ecc65c7e84bbea5af43658476a6a9ebcc SHA512 19e4e0a1b76dc56c922f4383f0d424ed624757e1f9ee37833f7198071bb095fa718cd6cf4aad09652824278ab317a60fac778c6b41a332fa322716c7b72ea575 WHIRLPOOL a5c63d5507d50f1cc2f6de006a23af0ee85427ee5b96baa1bad911a664a74950271c57e0246db3235bf2fbebf633f0ed74d043f6e0de72dfac504d6925b2cb8e
+MISC ChangeLog-2015 13689 SHA256 d4174bd2ff2013deb72ce8a319b123a6248208cae05bb2639ffe08f5af0af8a5 SHA512 09f55e68ee6e2214fa4289c4f2fc5de9d5f13be63a402d5ef9a3e15b42ae7fbb7e9b47ddc946eff6affe80c664a54330c9eb76c7310ecf325867aa358830e510 WHIRLPOOL 6dcc49d80dc6c8c072df8571d92bf653cd7d1c6416a2418153f57654ff24386d257a2eadc7e7b2bbbb04460b4029cb0d9470de97bc738c7d95e47798eb82f895
+MISC metadata.xml 343 SHA256 eec5821adb779214fac85196a0bf39173d88aaca17330d200d043c417584a17b SHA512 fd2936253ab0f8f0e35b3c8e3b6a145eda17d8bf82badeaf78e20e1622c0aca323240227e4159991d6436c7473f96bf9960ce39a97513ff9610c13d9f5fda13e WHIRLPOOL 32fc84b90347cfc1b664b51490826f774bcdee50b4b54bf7136935d20b8ae2c69bd9a5de77090889118724ce5bedd4f8692e2b40dc391f57cc11e339d08af04c
diff --git a/dev-ruby/libxml/libxml-2.8.0-r1.ebuild b/dev-ruby/libxml/libxml-2.8.0-r1.ebuild
new file mode 100644
index 000000000000..cace17bd2a36
--- /dev/null
+++ b/dev-ruby/libxml/libxml-2.8.0-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ruby22 → test suite hangs
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_NAME="libxml-ruby"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc HISTORY"
+
+RUBY_FAKEGEM_TASK_TEST="none"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby libxml with a user friendly API, akin to REXML"
+HOMEPAGE="https://github.com/xml4r/libxml-ruby"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="${RDEPEND} dev-libs/libxml2"
+DEPEND="${DEPEND} dev-libs/libxml2"
+
+ruby_add_bdepend "doc? ( dev-ruby/rdoc )"
+
+all_ruby_prepare() {
+ # Remove grancher tasks only needed for publishing the website
+ sed -i -e '/grancher/d' -e '/Grancher/,$d' Rakefile || die
+
+ # We don't have the hanna template available.
+ sed -i -e 's/hanna/rake/' Rakefile || die
+
+ # Remove rake-compiler bits since we don't use it
+ sed -i -e '/extensiontask/d' -e '/ExtensionTask/,/end/d' -e '/GemPackageTask/,/end/d' Rakefile || die
+
+ # replace ulimit -n output as it does not work with Ruby 1.9
+ sed -i -e 's:`ulimit -n`:"'`ulimit -n`'":' test/tc_parser.rb || die
+
+ # Avoid test failures with libxml2-2.9.2 since that is the oldest
+ # secure version available: https://github.com/xml4r/libxml-ruby/issues/103
+ sed -i -e '/tc_html_parser_context/d' test/test_suite.rb || die
+ sed -i -e '/test_bad_xml/,/^ end/ s:^:#:' test/tc_parser.rb || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -C ext/libxml extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -C ext/libxml V=1
+ cp ext/libxml/libxml_ruby.so lib/ || die
+}
+
+each_ruby_test() {
+ # The test suite needs to load its files in alphabetical order but
+ # this is not guaranteed. See bug 370501.
+ ${RUBY} -Ilib -r ./test/test_helper.rb test/test_suite.rb || die
+}
diff --git a/dev-ruby/libxml/libxml-2.9.0.ebuild b/dev-ruby/libxml/libxml-2.9.0.ebuild
new file mode 100644
index 000000000000..cec6559a556e
--- /dev/null
+++ b/dev-ruby/libxml/libxml-2.9.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_NAME="libxml-ruby"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc HISTORY"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby libxml with a user friendly API, akin to REXML"
+HOMEPAGE="https://github.com/xml4r/libxml-ruby"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ppc ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="${RDEPEND} dev-libs/libxml2"
+DEPEND="${DEPEND} dev-libs/libxml2"
+
+ruby_add_bdepend "doc? ( dev-ruby/rdoc )"
+
+all_ruby_prepare() {
+ # Remove grancher tasks only needed for publishing the website
+ sed -i -e '/grancher/d' -e '/Grancher/,$d' Rakefile || die
+
+ # We don't have the hanna template available.
+ sed -i -e 's/hanna/rake/' Rakefile || die
+
+ # Remove rake-compiler bits since we don't use it
+ sed -i -e '/extensiontask/d' -e '/ExtensionTask/,/end/d' -e '/GemPackageTask/,/end/d' Rakefile || die
+
+ # Avoid test that fails intermittently
+ sed -i -e '/test_get_handler/,/^ end/ s:^:#:' test/tc_error.rb || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -C ext/libxml extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -C ext/libxml V=1
+ cp ext/libxml/libxml_ruby.so lib/ || die
+}
diff --git a/dev-ruby/libxml/metadata.xml b/dev-ruby/libxml/metadata.xml
new file mode 100644
index 000000000000..53271e9caf26
--- /dev/null
+++ b/dev-ruby/libxml/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">xml4r/libxml-ruby</remote-id>
+ </upstream>
+</pkgmetadata>