[arch-commits] Commit in ruby-mail/repos/community-testing-any (PKGBUILD PKGBUILD)

Maxime Gauduin alucryd at nymeria.archlinux.org
Sat Jan 25 18:41:58 UTC 2014


    Date: Saturday, January 25, 2014 @ 19:41:58
  Author: alucryd
Revision: 104763

archrelease: copy trunk to community-testing-any

Added:
  ruby-mail/repos/community-testing-any/PKGBUILD
    (from rev 104762, ruby-mail/trunk/PKGBUILD)
Deleted:
  ruby-mail/repos/community-testing-any/PKGBUILD

----------+
 PKGBUILD |   67 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 29 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-25 18:41:47 UTC (rev 104762)
+++ PKGBUILD	2014-01-25 18:41:58 UTC (rev 104763)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at gmail.com>
-# Contributor: Emiliano Vavassori <syntaxerrormmm at gmail.com>
-# Contributor: Alexsandr Pavlov <kidoz at mail.ru>
-
-pkgname=ruby-mail
-pkgver=2.5.4
-pkgrel=3
-pkgdesc='A really Ruby Mail handler'
-arch=('any')
-url='http://github.com/mikel/mail'
-license=('MIT')
-depends=('ruby-mime-types' 'ruby-treetop')
-source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
-noextract=("${pkgname#*-}-${pkgver}.gem")
-sha256sums=('446585c38b062121252688dcc9cc70af1f470822e30db021bb97d185969e257c')
-
-prepare() {
-  gem install --no-{document,user-install} --ignore-dependencies -i . ${pkgname#*-}-${pkgver}.gem
-}
-
-package() {
-  cd gems/${pkgname#*-}-${pkgver}
-
-  local _rubyver="$(ruby --version | sed 's/.* \(.*\..*\..*\)p.*/\1/')"
-
-  install -dm 755 "${pkgdir}"/usr/lib/ruby/{gems/${_rubyver},vendor_ruby}
-  mv lib "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}
-
-# Gem compatibility
-  mv ../../specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/
-
-# License
-  install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
-  install -m 644 {,"${pkgdir}"/usr/share/licenses/${pkgname}/}MIT-LICENSE
-}
-
-# vim: ts=2 sw=2 et:

Copied: ruby-mail/repos/community-testing-any/PKGBUILD (from rev 104762, ruby-mail/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-01-25 18:41:58 UTC (rev 104763)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Emiliano Vavassori <syntaxerrormmm at gmail.com>
+# Contributor: Alexsandr Pavlov <kidoz at mail.ru>
+
+pkgname=ruby-mail
+pkgver=2.5.4
+pkgrel=4
+pkgdesc='A really Ruby Mail handler'
+arch=('any')
+url='http://github.com/mikel/mail'
+license=('MIT')
+depends=('ruby-mime-types' 'ruby-treetop')
+options=('!emptydirs')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('446585c38b062121252688dcc9cc70af1f470822e30db021bb97d185969e257c')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+  gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} ${pkgname#*-}-${pkgver}.gem
+  find "${pkgdir}" -type f -name *.gem -delete
+
+  install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
+  ln -s "${pkgdir}"/${_gemdir}/gems/${pkgname#*-}-${pkgver}/MIT-LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list