Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/pack/
Date: Sat, 24 Sep 2022 20:07:17
Message-Id: 1664050030.977054cdb1f39eaad3e1cc470cb5db23dde97dbc.mgorny@gentoo
1 commit: 977054cdb1f39eaad3e1cc470cb5db23dde97dbc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 24 20:05:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 20:07:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=977054cd
7
8 app-arch/pack: New package, v0.0.0.1
9
10 A totally random tool that apparently can produce .z files that are
11 compatible with the original pack(1) tool. If someone can find one
12 that's not in Haskell, please, please, tell me.
13
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 app-arch/pack/Manifest | 1 +
17 app-arch/pack/metadata.xml | 11 +++++++++++
18 app-arch/pack/pack-0.0.0.1.ebuild | 35 +++++++++++++++++++++++++++++++++++
19 3 files changed, 47 insertions(+)
20
21 diff --git a/app-arch/pack/Manifest b/app-arch/pack/Manifest
22 new file mode 100644
23 index 000000000000..0256fb512bdc
24 --- /dev/null
25 +++ b/app-arch/pack/Manifest
26 @@ -0,0 +1 @@
27 +DIST pack-0bd29ccae2662ef9ae1fabe707d84e4f84b36d53.tar.gz 3833 BLAKE2B f597746aa99e1cc59af3dd86a030458a2498a0649aae8f7bf9ac008c0bb6a0a26af62e5a4e76c6f8b49b5f0a6e19c0d6714c2a548231a6ce103c361b227757b9 SHA512 a75eb599aa0abcec9d151d5af7128bbbc13f7687dcc15ec5843dffd5e1084598ebabc6c1981a6ee225855435b5c4693ee4c7ad62f4e36f5e0de8205591d42439
28
29 diff --git a/app-arch/pack/metadata.xml b/app-arch/pack/metadata.xml
30 new file mode 100644
31 index 000000000000..daafb9559e2f
32 --- /dev/null
33 +++ b/app-arch/pack/metadata.xml
34 @@ -0,0 +1,11 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>mgorny@g.o</email>
40 + <name>Michał Górny</name>
41 + </maintainer>
42 + <upstream>
43 + <remote-id type="github">koalaman/pack</remote-id>
44 + </upstream>
45 +</pkgmetadata>
46
47 diff --git a/app-arch/pack/pack-0.0.0.1.ebuild b/app-arch/pack/pack-0.0.0.1.ebuild
48 new file mode 100644
49 index 000000000000..e02651bdace9
50 --- /dev/null
51 +++ b/app-arch/pack/pack-0.0.0.1.ebuild
52 @@ -0,0 +1,35 @@
53 +# Copyright 2022 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=8
57 +
58 +inherit haskell-cabal
59 +
60 +EGIT_COMMIT="0bd29ccae2662ef9ae1fabe707d84e4f84b36d53"
61 +MY_P=${PN}-${EGIT_COMMIT}
62 +DESCRIPTION="Haskell implementation of pack compression from the early 1980s"
63 +HOMEPAGE="https://github.com/koalaman/pack/"
64 +SRC_URI="
65 + https://github.com/koalaman/pack/archive/${EGIT_COMMIT}.tar.gz
66 + -> ${MY_P}.tar.gz
67 +"
68 +S=${WORKDIR}/${MY_P}
69 +
70 +LICENSE="public-domain"
71 +SLOT="0"
72 +KEYWORDS="~amd64"
73 +
74 +RDEPEND="
75 + dev-lang/ghc:=
76 +"
77 +BDEPEND="
78 + >=dev-haskell/cabal-1.10
79 +"
80 +
81 +CABAL_FILE=${S}/pack-compression.cabal
82 +
83 +src_prepare() {
84 + sed -i -e '/base/s:&& <4.10::' "${CABAL_FILE}" || die
85 + haskell-cabal_src_prepare
86 + cabal-mksetup
87 +}