blob: b47e3525f1c8e548f8017d4d62b52515ae8dd679 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 1999-2004 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.26_p1.ebuild,v 1.4 2004/06/24 22:32:13 agriffis Exp $
MY_PV="${PV/_p/-}"
DESCRIPTION="Execute programs via entries in the mailcap file"
HOMEPAGE="http://packages.debian.org/unstable/net/mime-support.html"
SRC_URI="mirror://debian/pool/main/m/mime-support/mime-support_${MY_PV}.tar.gz"
LICENSE="freedist"
SLOT="0"
KEYWORDS="x86 ppc ~sparc ~mips ~alpha ~hppa ~amd64"
IUSE=""
DEPEND=""
RDEPEND=">=dev-lang/perl-5.6*"
S=${WORKDIR}/mime-support
src_compile() {
sed -i run-mailcap -e 's:^\(\$xtermprgrm=\)"/usr/bin/x-terminal-emulator":\1$ENV{XTERMCMD} || "xterm":'
cp run-mailcap.man run-mailcap.1
cp mailcap.man mailcap.5
}
src_install() {
dobin run-mailcap
doman run-mailcap.1 mailcap.5
insinto /etc
doins mime.types
for i in compose edit see print; do
( cd ${D}/usr/bin && ln -s run-mailcap $i )
( cd ${D}/usr/share/man/man1 && ln -s run-mailcap.1 $i.1 )
done
}
|