[arch-commits] Commit in ruby-term-ansicolor/repos/community-testing-any (2 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Sat Jan 25 18:44:13 UTC 2014


    Date: Saturday, January 25, 2014 @ 19:44:13
  Author: alucryd
Revision: 104765

archrelease: copy trunk to community-testing-any

Added:
  ruby-term-ansicolor/repos/community-testing-any/PKGBUILD
    (from rev 104764, ruby-term-ansicolor/trunk/PKGBUILD)
Deleted:
  ruby-term-ansicolor/repos/community-testing-any/PKGBUILD

----------+
 PKGBUILD |   70 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 32 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-25 18:44:02 UTC (rev 104764)
+++ PKGBUILD	2014-01-25 18:44:13 UTC (rev 104765)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at gmail.com>
-# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
-# Contributor: Hilton Medeiros <medeiros.hilton at gmail.com>
-
-pkgname=ruby-term-ansicolor
-pkgver=1.2.2
-pkgrel=4
-pkgdesc='A ruby library that colors strings using ANSI escape sequences'
-arch=('any')
-url='https://rubygems.org/gems/term-ansicolor'
-license=('GPL2')
-depends=('ruby-tins')
-source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
-noextract=("${pkgname#*-}-${pkgver}.gem")
-sha256sums=('b9534713ba4c2a48f2291fadf9ce2edae9f2dc96157ee812fe8fe16a70c081ac')
-
-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 bin "${pkgdir}"/usr/
-  mv lib "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}
-
-# Gem compatibility
-  mv ../../specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/
-
-# Prevent conflict with colordiff
-  rm "${pkgdir}"/usr/bin/cdiff
-}
-
-# vim: ts=2 sw=2 et:

Copied: ruby-term-ansicolor/repos/community-testing-any/PKGBUILD (from rev 104764, ruby-term-ansicolor/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-01-25 18:44:13 UTC (rev 104765)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
+# Contributor: Hilton Medeiros <medeiros.hilton at gmail.com>
+
+pkgname=ruby-term-ansicolor
+pkgver=1.2.2
+pkgrel=5
+pkgdesc='A ruby library that colors strings using ANSI escape sequences'
+arch=('any')
+url='https://rubygems.org/gems/term-ansicolor'
+license=('GPL2')
+depends=('ruby-tins')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('b9534713ba4c2a48f2291fadf9ce2edae9f2dc96157ee812fe8fe16a70c081ac')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+  gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} -n "${pkgdir}"/usr/bin ${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}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+# Prevent conflict with colordiff
+  rm "${pkgdir}"/usr/bin/cdiff
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list