summaryrefslogtreecommitdiff
blob: 9a74611225a3fa0a5b7ce017cc8ad622486acf51 (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
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/muttprint/muttprint-0.64.ebuild,v 1.6 2004/06/14 08:49:14 kloeri Exp $

DESCRIPTION="pretty printing of your mails"
HOMEPAGE="http://muttprint.sf.net/"
SRC_URI="mirror://sourceforge/muttprint/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
IUSE=""

DEPEND="virtual/tetex"

src_unpack() {
	unpack ${A}
	cd ${S}
	mv Makefile ${T}/Makefile
	sed -e "s:(docdir)/muttprint:(docdir)/muttprint-${PV}:" \
		${T}/Makefile > Makefile

	#here comes some ugly hacks to install the docs in the right spot
	for lang in de en es it; do
		cd ${S}/doc/manual/$lang
		mv Makefile ${T}/Makefile-$lang
		sed -e "s:(docdir)/muttprint:(docdir)/muttprint-${PV}:" \
			${T}/Makefile-$lang > Makefile
		cd ${S}
	done

}

src_compile() {

	if has_version 'app-text/ptex' ; then
		cp muttprint muttprint.in
		sed -e "s/latex/platex/g" muttprint.in > muttprint
	fi
}

src_install() {
	# understanding the install part of the Makefiles.
	make prefix=${D}/usr docdir=${D}/usr/share/doc/ install || die
}