summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild')
-rw-r--r--app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild b/app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild
new file mode 100644
index 000000000000..8925b62345b5
--- /dev/null
+++ b/app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild,v 1.1 2012/07/25 17:14:15 pacho Exp $
+
+EAPI=4
+
+MY_PV="${PV/_p/-}"
+DESCRIPTION="Execute programs via entries in the mailcap file"
+HOMEPAGE="http://packages.debian.org/unstable/net/mime-support"
+SRC_URI="mirror://debian/pool/main/m/mime-support/mime-support_${MY_PV}.tar.gz"
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5.6
+ app-misc/mime-types"
+
+S=${WORKDIR}/mime-support
+
+src_prepare() {
+ sed -i run-mailcap -e 's:^\(\$xtermprgrm=\)"/usr/bin/x-terminal-emulator":\1$ENV{XTERMCMD} || "xterm":'
+}
+
+src_install() {
+ dobin run-mailcap
+ newman run-mailcap.man run-mailcap.1
+ newman mailcap.man mailcap.4
+ for i in compose edit see print; do
+ dosym run-mailcap /usr/bin/$i
+ dosym run-mailcap.1 /usr/share/man/man1/$i.1
+ done
+}