diff options
| author | Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch> | 2020-02-25 14:17:59 +0100 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-16 18:18:10 +0100 |
| commit | 650d0beb2d6554c16aecade24dbc8a54ea9b6314 (patch) | |
| tree | 8fc1ad0745055acdf7c5078ba5469fc54092c0ed /testing/pandoc | |
| parent | de208939eb89a51e0fc49cb2936d16ee010f8045 (diff) | |
| download | aports-650d0beb2d6554c16aecade24dbc8a54ea9b6314.tar.bz2 aports-650d0beb2d6554c16aecade24dbc8a54ea9b6314.tar.xz | |
testing/pandoc: new aport
Diffstat (limited to 'testing/pandoc')
| -rw-r--r-- | testing/pandoc/APKBUILD | 54 | ||||
| -rw-r--r-- | testing/pandoc/cabal.project.freeze | 222 | ||||
| -rw-r--r-- | testing/pandoc/disable-pandoc-citeproc.patch | 20 |
3 files changed, 296 insertions, 0 deletions
diff --git a/testing/pandoc/APKBUILD b/testing/pandoc/APKBUILD new file mode 100644 index 0000000000..48d4f1697c --- /dev/null +++ b/testing/pandoc/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch> +# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch> +pkgname=pandoc +pkgver=2.9.2 +pkgrel=0 +pkgdesc="universal markup converter" +url="https://pandoc.org/" +# ghc only supports x86_64 +arch="x86_64" +license="GPL-2.0-or-later" +makedepends="ghc cabal zlib-dev zlib-static" +subpackages="$pkgname-doc" +source="http://hackage.haskell.org/package/pandoc-$pkgver/pandoc-$pkgver.tar.gz + cabal.project.freeze + disable-pandoc-citeproc.patch" + +# Cabal seems to be built without sandbox, moving the cabal-dir into src +export CABAL_DIR="$srcdir/cabal" + +prepare() { + default_prepare + cp "$srcdir/cabal.project.freeze" . # Created using "cabal freeze" + cabal update + cabal configure \ + --prefix='/usr' \ + --enable-tests \ + --enable-split-sections \ + --ghc-option="-split-sections" \ + --ghc-option="-j" \ + --ghc-option="-O1" \ + --flags="+embed_data_files -trypandoc +static" +} + +build() { + cabal install --only-dependencies + cabal build +} + +check() { + cabal test +} + +package() { + _bindir="$pkgdir/usr/bin" + mkdir -p "$_bindir" + cabal install \ + --installdir="$_bindir" \ + --install-method=copy + install -Dm644 man/pandoc.1 "$pkgdir"/usr/share/man/man1/pandoc.1 +} + +sha512sums="af67ad7ff6f5f16d62a9a5b988bb402f17e5774fcc91a7be56d95b2694640051628495c526ae9f92095ec7050ebb096db5d23ef07a105e73bbf50386a67eb532 pandoc-2.9.2.tar.gz +d4378db2ebcac803d4b2fb1d4c8a6828acdbab6dae52825014f04cc056a149304ec759716a35de51a73f656824e466847d877b049d9ea3859b54fa9cec3145ea cabal.project.freeze +d00f46b0f7bc1848ae228233b2243717adb50c648fd6101ac4abf610a3c4fa130130b6944fc90c207466590f27d800793f578e742aff46a2677bbdcd22066e42 disable-pandoc-citeproc.patch" diff --git a/testing/pandoc/cabal.project.freeze b/testing/pandoc/cabal.project.freeze new file mode 100644 index 0000000000..3913efddf3 --- /dev/null +++ b/testing/pandoc/cabal.project.freeze @@ -0,0 +1,222 @@ +constraints: any.Diff ==0.4.0, + any.Glob ==0.10.0, + any.HTTP ==4000.3.14, + HTTP -conduit10 -mtl1 +network-uri -warn-as-error -warp-tests, + any.HsYAML ==0.2.1.0, + HsYAML -exe, + any.JuicyPixels ==3.3.5, + JuicyPixels -mmap, + any.Only ==0.1, + any.QuickCheck ==2.13.2, + QuickCheck +templatehaskell, + any.SHA ==1.6.4.4, + SHA -exe, + any.abstract-deque ==0.3, + abstract-deque -usecas, + any.abstract-par ==0.3.3, + any.aeson ==1.4.6.0, + aeson -bytestring-builder -cffi -developer -fast, + any.aeson-pretty ==0.8.8, + aeson-pretty -lib-only, + any.ansi-terminal ==0.10.3, + ansi-terminal -example, + any.ansi-wl-pprint ==0.6.9, + ansi-wl-pprint -example, + any.array ==0.5.3.0, + any.asn1-encoding ==0.9.6, + any.asn1-parse ==0.9.5, + any.asn1-types ==0.3.3, + any.async ==2.2.2, + async -bench, + any.attoparsec ==0.13.2.3, + attoparsec -developer, + any.base ==4.12.0.0, + any.base-compat ==0.11.1, + any.base-compat-batteries ==0.11.1, + any.base-orphans ==0.8.2, + any.base16-bytestring ==0.1.1.6, + any.base64-bytestring ==1.0.0.3, + any.basement ==0.0.11, + any.binary ==0.8.6.0, + any.binary-orphans ==1.0.1, + any.bitarray ==0.0.1.1, + any.blaze-builder ==0.4.1.0, + any.blaze-html ==0.9.1.2, + any.blaze-markup ==0.8.2.3, + any.bytestring ==0.10.8.2, + any.call-stack ==0.2.0, + any.case-insensitive ==1.2.1.0, + any.cassava ==0.5.2.0, + cassava -bytestring--lt-0_10_4, + any.cereal ==0.5.8.1, + cereal -bytestring-builder, + any.clock ==0.8, + clock -llvm, + any.cmark-gfm ==0.2.1, + cmark-gfm -pkgconfig, + any.cmdargs ==0.10.20, + cmdargs +quotation -testprog, + any.code-page ==0.2, + any.colour ==2.3.5, + any.connection ==0.3.1, + any.containers ==0.6.0.1, + any.cookie ==0.4.5, + any.criterion ==1.5.6.2, + criterion -embed-data-files -fast, + any.criterion-measurement ==0.1.2.0, + criterion-measurement -fast, + any.cryptonite ==0.26, + cryptonite -check_alignment +integer-gmp -old_toolchain_inliner +support_aesni +support_deepseq -support_pclmuldq +support_rdrand -support_sse, + any.data-default ==0.7.1.1, + any.data-default-class ==0.1.2.0, + any.data-default-instances-containers ==0.0.1, + any.data-default-instances-dlist ==0.0.1, + any.data-default-instances-old-locale ==0.0.1, + any.deepseq ==1.4.4.0, + any.dense-linear-algebra ==0.1.0.0, + any.digest ==0.0.1.2, + digest -bytestring-in-base, + any.directory ==1.3.3.0, + any.dlist ==0.8.0.7, + any.doclayout ==0.3, + any.doctemplates ==0.8.1, + any.emojis ==0.1, + any.errors ==2.3.0, + any.exceptions ==0.10.4, + exceptions +transformers-0-4, + any.executable-path ==0.0.3.1, + any.fail ==4.9.0.0, + any.file-embed ==0.0.11.2, + any.filepath ==1.4.2.1, + any.ghc ==8.6.5, + any.ghc-boot ==8.6.5, + any.ghc-boot-th ==8.6.5, + any.ghc-heap ==8.6.5, + any.ghc-prim ==0.5.3, + any.ghci ==8.6.5, + any.haddock-library ==1.8.0, + any.hashable ==1.3.0.0, + hashable -examples +integer-gmp +sse2 -sse41, + any.hourglass ==0.2.12, + any.hpc ==0.6.0.3, + any.hsc2hs ==0.68.6, + hsc2hs -in-ghc-tree, + any.hslua ==1.0.3.2, + hslua +allow-unsafe-gc -apicheck +export-dynamic -hardcode-reg-keys -lua_32bits -pkg-config -system-lua, + any.hslua-module-system ==0.2.1, + any.hslua-module-text ==0.2.1, + any.http-client ==0.6.4.1, + http-client +network-uri, + any.http-client-tls ==0.3.5.3, + any.http-types ==0.12.3, + any.hxt ==9.3.1.18, + hxt -network-uri -profile, + any.hxt-charproperties ==9.4.0.0, + hxt-charproperties -profile, + any.hxt-regex-xmlschema ==9.2.0.3, + hxt-regex-xmlschema -profile, + any.hxt-unicode ==9.0.2.4, + any.integer-gmp ==1.0.2.0, + any.integer-logarithms ==1.0.3, + integer-logarithms -check-bounds +integer-gmp, + any.ipynb ==0.1, + any.jira-wiki-markup ==1.0.0, + any.js-flot ==0.8.3, + any.js-jquery ==3.3.1, + any.math-functions ==0.3.3.0, + math-functions +system-erf +system-expm1, + any.memory ==0.15.0, + memory +support_basement +support_bytestring +support_deepseq +support_foundation, + any.microstache ==1.0.1.1, + any.mime-types ==0.1.0.9, + any.monad-par ==0.3.5, + monad-par -chaselev -newgeneric, + any.monad-par-extras ==0.3.3, + any.mtl ==2.2.2, + any.mwc-random ==0.14.0.0, + any.network ==3.1.1.1, + any.network-uri ==2.6.3.0, + any.old-locale ==1.0.0.7, + any.optparse-applicative ==0.15.1.0, + pandoc +embed_data_files +static -trypandoc, + any.pandoc-types ==1.20, + any.parallel ==3.2.2.0, + any.parsec ==3.1.13.0, + any.pem ==0.2.4, + any.pretty ==1.1.3.6, + any.primitive ==0.7.0.1, + any.process ==1.6.5.0, + any.random ==1.1, + any.regex-base ==0.94.0.0, + any.regex-pcre-builtin ==0.95.1.1.8.43, + any.rts ==1.0, + any.safe ==0.3.18, + any.scientific ==0.3.6.2, + scientific -bytestring-builder -integer-simple, + any.skylighting ==0.8.3.2, + skylighting -executable, + any.skylighting-core ==0.8.3.2, + skylighting-core -executable -system-pcre, + any.socks ==0.6.1, + any.split ==0.2.3.4, + any.splitmix ==0.0.4, + splitmix -optimised-mixer +random, + any.statistics ==0.15.2.0, + any.stm ==2.5.0.0, + any.streaming-commons ==0.2.1.2, + streaming-commons -use-bytestring-builder, + any.syb ==0.7.1, + any.tagged ==0.8.6, + tagged +deepseq +transformers, + any.tagsoup ==0.14.8, + any.tasty ==1.2.3, + tasty +clock, + any.tasty-golden ==2.3.3, + tasty-golden -build-example, + any.tasty-hunit ==0.10.0.2, + any.tasty-lua ==0.2.2, + any.tasty-quickcheck ==0.10.1.1, + any.template-haskell ==2.14.0.0, + any.temporary ==1.3, + any.terminfo ==0.4.1.2, + any.texmath ==0.12.0.1, + texmath -executable +network-uri, + any.text ==1.2.3.1, + any.text-conversions ==0.3.0, + any.text-short ==0.1.3, + text-short -asserts, + any.th-abstraction ==0.3.2.0, + any.time ==1.8.0.2, + any.time-compat ==1.9.3, + time-compat -old-locale, + any.tls ==1.5.4, + tls +compat -hans +network, + any.transformers ==0.5.6.2, + any.transformers-compat ==0.6.5, + transformers-compat -five +five-three -four +generic-deriving +mtl -three -two, + any.unbounded-delays ==0.1.1.0, + any.unicode-transforms ==0.3.6, + unicode-transforms -bench-show -dev -has-icu -has-llvm, + any.unix ==2.7.2.2, + any.unordered-containers ==0.2.10.0, + unordered-containers -debug, + any.utf8-string ==1.0.1.1, + any.uuid-types ==1.0.3, + any.vector ==0.12.1.2, + vector +boundschecks -internalchecks -unsafechecks -wall, + any.vector-algorithms ==0.8.0.3, + vector-algorithms +bench +boundschecks -internalchecks -llvm +properties -unsafechecks, + any.vector-binary-instances ==0.2.5.1, + any.vector-th-unbox ==0.2.1.7, + any.wcwidth ==0.0.2, + wcwidth -cli +split-base, + any.weigh ==0.0.16, + any.x509 ==1.7.5, + any.x509-store ==1.6.7, + any.x509-system ==1.6.6, + any.x509-validation ==1.6.11, + any.xml ==1.3.14, + any.zip-archive ==0.4.1, + zip-archive -executable, + any.zlib ==0.6.2.1, + zlib -non-blocking-ffi -pkg-config diff --git a/testing/pandoc/disable-pandoc-citeproc.patch b/testing/pandoc/disable-pandoc-citeproc.patch new file mode 100644 index 0000000000..85b916f244 --- /dev/null +++ b/testing/pandoc/disable-pandoc-citeproc.patch @@ -0,0 +1,20 @@ +Disable cabal citeproc, as we don't accept checking out git-repos during +build. It has to go into an extra package. + +If it is needed please contact the maintainer of this package. + +--- a/cabal.project ++++ b/cabal.project +@@ -3,12 +3,3 @@ + package pandoc + flags: +embed_data_files -trypandoc + ghc-options: -j +RTS -A64m -RTS +- +-package pandoc-citeproc +- flags: +embed_data_files +bibutils -unicode_collation -test_citeproc -debug +- ghc-options: -j +RTS -A64m -RTS +- +-source-repository-package +- type: git +- location: https://github.com/jgm/pandoc-citeproc +- tag: 0.17 |
