blob: 4c5e08e6ac646d5b342ba88a6aca0a9aaac32cc1 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/jove/jove-4.16.0.70.3.ebuild,v 1.2 2007/10/06 19:08:34 ulm Exp $
inherit eutils flag-o-matic
MY_P=${P/-/_}
MY_DIFFP=${MY_P%.*}-${MY_P##*.}.diff
MY_P=${MY_P%.*}
DESCRIPTION="Jonathan's Own Version of Emacs -- a light emacs-like editor without LISP bindings"
HOMEPAGE="ftp://ftp.cs.toronto.edu/cs/ftp/pub/hugh/jove-dev/"
SRC_URI="mirror://debian/pool/main/j/${PN}/${MY_P}.orig.tar.gz
mirror://debian/pool/main/j/${PN}/${MY_DIFFP}.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE="X unix98"
RDEPEND="sys-libs/ncurses
X? ( x11-libs/xview )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
S="${WORKDIR}/${MY_P/_/}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}/${MY_DIFFP}"
sed -i \
-e "s:-ltermcap:-lncurses:" \
-e "s:^OPTFLAGS =.*:OPTFLAGS = ${CFLAGS}:" \
Makefile
# -e 's:^SYSDEFS =.*:SYSDEFS="-DSYSVR4 -D_XOPEN_SOURCE=500":' \
}
src_compile() {
local myconf
if use unix98 ; then
emake SYSDEFS="-DSYSVR4 -D_XOPEN_SOURCE=500" || die
else
emake || die
fi
if use X ; then
emake XJOVEHOME=/usr makexjove || die
fi
}
src_install() {
emake DESTDIR="${D}" install || die
if use X ; then
make DESTDIR="${D}" \
XJOVEHOME="${D}"/usr \
MANDIR="${D}"/usr/share/man/man1 \
installxjove || die
fi
keepdir /var/lib/jove/preserve
}
|