summaryrefslogtreecommitdiff
blob: 549b9202a3ede0330f009436bb12e2fc4aedad53 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/eterm-0.9.1-r4.ebuild,v 1.4 2002/07/08 21:55:56 aliz Exp $

MY_PN=${PN/et/Et}
MY_P=${MY_PN}-${PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="A vt102 terminal emulator for X"
SRC_URI="http://www.eterm.org/download/${MY_P}.tar.gz
		 http://www.eterm.org/download/${MY_PN}-bg-${PV}.tar.gz
		 http://www.eterm.org/themes/0.9.1/glass-${MY_PN}-theme.tar.gz"
HOMEPAGE="http://eterm.org/"

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

DEPEND="virtual/x11
	>=x11-libs/libast-0.4-r1
	imlib? ( media-libs/imlib2 )"

src_unpack() {
	unpack ${MY_P}.tar.gz
	cd ${S}
	unpack ${MY_PN}-bg-${PV}.tar.gz
}

src_compile() {
	
	# always disable mmx because binutils 2.11.92+ seems to be broken for this package
	local myconf="--disable-mmx"

	use imlib \
		&& myconf="${myconf} --with-imlib --enable-trans" \
		|| myconf="${myconf} --without-imlib --disable-trans"

    econf \
		--with-x \
		--enable-multi-charset \
		--with-delete=execute \
		${myconf} || die
		
    emake || die

}

src_install () {

    cd ${S}
	dodir /usr/share/terminfo
    make 	\
		DESTDIR=${D}	\
		TIC="tic -o ${D}/usr/share/terminfo"	\
		install || die

    dodoc COPYING ChangeLog README ReleaseNotes
    dodoc bg/README.backgrounds
	cd ${D}/usr/share/Eterm/themes
	unpack glass-Eterm-theme.tar.gz
}