Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/cksfv/, app-arch/cksfv/files/
Date: Sun, 18 Apr 2021 01:38:44
Message-Id: 1618709897.bbfac96eed0ebaef8b9554271cdaf3f905d9c96a.sam@gentoo
1 commit: bbfac96eed0ebaef8b9554271cdaf3f905d9c96a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 17 01:36:57 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 18 01:38:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbfac96e
7
8 app-arch/cksfv: bump to 1.3.15 (with DESTDIR fix)
9
10 Noticed there was a release after 11 years(!) so bumped
11 while there for the VariableScope issue. Now respects ${DESTDIR}.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 app-arch/cksfv/Manifest | 1 +
16 app-arch/cksfv/cksfv-1.3.15.ebuild | 27 +++++++++++++++++++++++++
17 app-arch/cksfv/files/cksfv-1.3.15-destdir.patch | 18 +++++++++++++++++
18 3 files changed, 46 insertions(+)
19
20 diff --git a/app-arch/cksfv/Manifest b/app-arch/cksfv/Manifest
21 index 516489a30ac..d3a6b50f425 100644
22 --- a/app-arch/cksfv/Manifest
23 +++ b/app-arch/cksfv/Manifest
24 @@ -1 +1,2 @@
25 DIST cksfv-1.3.14.tar.bz2 26114 BLAKE2B 696ae3499bc2b1c566a40da202b70d30777ee07a7923ac567345872098626c82820a9bb75b711915e2274a3e0f1d7804ba58f8ce41dcca375391d778ba135a02 SHA512 016c2f61632980678957fe4b5bc9ecb30360efd548ff09bfbb7a31cc6fc36f6fe7936d3d819fe468a6208c71f8b625662aa3ae0abd668435d7273e149d7e4519
26 +DIST cksfv-1.3.15.tar.bz2 27282 BLAKE2B c1df7bac982815915327753d8f6b888cc53395a0066bc5b34fb310d540c50c3006be2b9f31ebfac269d961126b0046a5b63fbbbe9c05c265953b2d2a94602a7a SHA512 a0b5286e0dce610e8b482a55cf8af38f8f8256e175435b6f2518c6566ea844c3cf2981f96c7600c7eb9b23b35cf19f1b55f540ba0f73f1267e4593e744858d43
27
28 diff --git a/app-arch/cksfv/cksfv-1.3.15.ebuild b/app-arch/cksfv/cksfv-1.3.15.ebuild
29 new file mode 100644
30 index 00000000000..f6c62153bb3
31 --- /dev/null
32 +++ b/app-arch/cksfv/cksfv-1.3.15.ebuild
33 @@ -0,0 +1,27 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit toolchain-funcs
40 +
41 +DESCRIPTION="SFV checksum utility (simple file verification)"
42 +HOMEPAGE="http://zakalwe.fi/~shd/foss/cksfv/"
43 +SRC_URI="http://zakalwe.fi/~shd/foss/cksfv/files/${P}.tar.bz2"
44 +
45 +LICENSE="GPL-2+"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +
49 +PATCHES=(
50 + "${FILESDIR}"/${PN}-1.3.15-destdir.patch
51 +)
52 +
53 +src_configure() {
54 + # note: not an autoconf configure script
55 + ./configure \
56 + --compiler="$(tc-getCC)" \
57 + --prefix="${EPREFIX}"/usr \
58 + --bindir="${EPREFIX}"/usr/bin \
59 + --mandir="${EPREFIX}"/usr/share/man || die
60 +}
61
62 diff --git a/app-arch/cksfv/files/cksfv-1.3.15-destdir.patch b/app-arch/cksfv/files/cksfv-1.3.15-destdir.patch
63 new file mode 100644
64 index 00000000000..c9ae19b442d
65 --- /dev/null
66 +++ b/app-arch/cksfv/files/cksfv-1.3.15-destdir.patch
67 @@ -0,0 +1,18 @@
68 +The build system doesn't know about DESTDIR which is a problem for us
69 +when we want to have isolation in our phases (src_configure shouldn't
70 +need to know ${ED}).
71 +--- a/Makefile.in
72 ++++ b/Makefile.in
73 +@@ -23,9 +23,9 @@ all:
74 + cd src && $(MAKE)
75 +
76 + install: all
77 +- mkdir -p "$(BINDIR)" "$(MANDIR)/man1/"
78 +- install src/cksfv "$(BINDIR)"
79 +- install -m 644 cksfv.1 "$(MANDIR)/man1/"
80 ++ mkdir -p "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)/man1/"
81 ++ install src/cksfv "$(DESTDIR)$(BINDIR)"
82 ++ install -m 644 cksfv.1 "$(DESTDIR)$(MANDIR)/man1/"
83 +
84 + clean:
85 + rm -f *.o *~ *.core core