summaryrefslogtreecommitdiff
blob: 32af840c21eedb1c5504dd7bac0c3eab2bbb36e8 (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
# Copyright 1999-2003 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.2 2003/06/29 23:17:15 aliz 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"

DEPEND="app-text/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_install() {
	# understanding the install part of the Makefiles.
	make prefix=${D}/usr docdir=${D}/usr/share/doc/ install || die
}