[arch-commits] Commit in haddock/repos (6 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Sep 10 22:05:14 UTC 2015


    Date: Friday, September 11, 2015 @ 00:05:14
  Author: foutrelis
Revision: 139893

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

Added:
  haddock/repos/community-staging-i686/
  haddock/repos/community-staging-i686/PKGBUILD
    (from rev 139892, haddock/trunk/PKGBUILD)
  haddock/repos/community-staging-i686/haddock.install
    (from rev 139892, haddock/trunk/haddock.install)
  haddock/repos/community-staging-x86_64/
  haddock/repos/community-staging-x86_64/PKGBUILD
    (from rev 139892, haddock/trunk/PKGBUILD)
  haddock/repos/community-staging-x86_64/haddock.install
    (from rev 139892, haddock/trunk/haddock.install)

------------------------------------------+
 community-staging-i686/PKGBUILD          |   49 +++++++++++++++++++++++++++++
 community-staging-i686/haddock.install   |   25 ++++++++++++++
 community-staging-x86_64/PKGBUILD        |   49 +++++++++++++++++++++++++++++
 community-staging-x86_64/haddock.install |   25 ++++++++++++++
 4 files changed, 148 insertions(+)

Copied: haddock/repos/community-staging-i686/PKGBUILD (from rev 139892, haddock/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-10 22:05:14 UTC (rev 139893)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haddock
+pkgver=2.16.1
+pkgrel=2
+pkgdesc='Tool for generating documentation for Haskell libraries'
+url='http://hackage.haskell.org/package/haddock/'
+license=('custom:BSD3')
+arch=('x86_64' 'i686')
+makedepends=('alex' 'happy')
+depends=('ghc=7.10.1' 'haskell-ghc-paths' 'haskell-haddock-api')
+install="$pkgname.install"
+options=('staticlibs')
+source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('0a0fa6abfecd1f3094b66f99e91a9aed72ffd11d3038a1e0ae6fec1db849cba9')
+sha256sums=('46ecd130cb5ad2b5c7452c843f9b75e976f1416d1cf17e6436d65c2c0bdbd6d6')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+    --prefix=/usr --docdir=/usr/share/doc/"$pkgname" \
+    --libsubdir=\$compiler/site-local/\$pkgid
+  runhaskell Setup build
+  runhaskell Setup haddock
+  runhaskell Setup register --gen-script
+  runhaskell Setup unregister --gen-script
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+#  install -Dm744 register.sh "$pkgdir/usr/share/haskell/$pkgname/register.sh"
+  install -Dm744 unregister.sh \
+    "$pkgdir/usr/share/haskell/$pkgname/unregister.sh"
+  install -dm755 "$pkgdir/usr/share/doc/ghc/html/libraries"
+  ln -s "/usr/share/doc/$pkgname/html" \
+    "$pkgdir/usr/share/doc/ghc/html/libraries/$pkgname"
+  runhaskell Setup copy --destdir="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  rm -f "$pkgdir/usr/share/doc/$pkgname/LICENSE"
+  mv "$pkgdir/usr/bin/haddock" "$pkgdir/usr/bin/haddock-cabal"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: haddock/repos/community-staging-i686/haddock.install (from rev 139892, haddock/trunk/haddock.install)
===================================================================
--- community-staging-i686/haddock.install	                        (rev 0)
+++ community-staging-i686/haddock.install	2015-09-10 22:05:14 UTC (rev 139893)
@@ -0,0 +1,25 @@
+pkgname=haddock
+HS_DIR=usr/share/haskell/haddock
+
+post_upgrade() {
+#  ${HS_DIR}/register.sh &> /dev/null
+  post_remove
+}
+
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) &> /dev/null
+}
+
+pre_remove() {
+  ${HS_DIR}/unregister.sh &> /dev/null
+}
+
+post_install() {
+	post_upgrade
+}
+
+pre_upgrade() {
+	pre_remove
+}
+
+# vim:set ts=2 sw=2 et:

Copied: haddock/repos/community-staging-x86_64/PKGBUILD (from rev 139892, haddock/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-10 22:05:14 UTC (rev 139893)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haddock
+pkgver=2.16.1
+pkgrel=2
+pkgdesc='Tool for generating documentation for Haskell libraries'
+url='http://hackage.haskell.org/package/haddock/'
+license=('custom:BSD3')
+arch=('x86_64' 'i686')
+makedepends=('alex' 'happy')
+depends=('ghc=7.10.1' 'haskell-ghc-paths' 'haskell-haddock-api')
+install="$pkgname.install"
+options=('staticlibs')
+source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('0a0fa6abfecd1f3094b66f99e91a9aed72ffd11d3038a1e0ae6fec1db849cba9')
+sha256sums=('46ecd130cb5ad2b5c7452c843f9b75e976f1416d1cf17e6436d65c2c0bdbd6d6')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+    --prefix=/usr --docdir=/usr/share/doc/"$pkgname" \
+    --libsubdir=\$compiler/site-local/\$pkgid
+  runhaskell Setup build
+  runhaskell Setup haddock
+  runhaskell Setup register --gen-script
+  runhaskell Setup unregister --gen-script
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+#  install -Dm744 register.sh "$pkgdir/usr/share/haskell/$pkgname/register.sh"
+  install -Dm744 unregister.sh \
+    "$pkgdir/usr/share/haskell/$pkgname/unregister.sh"
+  install -dm755 "$pkgdir/usr/share/doc/ghc/html/libraries"
+  ln -s "/usr/share/doc/$pkgname/html" \
+    "$pkgdir/usr/share/doc/ghc/html/libraries/$pkgname"
+  runhaskell Setup copy --destdir="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  rm -f "$pkgdir/usr/share/doc/$pkgname/LICENSE"
+  mv "$pkgdir/usr/bin/haddock" "$pkgdir/usr/bin/haddock-cabal"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: haddock/repos/community-staging-x86_64/haddock.install (from rev 139892, haddock/trunk/haddock.install)
===================================================================
--- community-staging-x86_64/haddock.install	                        (rev 0)
+++ community-staging-x86_64/haddock.install	2015-09-10 22:05:14 UTC (rev 139893)
@@ -0,0 +1,25 @@
+pkgname=haddock
+HS_DIR=usr/share/haskell/haddock
+
+post_upgrade() {
+#  ${HS_DIR}/register.sh &> /dev/null
+  post_remove
+}
+
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) &> /dev/null
+}
+
+pre_remove() {
+  ${HS_DIR}/unregister.sh &> /dev/null
+}
+
+post_install() {
+	post_upgrade
+}
+
+pre_upgrade() {
+	pre_remove
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list