From 3b6baf9b592a723d223ba53072b325fd96f73e0f Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Sun, 8 Jul 2018 15:17:07 +0200 Subject: x11-plugins/wmail: EAPI7, improve ebuild --- .../wmail/files/wmail-2.0.maildir-parse-from.patch | 4 +- .../files/wmail-2.0.support-libdockapp-0.5.0.patch | 4 +- x11-plugins/wmail/wmail-2.0-r5.ebuild | 45 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 x11-plugins/wmail/wmail-2.0-r5.ebuild (limited to 'x11-plugins/wmail') diff --git a/x11-plugins/wmail/files/wmail-2.0.maildir-parse-from.patch b/x11-plugins/wmail/files/wmail-2.0.maildir-parse-from.patch index c39329286a57..abdfd489412e 100644 --- a/x11-plugins/wmail/files/wmail-2.0.maildir-parse-from.patch +++ b/x11-plugins/wmail/files/wmail-2.0.maildir-parse-from.patch @@ -1,5 +1,5 @@ ---- src/wmail.c 2007-01-26 19:17:08.000000000 +0100 -+++ src/wmail.c.new 2007-01-26 19:17:02.000000000 +0100 +--- a/src/wmail.c 2007-01-26 19:17:08.000000000 +0100 ++++ b/src/wmail.c 2007-01-26 19:17:02.000000000 +0100 @@ -871,6 +871,9 @@ InsertName( ParseFromField( buf+6 ), checksum, isNewMail ? FLAG_INITIAL : FLAG_READ ); diff --git a/x11-plugins/wmail/files/wmail-2.0.support-libdockapp-0.5.0.patch b/x11-plugins/wmail/files/wmail-2.0.support-libdockapp-0.5.0.patch index b9202b36d3f4..593cf640b7e1 100644 --- a/x11-plugins/wmail/files/wmail-2.0.support-libdockapp-0.5.0.patch +++ b/x11-plugins/wmail/files/wmail-2.0.support-libdockapp-0.5.0.patch @@ -1,5 +1,5 @@ ---- configure 2002-08-12 22:59:48.000000000 +0200 -+++ configure 2004-08-31 15:42:52.979115744 +0200 +--- a/configure 2002-08-12 22:59:48.000000000 +0200 ++++ b/configure 2004-08-31 15:42:52.979115744 +0200 @@ -2386,8 +2386,8 @@ fi diff --git a/x11-plugins/wmail/wmail-2.0-r5.ebuild b/x11-plugins/wmail/wmail-2.0-r5.ebuild new file mode 100644 index 000000000000..6075abff09ae --- /dev/null +++ b/x11-plugins/wmail/wmail-2.0-r5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Window Maker dock application showing incoming mail" +HOMEPAGE="https://www.dockapps.net/wmail" +SRC_URI="https://www.dockapps.net/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +RDEPEND=">=x11-libs/libdockapp-0.7:=" + +src_prepare() { + default + eapply "${FILESDIR}"/${P}.support-libdockapp-0.5.0.patch + + # make from parsing in maildir format faster, thanks + # to Stanislav Kuchar + eapply "${FILESDIR}"/${P}.maildir-parse-from.patch + + # fix LDFLAGS ordering, see bug #248620 + sed -i 's/$(LIBS) -o $@ $^/-o $@ $^ $(LIBS)/' "${S}/src/Makefile.in" || die + + # Honour Gentoo LDFLAGS, see bug #337407 + sed -i 's/-o $@ $^ $(LIBS)/$(LDFLAGS) -o $@ $^ $(LIBS)/' "${S}/src/Makefile.in" || die + sed -e 's###' -i src/*.c || die +} + +src_configure() { + econf --enable-delt-xpms +} + +src_compile(){ + emake CC="$(tc-getCC)" +} + +src_install() { + dobin src/wmail + dodoc README wmailrc-sample +} -- cgit v1.2.3-65-gdbad