ruby-xapian-full package
This commit is contained in:
parent
932d99dba9
commit
ce416d07e3
2 changed files with 54 additions and 0 deletions
42
pkgbuild/ruby-xapian-full/PKGBUILD
Normal file
42
pkgbuild/ruby-xapian-full/PKGBUILD
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
|
# Contributor: David Campbell <davekong@archlinux.us>
|
||||||
|
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:
|
12
pkgbuild/ruby-xapian-full/Rakefile.patch
Normal file
12
pkgbuild/ruby-xapian-full/Rakefile.patch
Normal file
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue