Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3967
--- /dev/null
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="blackbox mail notification"
+HOMEPAGE="https://sourceforge.net/projects/bbtools"
+SRC_URI="mirror://sourceforge/bbtools/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="
+ dev-lang/perl
+ x11-wm/blackbox
+ x11-libs/libX11
+ x11-libs/libXext"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc4.3.patch
+ "${FILESDIR}"/${P}-gcc4.4.patch
+ "${FILESDIR}"/${P}-shebang.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install () {
+ default
+ dobin scripts/bbmailparsefm.pl
+}
--- /dev/null
+--- a/scripts/bbmailparsefm.pl 2002-10-17 21:33:21.000000000 +0300
++++ b/scripts/bbmailparsefm.pl 2017-02-14 19:49:11.371106962 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl
++#!/usr/bin/env perl
+ #
+ # Quickie script to parse fetchmail -c output
+ # (IMAP proto) for use with bbmail