[arch-commits] Commit in hiera/repos (3 files)

Tim Meusel bastelfreak at archlinux.org
Sun May 16 15:51:27 UTC 2021


    Date: Sunday, May 16, 2021 @ 15:51:27
  Author: bastelfreak
Revision: 935877

archrelease: copy trunk to community-testing-any

Added:
  hiera/repos/community-testing-any/
  hiera/repos/community-testing-any/PKGBUILD
    (from rev 935876, hiera/trunk/PKGBUILD)
  hiera/repos/community-testing-any/ruby3.patch
    (from rev 935876, hiera/trunk/ruby3.patch)

-------------+
 PKGBUILD    |   28 ++++++++++++++++++++++++++++
 ruby3.patch |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

Copied: hiera/repos/community-testing-any/PKGBUILD (from rev 935876, hiera/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-05-16 15:51:27 UTC (rev 935877)
@@ -0,0 +1,28 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=hiera
+pkgver=3.7.0
+pkgrel=1
+pkgdesc='Lightweight pluggable hierarchical database'
+arch=('any')
+url="https://github.com/puppetlabs/${pkgname}"
+license=('APACHE')
+depends=('ruby2.7')
+backup=('etc/hiera.yaml')
+source=("${pkgname}-${pkgver}.tar.gz::https://downloads.puppetlabs.com/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        ruby3.patch)
+sha512sums=('5c6f9068d8143c72e5d117e02c19b12c01d4ab9277241b50da9042d1fa1fe7de3fcf68a63f0f3cb6f640c37c3fd11e2888f118a837ad6aa8504d6d72c87a64a8'
+            '4e55027f5c21872eb55ae80656c3039a92717d2619cbeef1a86c8d5f938727b3f9ff68bdceb71b3198597bcd5cb981a8b3b07528003364041ef387376d80d275')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  patch -p1 < ../ruby3.patch
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  ruby-2.7 install.rb --destdir="${pkgdir}" --sitelibdir="$(ruby-2.7 -e 'puts RbConfig::CONFIG["vendorlibdir"]')" --mandir=/
+  install -d "${pkgdir}"/var/lib/hiera/
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: hiera/repos/community-testing-any/ruby3.patch (from rev 935876, hiera/trunk/ruby3.patch)
===================================================================
--- community-testing-any/ruby3.patch	                        (rev 0)
+++ community-testing-any/ruby3.patch	2021-05-16 15:51:27 UTC (rev 935877)
@@ -0,0 +1,43 @@
+commit af4b70b6b9ed4d22a277402939fccf6e2e9d82e9
+Author: Anatol Pomozov <anatol.pomozov at gmail.com>
+Date:   Fri Mar 19 11:36:30 2021 -0700
+
+    Fileutils::install accepts keyword arguments
+
+diff --git a/install.rb b/install.rb
+index a13cded..8c7890d 100755
+--- a/install.rb
++++ b/install.rb
+@@ -51,7 +51,7 @@ def do_configs(configs, target, strip = 'ext/')
+   Dir.mkdir(target) unless File.directory? target
+   configs.each do |cf|
+     ocf = File.join(InstallOptions.config_dir, cf.gsub(/#{strip}/, ''))
+-    install(cf, ocf, {:mode => 0644, :preserve => true, :verbose => true})
++    install(cf, ocf, :mode => 0644, :preserve => true, :verbose => true)
+   end
+ end
+ 
+@@ -67,9 +67,9 @@ def do_libs(libs, strip = 'lib/')
+   libs.each do |lf|
+     olf = File.join(InstallOptions.site_dir, lf.gsub(/#{strip}/, ''))
+     op = File.dirname(olf)
+-    makedirs(op, {:mode => 0755, :verbose => true})
++    makedirs(op, :mode => 0755, :verbose => true)
+     chmod(0755, op)
+-    install(lf, olf, {:mode => 0644, :preserve => true, :verbose => true})
++    install(lf, olf, :mode => 0644, :preserve => true, :verbose => true)
+   end
+ end
+ 
+@@ -77,9 +77,9 @@ def do_man(man, strip = 'man/')
+   man.each do |mf|
+     omf = File.join(InstallOptions.man_dir, mf.gsub(/#{strip}/, ''))
+     om = File.dirname(omf)
+-    makedirs(om, {:mode => 0755, :verbose => true})
++    makedirs(om, :mode => 0755, :verbose => true)
+     chmod(0755, om)
+-    install(mf, omf, {:mode => 0644, :preserve => true, :verbose => true})
++    install(mf, omf, :mode => 0644, :preserve => true, :verbose => true)
+ 
+     gzip = %x{which gzip}
+     gzip.chomp!



More information about the arch-commits mailing list