blob: 17612f100d533769239117d1216f4fe350ad4148 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/aee/aee-2.2.15b.ebuild,v 1.1 2011/01/20 14:30:08 hattya Exp $
EAPI="3"
inherit eutils toolchain-funcs
IUSE="X"
DESCRIPTION="An easy to use text editor."
HOMEPAGE="http://mahon.cwx.net/"
SRC_URI="http://mahon.cwx.net/sources/${P}.tar.gz"
LICENSE="Artistic"
KEYWORDS="~x86"
SLOT="0"
DEPEND="X? ( x11-libs/libX11 )"
src_prepare() {
epatch "${FILESDIR}"/${PN}-*.diff
sed -i \
-e "s/make -/\$(MAKE) -/g" \
-e "/^buildaee/s/$/ localaee/" \
-e "/^buildxae/s/$/ localxae/" \
Makefile \
|| die
sed -i \
-e "s/\([\t ]\)cc /\1\\\\\$(CC) /" \
-e "/CFLAGS =/s/\" >/ \\\\\$(LDFLAGS)\" >/" \
-e "/other_cflag/s/ \${strip_option}//" \
create.mk.{aee,xae} \
|| die
}
src_compile() {
local target="aee"
if use X; then
target="both"
fi
emake ${target} || die
}
src_install() {
dobin aee
dosym aee /usr/bin/rae
doman aee.1
dodoc Changes README.aee aee.i18n.guide aee.msg
insinto /usr/share/${PN}
doins help.ae
if use X; then
dobin xae
dosym xae /usr/bin/rxae
fi
}
|