[arch-commits] Commit in haskell-doctest-parallel/repos/community-staging-x86_64 (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun May 15 01:44:52 UTC 2022


    Date: Sunday, May 15, 2022 @ 01:44:52
  Author: felixonmars
Revision: 1205645

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-doctest-parallel/repos/community-staging-x86_64/PKGBUILD
    (from rev 1205644, haskell-doctest-parallel/trunk/PKGBUILD)
Deleted:
  haskell-doctest-parallel/repos/community-staging-x86_64/PKGBUILD

----------+
 PKGBUILD |  114 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 57 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-15 01:44:39 UTC (rev 1205644)
+++ PKGBUILD	2022-05-15 01:44:52 UTC (rev 1205645)
@@ -1,57 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-_hkgname=doctest-parallel
-pkgname=haskell-doctest-parallel
-pkgver=0.2.2
-pkgrel=10
-pkgdesc="Test interactive Haskell examples"
-url="https://github.com/martijnbastiaan/doctest-parallel#readme"
-license=("MIT")
-arch=('x86_64')
-depends=('ghc-libs' 'haskell-glob' 'haskell-base-compat' 'haskell-code-page' 'haskell-extra'
-         'haskell-ghc' 'haskell-ghc-paths' 'haskell-random' 'haskell-syb'
-         'haskell-unordered-containers')
-makedepends=('ghc' 'expac' 'haskell-hunit' 'haskell-quickcheck' 'haskell-hspec' 'haskell-hspec-core'
-             'haskell-hspec-discover' 'haskell-mockery' 'haskell-setenv' 'haskell-silently'
-             'haskell-stringbuilder')
-source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
-sha256sums=('de3930a4fbb5ff62172bac9696af049cdec234c9a4f529100af9ec2111dcbd54')
-
-build() {
-  cd $_hkgname-$pkgver
-
-  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
-    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
-    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
-    --ghc-option='-pie'
-
-  runhaskell Setup build $MAKEFLAGS
-  runhaskell Setup register --gen-script
-  runhaskell Setup unregister --gen-script
-  sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
-  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
-}
-
-check() {
-  cd $_hkgname-$pkgver
-  # == An ugly hack to generate .ghc.environment without cabal-install ==
-  # doctest-parallel relies on this cabal-install feature to configure GHCi.
-  # https://github.com/martijnbastiaan/doctest-parallel/issues/22
-  _ghc_env_filename=.ghc.environment.$CARCH-linux-$(expac %v ghc | cut -d - -f 1)
-  echo -e "package-db dist/package.conf.inplace" > $_ghc_env_filename
-  ls dist/package.conf.inplace/*.conf | sed 's|.*/\(.*\).conf$|package-id \1|' >> $_ghc_env_filename
-  ls /usr/lib/ghc-9.0.2/package.conf.d/*.conf | sed 's|.*/\(.*\).conf$|package-id \1|' >> $_ghc_env_filename
-
-  runhaskell Setup test --show-details=direct
-}
-
-package() {
-  cd $_hkgname-$pkgver
-
-  install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
-  install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
-  runhaskell Setup copy --destdir="$pkgdir"
-  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
-}

Copied: haskell-doctest-parallel/repos/community-staging-x86_64/PKGBUILD (from rev 1205644, haskell-doctest-parallel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-15 01:44:52 UTC (rev 1205645)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=doctest-parallel
+pkgname=haskell-doctest-parallel
+pkgver=0.2.2
+pkgrel=11
+pkgdesc="Test interactive Haskell examples"
+url="https://github.com/martijnbastiaan/doctest-parallel#readme"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-glob' 'haskell-base-compat' 'haskell-code-page' 'haskell-extra'
+         'haskell-ghc' 'haskell-ghc-paths' 'haskell-random' 'haskell-syb'
+         'haskell-unordered-containers')
+makedepends=('ghc' 'expac' 'haskell-hunit' 'haskell-quickcheck' 'haskell-hspec' 'haskell-hspec-core'
+             'haskell-hspec-discover' 'haskell-mockery' 'haskell-setenv' 'haskell-silently'
+             'haskell-stringbuilder')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('de3930a4fbb5ff62172bac9696af049cdec234c9a4f529100af9ec2111dcbd54')
+
+build() {
+  cd $_hkgname-$pkgver
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie'
+
+  runhaskell Setup build $MAKEFLAGS
+  runhaskell Setup register --gen-script
+  runhaskell Setup unregister --gen-script
+  sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+  cd $_hkgname-$pkgver
+  # == An ugly hack to generate .ghc.environment without cabal-install ==
+  # doctest-parallel relies on this cabal-install feature to configure GHCi.
+  # https://github.com/martijnbastiaan/doctest-parallel/issues/22
+  _ghc_env_filename=.ghc.environment.$CARCH-linux-$(expac %v ghc | cut -d - -f 1)
+  echo -e "package-db dist/package.conf.inplace" > $_ghc_env_filename
+  ls dist/package.conf.inplace/*.conf | sed 's|.*/\(.*\).conf$|package-id \1|' >> $_ghc_env_filename
+  ls /usr/lib/ghc-9.0.2/package.conf.d/*.conf | sed 's|.*/\(.*\).conf$|package-id \1|' >> $_ghc_env_filename
+
+  runhaskell Setup test --show-details=direct
+}
+
+package() {
+  cd $_hkgname-$pkgver
+
+  install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+  install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+  runhaskell Setup copy --destdir="$pkgdir"
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list