blob: 3cb7f9cd8124def00885a2736366614e179a2f59 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-editors/fte/fte-20020324.ebuild,v 1.7 2002/08/06 16:23:24 gerk Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Lightweight text-mode editor"
SRC_URI="http://unc.dl.sourceforge.net/sourceforge/fte/${P}-src.zip
http://telia.dl.sourceforge.net/sourceforge/fte/${P}-src.zip
http://unc.dl.sourceforge.net/sourceforge/fte/${P}-common.zip
http://telia.dl.sourceforge.net/sourceforge/fte/${P}-common.zip"
HOMEPAGE="http://fte.sourceforge.net"
RDEPEND=">=sys-libs/ncurses-5.2
gpm? ( >=sys-libs/gpm-1.20 )"
DEPEND="${RDEPEND}
app-arch/unzip
X? ( virtual/x11 )"
TARGETS=""
if [ "`use slang`" ] ; then
TARGETS="${TARGETS} sfte"
fi
if [ "`use X`" ] ; then
TARGETS="${TARGETS} xfte"
fi
if [ "`use gpm`" ] ; then
TARGETS="${TARGETS} vfte"
fi
SLOT="0"
LICENSE="GPL"
KEYWORDS="x86 ppc"
src_unpack() {
cd ${WORKDIR}
unpack fte-20020324-src.zip
unpack fte-20020324-common.zip
mv fte fte-20020324
cd ${S} # ; patch -p0 < ${FILESDIR}/${PF}-gentoo.diff
cp src/fte-unix.mak src/fte-unix.mak.orig
cat src/fte-unix.mak.orig | \
sed "s/@targets@/${TARGETS}/" | \
sed "s/@cflags@/${CFLAGS}/" \
> src/fte-unix.mak
}
src_compile() {
DEFFLAGS="PREFIX=/usr CONFIGDIR=/usr/share/fte \
DEFAULT_FTE_CONFIG=../config/main.fte OPTIMIZE="
emake $DEFFLAGS TARGETS="$TARGETS" all || die
cd config
../src/cfte main.fte ../src/system.fterc
}
src_install () {
local files
into /usr
files="${TARGETS} cfte compkeys"
for i in ${files} ; do
dobin src/$i ;
done
dodoc Artistic CHANGES BUGS COPYING HISTORY README TODO
dodir etc/fte
cp src/system.fterc ${D}/etc/fte/system.fterc
dodir usr/share/doc/${P}/html
cp doc/INDEX doc/*.html ${D}/usr/share/doc/${P}/html
# if [ -a ${D}/usr/bin/xfte ] ; then
# into /usr/X11R6 ;
# dobin src/xfte ;
# rm ${D}/usr/bin/xfte ;
# fi
dodir usr/share/fte
cp -R config/* ${D}/usr/share/fte
rm -rf ${D}/usr/share/fte/CVS
}
|