[arch-commits] Commit in ruby-shadow/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Mar 19 18:28:56 UTC 2021
Date: Friday, March 19, 2021 @ 18:28:56
Author: foutrelis
Revision: 894858
archrelease: copy trunk to community-staging-x86_64
Added:
ruby-shadow/repos/community-staging-x86_64/
ruby-shadow/repos/community-staging-x86_64/PKGBUILD
(from rev 894857, ruby-shadow/trunk/PKGBUILD)
ruby-shadow/repos/community-staging-x86_64/ruby-shadow-2.5.0-cflags.patch
(from rev 894857, ruby-shadow/trunk/ruby-shadow-2.5.0-cflags.patch)
--------------------------------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
ruby-shadow-2.5.0-cflags.patch | 16 ++++++++++++++++
2 files changed, 55 insertions(+)
Copied: ruby-shadow/repos/community-staging-x86_64/PKGBUILD (from rev 894857, ruby-shadow/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-03-19 18:28:56 UTC (rev 894858)
@@ -0,0 +1,39 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Greg Sutcliffe <greg.sutcliffe at gmail.com>>
+
+pkgname=ruby-shadow
+pkgver=2.5.0
+pkgrel=6
+pkgdesc="Shadow password module"
+arch=('x86_64')
+url="https://github.com/apalmblad/ruby-shadow"
+license=('CPL')
+depends=('ruby')
+source=($pkgname-$pkgver.tar.gz::https://github.com/apalmblad/$pkgname/archive/$pkgver.tar.gz
+ ruby-shadow-2.5.0-cflags.patch)
+md5sums=('e9c35620f6c25233b7b54dcab8ee955e'
+ '8a501c170f5721881ae35b9d0acc619d')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # Respect CFLAGS and fix build with Ruby 3.0.0
+ # https://github.com/apalmblad/ruby-shadow/issues/26
+ patch -Np0 -i ../ruby-shadow-2.5.0-cflags.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ ruby extconf.rb
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ make DESTDIR="$pkgdir"/ sitedir='$(rubylibprefix)/vendor_ruby' \
+ sitehdrdir='$(rubyhdrdir)/vendor_ruby' install
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: ruby-shadow/repos/community-staging-x86_64/ruby-shadow-2.5.0-cflags.patch (from rev 894857, ruby-shadow/trunk/ruby-shadow-2.5.0-cflags.patch)
===================================================================
--- community-staging-x86_64/ruby-shadow-2.5.0-cflags.patch (rev 0)
+++ community-staging-x86_64/ruby-shadow-2.5.0-cflags.patch 2021-03-19 18:28:56 UTC (rev 894858)
@@ -0,0 +1,16 @@
+--- extconf.rb~ 2017-10-05 20:21:59.480315863 +0200
++++ extconf.rb 2017-10-05 20:23:55.077931560 +0200
+@@ -6,12 +6,7 @@
+
+ require 'mkmf'
+ require 'rbconfig'
+-
+-$CFLAGS = case RUBY_VERSION
+- when /^1\.9/; '-DRUBY19'
+- when /^2\./; '-DRUBY19'
+- else; ''
+- end
++$CFLAGS = "#{$CFLAGS} -DRUBY19"
+
+ implementation = case CONFIG['host_os']
+ when /linux/i; 'shadow'
More information about the arch-commits
mailing list