[arch-commits] Commit in haskell-skylighting/repos (6 files)
Felix Yan
felixonmars at archlinux.org
Fri Jul 7 18:31:23 UTC 2017
Date: Friday, July 7, 2017 @ 18:31:22
Author: felixonmars
Revision: 242993
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
haskell-skylighting/repos/community-staging-i686/
haskell-skylighting/repos/community-staging-i686/PKGBUILD
(from rev 242992, haskell-skylighting/trunk/PKGBUILD)
haskell-skylighting/repos/community-staging-i686/system-pcre.patch
(from rev 242992, haskell-skylighting/trunk/system-pcre.patch)
haskell-skylighting/repos/community-staging-x86_64/
haskell-skylighting/repos/community-staging-x86_64/PKGBUILD
(from rev 242992, haskell-skylighting/trunk/PKGBUILD)
haskell-skylighting/repos/community-staging-x86_64/system-pcre.patch
(from rev 242992, haskell-skylighting/trunk/system-pcre.patch)
--------------------------------------------+
community-staging-i686/PKGBUILD | 52 ++++++++++++++++++++++++
community-staging-i686/system-pcre.patch | 57 +++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 52 ++++++++++++++++++++++++
community-staging-x86_64/system-pcre.patch | 57 +++++++++++++++++++++++++++
4 files changed, 218 insertions(+)
Copied: haskell-skylighting/repos/community-staging-i686/PKGBUILD (from rev 242992, haskell-skylighting/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-07-07 18:31:22 UTC (rev 242993)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=skylighting
+pkgname=haskell-skylighting
+pkgver=0.1.1.5
+pkgrel=25
+pkgdesc="Syntax highlighting library"
+url="https://github.com/jgm/skylighting"
+license=('GPL2')
+arch=('i686' 'x86_64')
+depends=('ghc' 'haskell-aeson' 'haskell-blaze-html' 'haskell-case-insensitive' 'haskell-hxt'
+ 'haskell-mtl' 'haskell-pretty-show' 'haskell-regex-pcre' 'haskell-safe' 'haskell-text'
+ 'haskell-utf8-string')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+ system-pcre.patch)
+md5sums=('7681c510ab20d79a32a0a54479a2325c'
+ '5971978a26d8133df62b803bd67a70b6')
+
+prepare() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+ patch -p1 -i ../system-pcre.patch
+}
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -fsystem-pcre
+ runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ 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
+}
+
+package() {
+ cd "${srcdir}/${_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"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: haskell-skylighting/repos/community-staging-i686/system-pcre.patch (from rev 242992, haskell-skylighting/trunk/system-pcre.patch)
===================================================================
--- community-staging-i686/system-pcre.patch (rev 0)
+++ community-staging-i686/system-pcre.patch 2017-07-07 18:31:22 UTC (rev 242993)
@@ -0,0 +1,57 @@
+commit 5fbf9b74c1d34a395a99e61349e3f5f8af0f6140
+Author: Felix Yan <felixonmars at archlinux.org>
+Date: Mon Feb 6 11:44:37 2017 +0800
+
+ Add a flag to build with system pcre
+
+diff --git a/skylighting.cabal b/skylighting.cabal
+index 83d39aa..f5684bf 100644
+--- a/skylighting.cabal
++++ b/skylighting.cabal
+@@ -228,7 +228,6 @@ library
+ mtl,
+ text,
+ bytestring,
+- regex-pcre-builtin,
+ directory,
+ filepath,
+ aeson,
+@@ -238,6 +237,10 @@ library
+ safe,
+ blaze-html >= 0.5,
+ containers
++ if flag(system-pcre)
++ build-depends: regex-pcre
++ else
++ build-depends: regex-pcre-builtin
+ hs-source-dirs: src
+ if impl(ghc < 7.10)
+ hs-source-dirs: prelude
+@@ -255,12 +258,15 @@ Flag executable
+ Description: Build skylighting CLI tool
+ Default: False
+
++Flag system-pcre
++ Description: Use regex-pcre instead of regex-pcre-builtin
++ Default: False
++
+ executable skylighting-extract
+ build-depends: base >= 4.7 && < 5.0,
+ filepath,
+ bytestring,
+ text,
+- regex-pcre-builtin,
+ safe,
+ hxt,
+ utf8-string,
+@@ -269,6 +275,10 @@ executable skylighting-extract
+ pretty-show,
+ containers,
+ directory
++ if flag(system-pcre)
++ build-depends: regex-pcre
++ else
++ build-depends: regex-pcre-builtin
+ hs-source-dirs: bin, src
+ if impl(ghc < 7.10)
+ hs-source-dirs: prelude
Copied: haskell-skylighting/repos/community-staging-x86_64/PKGBUILD (from rev 242992, haskell-skylighting/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-07-07 18:31:22 UTC (rev 242993)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=skylighting
+pkgname=haskell-skylighting
+pkgver=0.1.1.5
+pkgrel=25
+pkgdesc="Syntax highlighting library"
+url="https://github.com/jgm/skylighting"
+license=('GPL2')
+arch=('i686' 'x86_64')
+depends=('ghc' 'haskell-aeson' 'haskell-blaze-html' 'haskell-case-insensitive' 'haskell-hxt'
+ 'haskell-mtl' 'haskell-pretty-show' 'haskell-regex-pcre' 'haskell-safe' 'haskell-text'
+ 'haskell-utf8-string')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+ system-pcre.patch)
+md5sums=('7681c510ab20d79a32a0a54479a2325c'
+ '5971978a26d8133df62b803bd67a70b6')
+
+prepare() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+ patch -p1 -i ../system-pcre.patch
+}
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -fsystem-pcre
+ runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ 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
+}
+
+package() {
+ cd "${srcdir}/${_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"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: haskell-skylighting/repos/community-staging-x86_64/system-pcre.patch (from rev 242992, haskell-skylighting/trunk/system-pcre.patch)
===================================================================
--- community-staging-x86_64/system-pcre.patch (rev 0)
+++ community-staging-x86_64/system-pcre.patch 2017-07-07 18:31:22 UTC (rev 242993)
@@ -0,0 +1,57 @@
+commit 5fbf9b74c1d34a395a99e61349e3f5f8af0f6140
+Author: Felix Yan <felixonmars at archlinux.org>
+Date: Mon Feb 6 11:44:37 2017 +0800
+
+ Add a flag to build with system pcre
+
+diff --git a/skylighting.cabal b/skylighting.cabal
+index 83d39aa..f5684bf 100644
+--- a/skylighting.cabal
++++ b/skylighting.cabal
+@@ -228,7 +228,6 @@ library
+ mtl,
+ text,
+ bytestring,
+- regex-pcre-builtin,
+ directory,
+ filepath,
+ aeson,
+@@ -238,6 +237,10 @@ library
+ safe,
+ blaze-html >= 0.5,
+ containers
++ if flag(system-pcre)
++ build-depends: regex-pcre
++ else
++ build-depends: regex-pcre-builtin
+ hs-source-dirs: src
+ if impl(ghc < 7.10)
+ hs-source-dirs: prelude
+@@ -255,12 +258,15 @@ Flag executable
+ Description: Build skylighting CLI tool
+ Default: False
+
++Flag system-pcre
++ Description: Use regex-pcre instead of regex-pcre-builtin
++ Default: False
++
+ executable skylighting-extract
+ build-depends: base >= 4.7 && < 5.0,
+ filepath,
+ bytestring,
+ text,
+- regex-pcre-builtin,
+ safe,
+ hxt,
+ utf8-string,
+@@ -269,6 +275,10 @@ executable skylighting-extract
+ pretty-show,
+ containers,
+ directory
++ if flag(system-pcre)
++ build-depends: regex-pcre
++ else
++ build-depends: regex-pcre-builtin
+ hs-source-dirs: bin, src
+ if impl(ghc < 7.10)
+ hs-source-dirs: prelude
More information about the arch-commits
mailing list