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

Felix Yan felixonmars at archlinux.org
Sun May 23 22:55:27 UTC 2021


    Date: Sunday, May 23, 2021 @ 22:55:26
  Author: felixonmars
Revision: 943549

archrelease: copy trunk to community-staging-x86_64

Added:
  pandoc/repos/community-staging-x86_64/
  pandoc/repos/community-staging-x86_64/PKGBUILD
    (from rev 943548, pandoc/trunk/PKGBUILD)
  pandoc/repos/community-staging-x86_64/haddock-library-1.10.patch
    (from rev 943548, pandoc/trunk/haddock-library-1.10.patch)

----------------------------+
 PKGBUILD                   |   73 +++++++++++++++++++++++++++++++++++++++++++
 haddock-library-1.10.patch |   11 ++++++
 2 files changed, 84 insertions(+)

Copied: pandoc/repos/community-staging-x86_64/PKGBUILD (from rev 943548, pandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-23 22:55:26 UTC (rev 943549)
@@ -0,0 +1,73 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=pandoc
+pkgver=2.13
+pkgrel=26
+pkgdesc='Conversion between markup formats'
+url='https://pandoc.org'
+license=('GPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-http' 'haskell-juicypixels' 'haskell-sha' 'haskell-aeson'
+         'haskell-aeson-pretty' 'haskell-attoparsec' 'haskell-base64-bytestring'
+         'haskell-blaze-html' 'haskell-blaze-markup' 'haskell-case-insensitive'
+         'haskell-citeproc' 'haskell-commonmark' 'haskell-commonmark-extensions'
+         'haskell-commonmark-pandoc' 'haskell-connection' 'haskell-data-default'
+         'haskell-doclayout' 'haskell-doctemplates' 'haskell-emojis' 'haskell-file-embed'
+         'haskell-glob' 'haskell-haddock-library' 'haskell-ipynb' 'haskell-jira-wiki-markup'
+         'haskell-skylighting' 'haskell-skylighting-core' 'haskell-hslua'
+         'haskell-hslua-module-path' 'haskell-hslua-module-system' 'haskell-hslua-module-text'
+         'haskell-http-client' 'haskell-syb' 'haskell-hsyaml' 'haskell-http-client-tls'
+         'haskell-http-types' 'haskell-safe' 'haskell-split' 'haskell-texmath' 'haskell-network'
+         'haskell-pandoc-types' 'haskell-random' 'haskell-scientific' 'haskell-tagsoup'
+         'haskell-temporary' 'haskell-text-conversions' 'haskell-network-uri'
+         'haskell-unicode-transforms' 'haskell-unordered-containers' 'haskell-zip-archive'
+         'haskell-xml' 'haskell-xml-conduit' 'haskell-zlib')
+optdepends=('pandoc-citeproc: for citation rendering with pandoc-citeproc filter'
+            'pandoc-crossref: for numbering figures, equations, tables and cross-references to them with pandoc-crossref filter'
+            'texlive-core: for pdf output')
+conflicts=('haskell-pandoc')
+replaces=('haskell-pandoc')
+makedepends=('ghc' 'uusi' 'haskell-diff' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-lua'
+             'haskell-tasty-quickcheck' 'haskell-tasty-golden' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        haddock-library-1.10.patch)
+sha512sums=('c894f59e7ff57603fd6a60d11880b9fd6d6e206247346f77070b176fed6f359b3d5a5ba984803717ac4a4e5c038ad0912513da091d4b8672df63af17d21627a8'
+            'f6b0fc90d42e2a02c101e0ba3f86884cb957392b0a1d351f63459780df57a4db51bd9ef72230cd0060e5247fa9a0b5274701bb663163561a932e6aed4e0d5b07')
+
+prepare() {
+    cd $pkgname-$pkgver
+    patch -p0 -i ../haddock-library-1.10.patch
+    uusi -u attoparsec -u haddock-library -u random -u texmath $pkgname.cabal
+
+    # TODO: find a better solution
+    sed -i "s|let env' = dynlibEnv ++ |let env' = dynlibEnv ++ [(\"LD_LIBRARY_PATH\", \"$PWD/dist/build\")] ++ |" test/Tests/Command.hs
+}
+
+build() {
+    cd $pkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgname" --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-trypandoc -f-embed_data_files -f-static
+    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 $pkgname-$pkgver
+    LC_CTYPE=en_US.UTF-8 runhaskell Setup test || echo "Tests failed"
+}
+
+package() {
+    cd $pkgname-$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}"
+    rm "${pkgdir}/usr/share/doc/${pkgname}/COPYING.md"
+    install -Dm644 man/pandoc.1 -t "${pkgdir}"/usr/share/man/man1/
+}

Copied: pandoc/repos/community-staging-x86_64/haddock-library-1.10.patch (from rev 943548, pandoc/trunk/haddock-library-1.10.patch)
===================================================================
--- community-staging-x86_64/haddock-library-1.10.patch	                        (rev 0)
+++ community-staging-x86_64/haddock-library-1.10.patch	2021-05-23 22:55:26 UTC (rev 943549)
@@ -0,0 +1,11 @@
+--- src/Text/Pandoc/Readers/Haddock.hs.orig	2021-03-22 06:09:57.716035128 +0800
++++ src/Text/Pandoc/Readers/Haddock.hs	2021-03-22 06:11:17.853110456 +0800
+@@ -128,7 +128,7 @@
+           DocIdentifier s -> B.codeWith ("",["haskell","identifier"],[]) $ T.pack s
+           _               -> mempty
+     DocIdentifierUnchecked s -> B.codeWith ("",["haskell","identifier"],[]) $ T.pack s
+-    DocModule s -> B.codeWith ("",["haskell","module"],[]) $ T.pack s
++    DocModule (H.ModLink s _) -> B.codeWith ("",["haskell","module"],[]) $ T.pack s
+     DocWarning _ -> mempty -- TODO
+     DocEmphasis d -> B.emph (docHToInlines isCode d)
+     DocMonospaced (DocString s) -> B.code $ T.pack s



More information about the arch-commits mailing list