[arch-commits] Commit in ruby2.3/repos (4 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Jan 15 22:32:12 UTC 2017


    Date: Sunday, January 15, 2017 @ 22:32:12
  Author: svenstaro
Revision: 207514

archrelease: copy trunk to community-i686, community-x86_64

Added:
  ruby2.3/repos/community-i686/
  ruby2.3/repos/community-i686/PKGBUILD
    (from rev 207513, ruby2.3/trunk/PKGBUILD)
  ruby2.3/repos/community-x86_64/
  ruby2.3/repos/community-x86_64/PKGBUILD
    (from rev 207513, ruby2.3/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   64 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   64 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

Copied: ruby2.3/repos/community-i686/PKGBUILD (from rev 207513, ruby2.3/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-01-15 22:32:12 UTC (rev 207514)
@@ -0,0 +1,64 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Sergey Shatunov <me at prok.pw>
+# Contributor: Jonne Haß <me at jhass.eu>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: John Proctor <jproctor at prium.net>
+# Contributor: Jeramy Rutley <jrutley at gmail.com>
+
+_rubyver=2.3
+pkgname=ruby2.3
+pkgver=${_rubyver}.3
+pkgdesc='An object-oriented language for quick and easy programming'
+pkgrel=1
+arch=(i686 x86_64)
+url='http://www.ruby-lang.org/en/'
+license=(BSD custom)
+depends=(gdbm openssl libffi libyaml gmp zlib)
+optdepends=('tk: for Ruby/TK')
+makedepends=(gdbm openssl libffi doxygen graphviz libyaml ttf-dejavu tk)
+options=(!emptydirs)
+source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz)
+sha256sums=('1a4fa8c2885734ba37b97ffdb4a19b8fba0e8982606db02d936e65bac07419dc')
+
+build() {
+  cd ruby-${pkgver}
+
+  PKG_CONFIG=/usr/bin/pkg-config ./configure \
+    --prefix=/opt/ruby${_rubyver} \
+    --program-suffix=-${_rubyver} \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --sharedstatedir=/var/lib \
+    --libexecdir=/usr/lib/ruby \
+    --enable-shared \
+    --disable-rpath \
+    --with-dbm-type=gdbm_compat
+
+  make ruby
+}
+
+check() {
+  cd ruby-${pkgver}
+
+  make test
+}
+
+package() {
+  cd ruby-${pkgver}
+
+  make DESTDIR="${pkgdir}" install-nodoc
+
+  install -dm755 $pkgdir/usr/bin
+  install -dm755 $pkgdir/usr/lib
+
+  for i in erb irb rdoc ri ruby testrb rake gem; do
+    ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/usr/bin/$i-${_rubyver}
+    ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/opt/$pkgname/bin/$i
+  done
+
+  ln -s /opt/$pkgname/lib/libruby.so.${_rubyver} $pkgdir/usr/lib/libruby.so.${_rubyver}
+
+  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+  install -D -m644 BSDL "${pkgdir}/usr/share/licenses/$pkgname/BSDL"
+}

Copied: ruby2.3/repos/community-x86_64/PKGBUILD (from rev 207513, ruby2.3/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-01-15 22:32:12 UTC (rev 207514)
@@ -0,0 +1,64 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Sergey Shatunov <me at prok.pw>
+# Contributor: Jonne Haß <me at jhass.eu>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: John Proctor <jproctor at prium.net>
+# Contributor: Jeramy Rutley <jrutley at gmail.com>
+
+_rubyver=2.3
+pkgname=ruby2.3
+pkgver=${_rubyver}.3
+pkgdesc='An object-oriented language for quick and easy programming'
+pkgrel=1
+arch=(i686 x86_64)
+url='http://www.ruby-lang.org/en/'
+license=(BSD custom)
+depends=(gdbm openssl libffi libyaml gmp zlib)
+optdepends=('tk: for Ruby/TK')
+makedepends=(gdbm openssl libffi doxygen graphviz libyaml ttf-dejavu tk)
+options=(!emptydirs)
+source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz)
+sha256sums=('1a4fa8c2885734ba37b97ffdb4a19b8fba0e8982606db02d936e65bac07419dc')
+
+build() {
+  cd ruby-${pkgver}
+
+  PKG_CONFIG=/usr/bin/pkg-config ./configure \
+    --prefix=/opt/ruby${_rubyver} \
+    --program-suffix=-${_rubyver} \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --sharedstatedir=/var/lib \
+    --libexecdir=/usr/lib/ruby \
+    --enable-shared \
+    --disable-rpath \
+    --with-dbm-type=gdbm_compat
+
+  make ruby
+}
+
+check() {
+  cd ruby-${pkgver}
+
+  make test
+}
+
+package() {
+  cd ruby-${pkgver}
+
+  make DESTDIR="${pkgdir}" install-nodoc
+
+  install -dm755 $pkgdir/usr/bin
+  install -dm755 $pkgdir/usr/lib
+
+  for i in erb irb rdoc ri ruby testrb rake gem; do
+    ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/usr/bin/$i-${_rubyver}
+    ln -s /opt/$pkgname/bin/$i-${_rubyver} $pkgdir/opt/$pkgname/bin/$i
+  done
+
+  ln -s /opt/$pkgname/lib/libruby.so.${_rubyver} $pkgdir/usr/lib/libruby.so.${_rubyver}
+
+  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+  install -D -m644 BSDL "${pkgdir}/usr/share/licenses/$pkgname/BSDL"
+}



More information about the arch-commits mailing list