Date: Sunday, August 28, 2022 @ 11:26:19 Author: segaja Revision: 1285075
archrelease: copy trunk to community-any Added: ruby-simplecov_json_formatter/repos/community-any/PKGBUILD (from rev 1285074, ruby-simplecov_json_formatter/trunk/PKGBUILD) Deleted: ruby-simplecov_json_formatter/repos/community-any/PKGBUILD ----------+ PKGBUILD | 168 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 87 insertions(+), 81 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-08-28 11:26:08 UTC (rev 1285074) +++ PKGBUILD 2022-08-28 11:26:19 UTC (rev 1285075) @@ -1,81 +0,0 @@ -# Maintainer: Andreas 'Segaja' Schleifer <archlinux at segaja dot de> - -_gemname='simplecov_json_formatter' -pkgname="ruby-${_gemname}" -pkgver=0.1.2 -pkgrel=1 -pkgdesc='JSON formatter for SimpleCov' -arch=('any') -url="https://github.com/codeclimate-community/${_gemname}" -license=('MIT') -depends=('ruby') -makedepends=('ruby-rake') -#checkdepends=('ruby-bundler' 'ruby-rspec') -options=(!emptydirs) -source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('5e6c835209e85ccb6f99d2160daf9a9136ff27a81fc8cecb1bd8b7fa9fc1dbf56dcc86e785ddca5cfecc3a14d9beb9f07d5ecc94ab7295934c22e17d5b86d9c3') - -prepare() { - cd "${_gemname}-${pkgver}" - - sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec" - sed --in-place '/byebug/d' Gemfile spec/simplecov_json_formatter_spec.rb - - rm --verbose Gemfile* -} - -build() { - cd "${_gemname}-${pkgver}" - - gem build "${_gemname}.gemspec" -} - -#check() { -# cd "${_gemname}-${pkgver}" -# -# rake spec -#} - -package() { - cd "${_gemname}-${pkgver}" - - local _gemdir="$(gem env gemdir)" - - gem install \ - --local \ - --verbose \ - --ignore-dependencies \ - --no-user-install \ - --install-dir "${pkgdir}/${_gemdir}" \ - --bindir "${pkgdir}/usr/bin" \ - "${_gemname}-${pkgver}.gem" - - # remove unrepreducible files - rm --force --recursive --verbose \ - "${pkgdir}/${_gemdir}/cache/" \ - "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/vendor/" \ - "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext/" - - find "${pkgdir}/${_gemdir}/gems/" \ - -type f \ - \( \ - -iname "*.o" -o \ - -iname "*.c" -o \ - -iname "*.so" -o \ - -iname "*.time" -o \ - -iname "gem.build_complete" -o \ - -iname "Makefile" \ - \) \ - -delete - - find "${pkgdir}/${_gemdir}/extensions/" \ - -type f \ - \( \ - -iname "mkmf.log" -o \ - -iname "gem_make.out" \ - \) \ - -delete - - install --verbose -D --mode=644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install --verbose -D --mode=644 *.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}" -} Copied: ruby-simplecov_json_formatter/repos/community-any/PKGBUILD (from rev 1285074, ruby-simplecov_json_formatter/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-08-28 11:26:19 UTC (rev 1285075) @@ -0,0 +1,87 @@ +# Maintainer: Andreas 'Segaja' Schleifer <archlinux at segaja dot de> + +_gemname='simplecov_json_formatter' +pkgname="ruby-${_gemname}" +pkgver=0.1.2 +pkgrel=2 +pkgdesc='JSON formatter for SimpleCov' +arch=('any') +url="https://github.com/codeclimate-community/${_gemname}" +license=('MIT') +depends=('ruby') +checkdepends=('ruby-bundler' 'ruby-rake' 'ruby-rspec' 'ruby-simplecov') +options=(!emptydirs) +source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('5e6c835209e85ccb6f99d2160daf9a9136ff27a81fc8cecb1bd8b7fa9fc1dbf56dcc86e785ddca5cfecc3a14d9beb9f07d5ecc94ab7295934c22e17d5b86d9c3') + +prepare() { + cd "${_gemname}-${pkgver}" + + sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec" + + rm --verbose Gemfile* + + # fix tests + local simplecov_version="$(ruby -e 'require("simplecov"); puts SimpleCov::VERSION')" + + sed --in-place '/byebug/d' spec/simplecov_json_formatter_spec.rb + sed --in-place --regexp-extended "s/\"simplecov_version\": \"[0-9]+\.[0-9]+\.[0-9]+\"/\"simplecov_version\": \"${simplecov_version}\"/" spec/fixtures/*.json + sed --in-place --regexp-extended "s|/gem/|${srcdir}/${_gemname}-${pkgver}/|" spec/fixtures/*.json +} + +build() { + cd "${_gemname}-${pkgver}" + + gem build "${_gemname}.gemspec" +} + +check() { + cd "${_gemname}-${pkgver}" + + + rake spec +} + +package() { + cd "${_gemname}-${pkgver}" + + local _gemdir="$(gem env gemdir)" + + gem install \ + --local \ + --verbose \ + --ignore-dependencies \ + --no-user-install \ + --install-dir "${pkgdir}/${_gemdir}" \ + --bindir "${pkgdir}/usr/bin" \ + "${_gemname}-${pkgver}.gem" + + # remove unrepreducible files + rm --force --recursive --verbose \ + "${pkgdir}/${_gemdir}/cache/" \ + "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/vendor/" \ + "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext/" + + find "${pkgdir}/${_gemdir}/gems/" \ + -type f \ + \( \ + -iname "*.o" -o \ + -iname "*.c" -o \ + -iname "*.so" -o \ + -iname "*.time" -o \ + -iname "gem.build_complete" -o \ + -iname "Makefile" \ + \) \ + -delete + + find "${pkgdir}/${_gemdir}/extensions/" \ + -type f \ + \( \ + -iname "mkmf.log" -o \ + -iname "gem_make.out" \ + \) \ + -delete + + install --verbose -D --mode=644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install --verbose -D --mode=644 *.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}" +}