summaryrefslogtreecommitdiff
path: root/app-text/pep
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
commit43793fab84041cfc5c60c0151d1591b8a69fb24a (patch)
tree6208a7f4fc744684fce0f55acbb47511acace498 /app-text/pep
parent28e3d252dc8ac8a5635206dfefe1cfe05058d1db (diff)
gentoo resync : 25.08.2018
Diffstat (limited to 'app-text/pep')
-rw-r--r--app-text/pep/Manifest1
-rw-r--r--app-text/pep/pep-2.8-r2.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/app-text/pep/Manifest b/app-text/pep/Manifest
index 338d78f49f02..61c7b2c9e486 100644
--- a/app-text/pep/Manifest
+++ b/app-text/pep/Manifest
@@ -2,4 +2,5 @@ AUX pep-2.8-gentoo.patch 494 BLAKE2B 62beadd57cf83f21f92dc9597265f7ef672aa19e743
AUX pep-2.8-include.patch 239 BLAKE2B fd411d4e3753314ae93634bd24093524f364b1603671149722d31fb42e70977e3c97a76a2902a891aebd4e0f69632c5cd6da7996732195cf4a2d5005f5996fd4 SHA512 980ac8e710b2c0213c9ab6cb298274ca3eef21fdf9cd980e62530b98e913784cb5346fc13613b9723eaa6352383d31079d74749e21ac322edde86863344eff80
DIST pep28.zip 83969 BLAKE2B 76dd8867b04299a7d616a1487a4b7812349a076f51b2828e01b45ef4790d890436eed147b51c2591dec8936b339a19fad3bb41eeafca8cda8c9904afbd2107e0 SHA512 c987b8f23409475e1882e06a87366a1692a7d859af907b4154715a4caf4475d6c266162ede019b29d65400fe72e115948d26e9c9396d628ea5f35ca472548ec8
EBUILD pep-2.8-r1.ebuild 1149 BLAKE2B cc4ab4bd998e1762e9c474af66ca3c578b425fffd4e5166f3840a57a26d6c9831fa1ec0263886493e04dadf515e7a8589fade40b1dfb815abed5083fe503df50 SHA512 b4f5ca5770d0127f20b4b2c6145fa68703c5751df0dfac7739046e823dfd3f5193ecef150804bf59282c1286903d113727f3f30460258d3fea1d9d1116caafe6
+EBUILD pep-2.8-r2.ebuild 1048 BLAKE2B 5f5dd164c759d67445167a01f12f62e75263735530bcb29409465b4f699f3e1b5fde9af17e12827351419e8f0d05cb6879316e642877052ee970f6e17c9281c0 SHA512 d42b409655b3a126f7486e5e68e7a89aeb3b47a120b03e81ebac581d44b711ad379a8077b66ba9ab3e4c76acd108348d728416ac64399cb6952ab7764e396e8c
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/app-text/pep/pep-2.8-r2.ebuild b/app-text/pep/pep-2.8-r2.ebuild
new file mode 100644
index 000000000000..8e25853adc30
--- /dev/null
+++ b/app-text/pep/pep-2.8-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="General purpose filter and file cleaning program"
+HOMEPAGE="http://hannemyr.com/enjoy/pep.html"
+SRC_URI="http://hannemyr.com/enjoy/${PN}${PV//./}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~x86 ~x86-linux ~ppc-macos"
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+# pep does not come with autconf so here's a patch to configure
+# Makefile with the correct path
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-include.patch
+)
+
+src_prepare() {
+ default
+ # Darwin lacks stricmp and DIRCHAR
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ sed -i -e '/^OBJS/s/^\(.*\)$/\1 bdmg.o/' Makefile || die
+ append-flags "-Dunix" -DSTRICMP
+ fi
+}
+
+src_compile() {
+ # make man page too
+ make Doc/pep.1 || die "make man page failed"
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin pep
+ doman Doc/pep.1
+
+ insinto /usr/share/pep
+ doins Filters/*
+
+ dodoc aareadme.txt file_id.diz
+}