From 3fcaa3a3d04381af04d2da4ebb454c6a787e555d Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 15 Sep 2020 00:44:11 +0000 Subject: net-mail/ripmime: port to EAPI 7 Closes: https://bugs.gentoo.org/742233 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James --- net-mail/ripmime/ripmime-1.4.0.10-r1.ebuild | 40 ++++++++++++++++++++++++++ net-mail/ripmime/ripmime-1.4.0.10.ebuild | 44 ----------------------------- 2 files changed, 40 insertions(+), 44 deletions(-) create mode 100644 net-mail/ripmime/ripmime-1.4.0.10-r1.ebuild delete mode 100644 net-mail/ripmime/ripmime-1.4.0.10.ebuild (limited to 'net-mail/ripmime') diff --git a/net-mail/ripmime/ripmime-1.4.0.10-r1.ebuild b/net-mail/ripmime/ripmime-1.4.0.10-r1.ebuild new file mode 100644 index 000000000000..b1ab63c6d983 --- /dev/null +++ b/net-mail/ripmime/ripmime-1.4.0.10-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="extract attachment files out of a MIME-encoded email pack" +HOMEPAGE="http://pldaniels.com/ripmime/" +SRC_URI="http://www.pldaniels.com/ripmime/${P}.tar.gz" + +LICENSE="Sendmail" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" + +PATCHES=( + "${FILESDIR}/${PN}-1.4.0.9-makefile.patch" + "${FILESDIR}/${PN}-1.4.0.9-buffer-overflow.patch" +) + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + CFLAGS="${CFLAGS}" \ + default solib +} + +src_install() { + dobin ripmime + doman ripmime.1 + dodoc CHANGELOG INSTALL README TODO + + insinto /usr/include/ripmime + doins mime.h ripmime-api.h + + dolib.so libripmime.so.1.4.0 + dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so + dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so.1 +} diff --git a/net-mail/ripmime/ripmime-1.4.0.10.ebuild b/net-mail/ripmime/ripmime-1.4.0.10.ebuild deleted file mode 100644 index 36bdac2eeef9..000000000000 --- a/net-mail/ripmime/ripmime-1.4.0.10.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="4" - -inherit eutils multilib toolchain-funcs - -DESCRIPTION="extract attachment files out of a MIME-encoded email pack" -HOMEPAGE="http://pldaniels.com/ripmime/" -SRC_URI="http://www.pldaniels.com/ripmime/${P}.tar.gz" - -LICENSE="Sendmail" -SLOT="0" -KEYWORDS="amd64 ppc sparc x86" -IUSE="static-libs" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-1.4.0.9-makefile.patch \ - "${FILESDIR}"/${PN}-1.4.0.9-buffer-overflow.patch -} - -src_compile() { - local maketargets="default solib" - use static-libs && maketargets="${maketargets} libripmime.a" - - emake CC="$(tc-getCC)" AR="$(tc-getAR)" CFLAGS="${CFLAGS}" ${maketargets} -} - -src_install() { - dobin ripmime - doman ripmime.1 - dodoc CHANGELOG INSTALL README TODO - - insinto /usr/include/ripmime - doins mime.h ripmime-api.h - - dolib.so libripmime.so.1.4.0 - dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so - dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so.1 - - if use static-libs ; then - dolib.a libripmime.a - fi -} -- cgit v1.2.3-65-gdbad