summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-11-27 12:11:50 +0100
committerDavid Seifert <soap@gentoo.org>2017-11-27 12:21:04 +0100
commit1814c095b85f98711b7299e4d0303a9df661dd6a (patch)
tree9adb1650e7819ff3f20190d0f31b0c22c740aca5
parentnet-mail/signify: Port to EAPI 6 (diff)
downloadgentoo-1814c095b85f98711b7299e4d0303a9df661dd6a.tar.gz
gentoo-1814c095b85f98711b7299e4d0303a9df661dd6a.tar.bz2
gentoo-1814c095b85f98711b7299e4d0303a9df661dd6a.zip
net-mail/randomsig: Port to EAPI 6
Package-Manager: Portage-2.3.16, Repoman-2.3.6
-rw-r--r--net-mail/randomsig/Manifest2
-rw-r--r--net-mail/randomsig/randomsig-1.10.0.ebuild38
2 files changed, 21 insertions, 19 deletions
diff --git a/net-mail/randomsig/Manifest b/net-mail/randomsig/Manifest
index 0cc9f9ad79c2..859bf25456c3 100644
--- a/net-mail/randomsig/Manifest
+++ b/net-mail/randomsig/Manifest
@@ -1 +1 @@
-DIST randomsig-v1.10.0.tar.gz 24910 SHA256 2e01bfbbc7f5dfe4e1f773fbfa2209b1e7f4074997be42204abbc6bf045ef9c6 SHA512 eb47bd017dee819e7b7151a47f5aca03e688e3aa9a4b9bf4882a4df51c6fcc1880e382b02d68d0c1d3a773b1179d5abb0782ec4d6a7649be226151e9e2579408 WHIRLPOOL ddae4cf9101cfd0406945191c0565c5315775f8691b36007a5b6175ad1977ed1ee9755a326839965a72102e944f8a58050ea6fc6e6b63274415c20a6896ef167
+DIST randomsig-v1.10.0.tar.gz 24910 BLAKE2B 13bfbf39cea7c7d348f5a91dd5700a2e91a93e574e6f1c12afd86d72c7868fd1a89123f52c897d9fff0b765e968980bee69927435a1b24f7f15e81b5f6a025ab SHA512 eb47bd017dee819e7b7151a47f5aca03e688e3aa9a4b9bf4882a4df51c6fcc1880e382b02d68d0c1d3a773b1179d5abb0782ec4d6a7649be226151e9e2579408
diff --git a/net-mail/randomsig/randomsig-1.10.0.ebuild b/net-mail/randomsig/randomsig-1.10.0.ebuild
index f3b6f0000e80..7ef507fc5e15 100644
--- a/net-mail/randomsig/randomsig-1.10.0.ebuild
+++ b/net-mail/randomsig/randomsig-1.10.0.ebuild
@@ -1,34 +1,36 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+EAPI=6
+
MY_P=${PN}-v${PV}
-S=${WORKDIR}/${MY_P}
+
DESCRIPTION="randomsig - perl script for generating random .signature files"
HOMEPAGE="http://suso.suso.org/programs/randomsig/"
-DEPEND="dev-lang/perl"
SRC_URI="http://suso.suso.org/programs/randomsig/downloads/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 s390 sparc x86"
-IUSE=""
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- cp Makefile Makefile.orig
- cp randomsig randomsig.orig
- sed -e "s:/usr/local/bin:/usr/bin:" \
- -e "s:/usr/local/etc:/etc:" \
- Makefile.orig > Makefile
-
- sed -e "s:/usr/local/etc:/etc:" \
- randomsig.orig > randomsig
+
+RDEPEND="dev-lang/perl"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+
+ sed -e "s:/usr/local/bin:${EPREFIX}/usr/bin:" \
+ -e "s:/usr/local/etc:${EPREFIX}/etc:" \
+ -i Makefile || die
+ sed -e "s:/usr/local/etc:${EPREFIX}/etc:" \
+ -i randomsig || die
}
-src_install () {
+src_install() {
dobin randomsig
- dodoc README BUGS LICENSE MANIFEST COPYING TODO
+ einstalldocs
insinto /etc/randomsig
doins .randomsigrc .sigquotes .sigcancel .sigread