summaryrefslogtreecommitdiffstats
path: root/testing/ruby-nokogiri
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-03-04 13:02:05 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-03-11 14:07:23 +0000
commit22cd187adbab8d7fe1dfa7ebb7b7c9e12ebbe087 (patch)
tree0c2209c0954f544ac278b9e501158299991b29d7 /testing/ruby-nokogiri
parent5c6c8a64c8a0a413062e231c3b8602aa1efec6d8 (diff)
downloadaports-22cd187adbab8d7fe1dfa7ebb7b7c9e12ebbe087.tar.bz2
aports-22cd187adbab8d7fe1dfa7ebb7b7c9e12ebbe087.tar.xz
testing/ruby-nokogiri: new aport
Nokogiri is an HTML, XML, SAX, and Reader parser. Among Nokogiri†s many features is the ability to search documents via XPath or CSS3 selectors. Website: http://nokogiri.org/
Diffstat (limited to 'testing/ruby-nokogiri')
-rw-r--r--testing/ruby-nokogiri/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/ruby-nokogiri/APKBUILD b/testing/ruby-nokogiri/APKBUILD
new file mode 100644
index 000000000..9a3f8f7df
--- /dev/null
+++ b/testing/ruby-nokogiri/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+_gemname=nokogiri
+pkgname=ruby-$_gemname
+pkgver=1.5.6
+pkgrel=0
+pkgdesc="An HTML, XML, SAX, and Reader parser"
+url="http://nokogiri.org/"
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="ruby-gems ruby-dev libxml2-dev libxslt-dev libiconv-dev"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+_builddir="$srcdir"/$_gemname-$pkgver
+build() {
+ return 0
+}
+
+package() {
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
+ mkdir -p "$pkgdir" || return 1
+
+ gem install --local --install-dir "$pkgdir"/$_gemdir \
+ --ignore-dependencies --verbose --no-rdoc --no-ri \
+ "$srcdir"/$_gemname-$pkgver.gem || return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+}
+
+md5sums="5ccf492f60fd9edc4f86aef3bb97145c nokogiri-1.5.6.gem"
+sha256sums="28ab99eeba2270b336f8f9612e5b4aefdc673a7319ad874bf4c6092226826588 nokogiri-1.5.6.gem"
+sha512sums="14f4f23732d2f759379fb4cef9afaad790d9553ca7d171d405a3cbba86c458e9853ae20ba622e00327a6d89c0976e17d60f6406c34cf2c15a1effeac66a201d6 nokogiri-1.5.6.gem"