aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-nokogiri
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-03-18 16:31:36 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-03-18 16:31:36 +0100
commitea6a7e16ad7be1532875bd821e60857f33905d66 (patch)
tree4e4d7b4678911407c1f77cac8742cd95a671f578 /community/ruby-nokogiri
parent840ac4ae3b54497f6839ac673b060a055fc5acc8 (diff)
downloadaports-ea6a7e16ad7be1532875bd821e60857f33905d66.tar.bz2
aports-ea6a7e16ad7be1532875bd821e60857f33905d66.tar.xz
redmine: move with deps to community
Diffstat (limited to 'community/ruby-nokogiri')
-rw-r--r--community/ruby-nokogiri/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/ruby-nokogiri/APKBUILD b/community/ruby-nokogiri/APKBUILD
new file mode 100644
index 0000000000..19b67d9416
--- /dev/null
+++ b/community/ruby-nokogiri/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+_gemname=nokogiri
+pkgname=ruby-$_gemname
+pkgver=1.6.7.2
+pkgrel=0
+pkgdesc="An HTML, XML, SAX, and Reader parser"
+url="http://nokogiri.org/"
+arch="all"
+license="MIT"
+depends="ruby ruby-mini_portile2"
+depends_dev=""
+makedepends="ruby-dev libxml2-dev libxslt-dev"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+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 -- --use-system-libraries || \
+ return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+
+ cd "$pkgdir"
+ for i in usr/lib/ruby/gems/*/bin/*; do
+ if [ -e "$i" ]; then
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s /$i "$pkgdir"/usr/bin/
+ fi
+ done
+}
+
+md5sums="3e2169ebd67863a8a992289e2a887366 nokogiri-1.6.7.2.gem"
+sha256sums="fb6afc0faec72b82eeccc84b5d11211aa6c4a81898a433b499ca7a60fcad4b87 nokogiri-1.6.7.2.gem"
+sha512sums="27f72763f4f572b9a7042b48bd3a7a7516773eda128be603b8316e8ecaef42028f3d3a190947011cc6973fa4a43265a56f4b563bf28a8b2739b470cc19cee6cd nokogiri-1.6.7.2.gem"