blob: 403b1b0288a61ae57ecf89a75b9b67c52c89a452 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-terms/aterm/aterm-0.4.2-r9.ebuild,v 1.28 2006/02/13 21:39:02 spock Exp $
inherit eutils flag-o-matic
DESCRIPTION="A terminal emulator with transparency support as well as rxvt backwards compatibility"
HOMEPAGE="http://aterm.sourceforge.net"
SRC_URI="mirror://sourceforge/aterm/${P}.tar.bz2
cjk? ( http://dev.gentoo.org/~spock/portage/distfiles/aterm-0.4.2-ja.patch )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ppc-macos sparc x86"
IUSE="cjk"
RDEPEND="media-libs/jpeg
media-libs/libpng
|| ( (
x11-libs/libXmu
x11-libs/libXt
x11-libs/libX11
x11-libs/libXpm
x11-libs/libICE
x11-libs/libSM
)
virtual/x11
)"
DEPEND="${RDEPEND}
|| ( x11-proto/xproto virtual/x11 )"
src_unpack() {
unpack ${P}.tar.bz2
cd ${S}/src
cp feature.h feature.h.orig
sed "s:\(#define LINUX_KEYS\):/\*\1\*/:" \
feature.h.orig > feature.h
sed -i "s: KeySym keysym;: KeySym keysym = 0;:" command.c
cd ${S}
epatch ${FILESDIR}/aterm-0.4.2-borderless.patch
epatch ${FILESDIR}/aterm-0.4.2-paste.patch
epatch ${FILESDIR}/aterm-0.4.2-paste_mouse_outside.patch
if use cjk ; then
epatch ${DISTDIR}/aterm-0.4.2-ja.patch
else
epatch ${FILESDIR}/aterm-0.4.2-copynpaste-r3.patch
fi
epatch ${FILESDIR}/aterm-0.4.2-patch-pack000.patch
}
src_compile() {
local myconf
append-ldflags $(bindnow-flags)
# You can't --enable-big5 with aterm-0.4.2-ja.patch
# I think it's very bad thing but as nobody complains it
# and we don't have per-language flag atm, I stick to
# use --enable-kanji/--enable-thai (and leave --enable-big5)
use cjk && myconf="$myconf
--enable-kanji
--enable-thai
--enable-xim
--enable-linespace"
econf \
--enable-transparency \
--enable-fading \
--enable-background-image \
--enable-menubar \
--enable-graphics \
--enable-utmp \
--with-x \
${myconf} || die
sed -i -re 's#^XLIB = (.*)#XLIB = \1 -lXmu#' src/Makefile
emake || die
}
src_install () {
make DESTDIR=${D} install || die
fowners root:utmp /usr/bin/aterm
fperms g+s /usr/bin/aterm
doman doc/aterm.1
dodoc ChangeLog INSTALL doc/BUGS doc/FAQ doc/README.*
docinto menu
dodoc doc/menu/*
dohtml -r .
}
pkg_postinst () {
einfo
einfo "Hint: you can copy text from aterm to the clipboard by holding the ALT key"
einfo "while highlighting the text."
einfo
}
|