Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 35CAB7810FE for <~alpine/aports@lists.alpinelinux.org>; Tue, 14 Dec 2021 07:15:30 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dhruvin.dev; s=key1; t=1639465586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9JBZT7Lue03ouoMSxutvr055pGs8Odl2sVj8Xac5cm4=; b=HWuC3tjeM2Y3Cd/WeUDxeg3F1pCTfC56WOvyrgJNxWKtOAikCcZXDShMUQ0XsdJf6ycs7D yficvZyvjJbnV53QtJ1AklH4ZRI2O5tPJ0bLOLgsrHWaMIylmjGc4pELUpHlLJOgoaSSXu +yV1pglceEtmmTVWt1DwRTiqCtCcjNY= From: Dhruvin Gandhi To: ~alpine/aports@lists.alpinelinux.org Cc: Dhruvin Gandhi Subject: [PATCH v4 1/3] testing/hledger: new aport Date: Tue, 14 Dec 2021 12:35:59 +0530 Message-Id: <20211214070601.20821-2-contact@dhruvin.dev> In-Reply-To: <20211214070601.20821-1-contact@dhruvin.dev> References: <20211214070601.20821-1-contact@dhruvin.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: contact@dhruvin.dev --- testing/hledger/APKBUILD | 44 ++++++++ testing/hledger/cabal.project.freeze | 156 +++++++++++++++++++++++++++ 2 files changed, 200 insertions(+) create mode 100644 testing/hledger/APKBUILD create mode 100644 testing/hledger/cabal.project.freeze diff --git a/testing/hledger/APKBUILD b/testing/hledger/APKBUILD new file mode 100644 index 0000000000..8eb95959f1 --- /dev/null +++ b/testing/hledger/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Dhruvin Gandhi +# Maintainer: Dhruvin Gandhi +pkgname=hledger +pkgver=1.24.1 +pkgrel=0 +pkgdesc="Command-line interface for the hledger accounting system" +url="https://hledger.org/hledger.html" +arch="x86_64" # limited by ghc +license="GPL-3.0-only" +makedepends="ghc cabal libffi-dev ncurses-dev" +subpackages="$pkgname-doc $pkgname-bash-completion" +source="https://hackage.haskell.org/package/hledger-$pkgver/hledger-$pkgver.tar.gz + cabal.project.freeze" + +export CABAL_DIR="$srcdir"/cabal + +prepare() { + default_prepare + cp "$srcdir"/cabal.project.freeze . +} + +build() { + cabal update + cabal build --prefix=/usr --enable-relocatable +} + +check() { + cabal test +} + +package() { + local ghcver=$(ghc --version | cut -d " " -f 8) + install -Dm755 \ + "dist-newstyle/build/$arch-linux/ghc-$ghcver/$pkgname-$pkgver/x/$pkgname/build/$pkgname/$pkgname" \ + "$pkgdir"/usr/bin/$pkgname + install -Dm644 $pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1 + install -Dm644 shell-completion/$pkgname-completion.bash \ + "$pkgdir"/usr/share/bash-completion/completions/$pkgname +} + +sha512sums=" +0941258f7c6f699967261eaf9e20c1f81f6694b8f559ac1e729f37cff64dce3b787447f69c222115437318e8ccd6c4273e52befa41b3419f8fb4cc131c7fcdf7 hledger-1.24.1.tar.gz +fc86ff74ad6a01e844ffba7072ce23c705c9e2c2be81542687d1295ec33fa892ba8d2b1a341eaac3afae27d9bdb84cb523c9c696581c9ba8d6a99a8a62a5e282 cabal.project.freeze +" diff --git a/testing/hledger/cabal.project.freeze b/testing/hledger/cabal.project.freeze new file mode 100644 index 0000000000..c9a8df42d4 --- /dev/null +++ b/testing/hledger/cabal.project.freeze @@ -0,0 +1,156 @@ +active-repositories: hackage.haskell.org:merge +constraints: any.Cabal ==3.4.0.0, + any.Decimal ==0.5.2, + any.Diff ==0.4.0, + any.Glob ==0.10.2, + any.Only ==0.1, + any.aeson ==1.5.6.0, + aeson -bytestring-builder -cffi -developer -fast, + any.aeson-pretty ==0.8.9, + aeson-pretty -lib-only, + any.ansi-terminal ==0.11.1, + ansi-terminal -example, + any.ansi-wl-pprint ==0.6.9, + ansi-wl-pprint -example, + any.array ==0.5.4.0, + any.assoc ==1.0.2, + any.attoparsec ==0.14.3, + attoparsec -developer, + any.base ==4.15.0.0, + any.base-compat ==0.12.1, + any.base-compat-batteries ==0.12.1, + any.base-orphans ==0.8.6, + any.bifunctors ==5.5.11, + bifunctors +semigroups +tagged, + any.binary ==0.8.8.0, + any.blaze-builder ==0.4.2.2, + any.blaze-html ==0.9.1.2, + any.blaze-markup ==0.8.2.8, + any.bytestring ==0.10.12.1, + any.cabal-doctest ==1.0.9, + any.call-stack ==0.4.0, + any.case-insensitive ==1.2.1.0, + any.cassava ==0.5.2.0, + cassava -bytestring--lt-0_10_4, + any.cassava-megaparsec ==2.0.4, + cassava-megaparsec -dev, + any.clock ==0.8.2, + clock -llvm, + any.cmdargs ==0.10.21, + cmdargs +quotation -testprog, + any.colour ==2.3.6, + any.comonad ==5.0.8, + comonad +containers +distributive +indexed-traversable, + any.containers ==0.6.4.1, + any.control-monad-free ==0.6.2, + any.csv ==0.1.2, + 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.data-fix ==0.3.2, + any.deepseq ==1.4.5.0, + any.directory ==1.3.6.1, + any.distributive ==0.6.2.1, + distributive +semigroups +tagged, + any.dlist ==1.0, + dlist -werror, + any.doclayout ==0.3.1.1, + any.emojis ==0.1.2, + any.exceptions ==0.10.4, + any.extra ==1.7.10, + any.file-embed ==0.0.15.0, + any.filepath ==1.4.2.1, + any.ghc-bignum ==1.0, + any.ghc-boot-th ==9.0.1, + any.ghc-prim ==0.7.0, + any.githash ==0.1.6.2, + any.hashable ==1.3.5.0, + hashable +integer-gmp -random-initial-seed, + any.hashtables ==1.2.4.2, + hashtables -bounds-checking -debug -detailed-profiling -portable -sse42 +unsafe-tricks, + any.haskeline ==0.8.1.0, + hledger +terminfo +threaded, + any.hledger-lib ==1.24.1, + any.html ==1.0.1.2, + any.indexed-traversable ==0.1.2, + any.integer-logarithms ==1.0.3.1, + integer-logarithms -check-bounds +integer-gmp, + any.lucid ==2.11.0, + any.math-functions ==0.3.4.2, + math-functions +system-erf +system-expm1, + any.megaparsec ==9.2.0, + megaparsec -dev, + any.microlens ==0.4.12.0, + any.microlens-th ==0.4.3.10, + any.mmorph ==1.2.0, + any.mtl ==2.2.2, + any.old-locale ==1.0.0.7, + any.optparse-applicative ==0.16.1.0, + optparse-applicative +process, + any.parsec ==3.1.14.0, + any.parser-combinators ==1.3.0, + parser-combinators -dev, + any.pretty ==1.1.3.6, + any.pretty-simple ==4.0.0.0, + pretty-simple -buildexample -buildexe, + any.prettyprinter ==1.7.1, + prettyprinter -buildreadme +text, + any.prettyprinter-ansi-terminal ==1.1.3, + any.primitive ==0.7.3.0, + any.process ==1.6.11.0, + any.random ==1.2.1, + any.regex-base ==0.94.0.2, + any.regex-tdfa ==1.3.1.1, + regex-tdfa -force-o2, + any.rts ==1.0, + any.safe ==0.3.19, + any.scientific ==0.3.7.0, + scientific -bytestring-builder -integer-simple, + any.shakespeare ==2.0.25, + shakespeare -test_coffee -test_export -test_roy, + any.split ==0.2.3.4, + any.splitmix ==0.1.0.4, + splitmix -optimised-mixer, + any.stm ==2.5.0.0, + any.strict ==0.4.0.1, + strict +assoc, + any.tabular ==0.2.2.8, + any.tagged ==0.8.6.1, + tagged +deepseq +transformers, + any.tasty ==1.4.2.1, + tasty +clock +unix, + any.tasty-hunit ==0.10.0.3, + any.template-haskell ==2.17.0.0, + any.temporary ==1.3, + any.terminfo ==0.4.1.4, + any.text ==1.2.4.1, + any.text-short ==0.1.4, + text-short -asserts, + any.th-abstraction ==0.4.3.0, + any.th-compat ==0.1.3, + any.th-lift ==0.8.2, + any.these ==1.1.1.1, + these +assoc, + any.time ==1.9.3, + any.time-compat ==1.9.6.1, + time-compat -old-locale, + any.timeit ==2.0, + any.transformers ==0.5.6.2, + any.transformers-compat ==0.7.1, + transformers-compat -five +five-three -four +generic-deriving +mtl -three -two, + any.uglymemo ==0.1.0.1, + any.unbounded-delays ==0.1.1.1, + any.unix ==2.7.2.2, + any.unordered-containers ==0.2.16.0, + unordered-containers -debug, + any.utf8-string ==1.0.2, + any.utility-ht ==0.0.16, + any.uuid-types ==1.0.5, + any.vector ==0.12.3.1, + vector +boundschecks -internalchecks -unsafechecks -wall, + any.wcwidth ==0.0.2, + wcwidth -cli +split-base, + any.wizards ==1.0.3 +index-state: hackage.haskell.org 2021-12-14T06:08:15Z -- 2.34.1