/[gentoo-x86]/app-editors/emacs/emacs-20.7.ebuild
Gentoo

Contents of /app-editors/emacs/emacs-20.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Aug 4 18:22:45 2001 UTC (13 years, 4 months ago) by pete
Branch: MAIN
*** empty log message ***

1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author Mikael Hallendal <micke@hallendal.net>
4
5 A=${P}.tar.gz
6 S=${WORKDIR}/${P}
7 DESCRIPTION="An incredibly powerful, extensible text editor"
8 SRC_URI="ftp://ftp.gnu.org/gnu/${PN}/${A}"
9 HOMEPAGE="http://www.gnu.org/software/emacs"
10
11 DEPEND=">=sys-libs/ncurses-5.2
12 X? ( virtual/x11 )
13 motif? ( >=x11-libs/openmotif-2.1.30 )
14 nls? ( >=sys-devel/gettext-0.10.35 )"
15
16 PROVIDE="virtual/emacs"
17
18 src_compile() {
19 local myconf
20
21 if [ -z "`use nls`" ] ; then
22 myconf="${myconf} --disable-nls"
23 fi
24 if [ "`use X`" ] ; then
25 myconf="${myconf} --with-x"
26 else
27 myconf="${myconf} --without-x"
28 fi
29 if [ "`use motif`" ] ; then
30 myconf="${myconf} --with-x-toolkit=motif"
31 fi
32
33 try ./configure --prefix=/usr --libexecdir=/usr/lib --host=${CHOST} \
34 --mandir=/usr/share/man --infodir=/usr/share/info ${myconf}
35
36 try make ${MAKEOPTS}
37 }
38
39 src_install () {
40 try make prefix=${D}/usr libexecdir=${D}/usr/lib \
41 mandir=${D}/usr/share/man infodir=${D}/usr/share/info install
42 cd ${D}/usr/share/info
43 rm dir
44 for i in *
45 do
46 mv ${i%.info} $i.info
47 done
48 dodoc BUGS ChangeLog README
49 }

  ViewVC Help
Powered by ViewVC 1.1.20