Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pep/
Date: Wed, 15 Aug 2018 19:53:52
Message-Id: 1534362809.f957dd20b2016704813be78a6f8c44f3de003f9c.asturm@gentoo
1 commit: f957dd20b2016704813be78a6f8c44f3de003f9c
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 1 16:06:20 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 15 19:53:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f957dd20
7
8 app-text/pep: EAPI7, improve ebuild
9
10 app-text/pep/pep-2.8-r2.ebuild | 50 ++++++++++++++++++++++++++++++++++++++++++
11 1 file changed, 50 insertions(+)
12
13 diff --git a/app-text/pep/pep-2.8-r2.ebuild b/app-text/pep/pep-2.8-r2.ebuild
14 new file mode 100644
15 index 00000000000..8e25853adc3
16 --- /dev/null
17 +++ b/app-text/pep/pep-2.8-r2.ebuild
18 @@ -0,0 +1,50 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=7
23 +
24 +inherit toolchain-funcs flag-o-matic
25 +
26 +DESCRIPTION="General purpose filter and file cleaning program"
27 +HOMEPAGE="http://hannemyr.com/enjoy/pep.html"
28 +SRC_URI="http://hannemyr.com/enjoy/${PN}${PV//./}.zip"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~amd64 ~mips ~ppc ~x86 ~x86-linux ~ppc-macos"
33 +
34 +DEPEND="app-arch/unzip"
35 +
36 +S=${WORKDIR}
37 +
38 +# pep does not come with autconf so here's a patch to configure
39 +# Makefile with the correct path
40 +PATCHES=(
41 + "${FILESDIR}"/${P}-gentoo.patch
42 + "${FILESDIR}"/${P}-include.patch
43 +)
44 +
45 +src_prepare() {
46 + default
47 + # Darwin lacks stricmp and DIRCHAR
48 + if [[ ${CHOST} == *-darwin* ]] ; then
49 + sed -i -e '/^OBJS/s/^\(.*\)$/\1 bdmg.o/' Makefile || die
50 + append-flags "-Dunix" -DSTRICMP
51 + fi
52 +}
53 +
54 +src_compile() {
55 + # make man page too
56 + make Doc/pep.1 || die "make man page failed"
57 + emake CC="$(tc-getCC)"
58 +}
59 +
60 +src_install() {
61 + dobin pep
62 + doman Doc/pep.1
63 +
64 + insinto /usr/share/pep
65 + doins Filters/*
66 +
67 + dodoc aareadme.txt file_id.diz
68 +}