From ce416d07e38b8f82fb87165b0650242531700d05 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 4 May 2011 15:48:49 +0200 Subject: [PATCH] ruby-xapian-full package --- pkgbuild/ruby-xapian-full/PKGBUILD | 42 ++++++++++++++++++++++++ pkgbuild/ruby-xapian-full/Rakefile.patch | 12 +++++++ 2 files changed, 54 insertions(+) create mode 100644 pkgbuild/ruby-xapian-full/PKGBUILD create mode 100644 pkgbuild/ruby-xapian-full/Rakefile.patch diff --git a/pkgbuild/ruby-xapian-full/PKGBUILD b/pkgbuild/ruby-xapian-full/PKGBUILD new file mode 100644 index 0000000..2d5f53b --- /dev/null +++ b/pkgbuild/ruby-xapian-full/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Cedric Girard +# Contributor: David Campbell +pkgname=ruby-xapian-full +pkgver=1.2.3 +pkgrel=2 +pkgdesc="Xapian bindings for Ruby without dependency on system Xapian library" +arch=('i686' 'x86_64') +url="http://xapian.org" +license=('GPL') +depends=('ruby' 'util-linux') +makedepends=('rubygems') +provides=('xapian-ruby-bindings') +conflicts=('xapian-ruby-bindings') +source=("http://gems.rubyforge.org/gems/xapian-full-${pkgver}.gem" "Rakefile.patch") +noextract=("xapian-full-${pkgver}.gem") +md5sums=('772947e9b6a03f37a00c361ac7492ad6' + '3c88149fb08d46bcd1e49148afdd1384') +options=('!makeflags' '!libtool') + +build() { + cd $srcdir + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + + #patch Rakefile + echo "Patching Rakefile ..." + gem unpack xapian-full-${pkgver}.gem + rm xapian-full-${pkgver}.gem + cd xapian-full-${pkgver} + patch -p1 < ../Rakefile.patch + + echo "Building gem..." + gem build xapian-full.gemspec + mv xapian-full-${pkgver}.gem .. + cd .. + rm -rf xapian-full-${pkgver} + + echo "Installing gem..." + gem install --ignore-dependencies --verbose -i "$pkgdir$_gemdir" xapian-full-$pkgver.gem \ + -n "$pkgdir/usr/bin" +} + +# vim:set ts=2 sw=2 et: diff --git a/pkgbuild/ruby-xapian-full/Rakefile.patch b/pkgbuild/ruby-xapian-full/Rakefile.patch new file mode 100644 index 0000000..edd5580 --- /dev/null +++ b/pkgbuild/ruby-xapian-full/Rakefile.patch @@ -0,0 +1,12 @@ +diff -Naur xapian-full-1.2.3/Rakefile xapian-full-1.2.3.patched//Rakefile +--- xapian-full-1.2.3/Rakefile 2011-05-04 14:45:59.310439173 +0200 ++++ xapian-full-1.2.3.patched//Rakefile 2011-05-04 14:46:45.980156801 +0200 +@@ -17,7 +17,7 @@ + end + + prefix = Dir.pwd +- ENV['LDFLAGS'] = "-R#{prefix}/lib" ++ ENV['LDFLAGS'] = "-L#{prefix}/lib" + + system! "mkdir -p lib" +