/[gentoo-x86]/app-editors/xemacs-gtk/xemacs-gtk-21.4.8-r1.ebuild
Gentoo

Contents of /app-editors/xemacs-gtk/xemacs-gtk-21.4.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 29 16:25:49 2002 UTC (16 years, 10 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
repoman'd

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/app-editors/xemacs-gtk/xemacs-gtk-21.4.8-r1.ebuild,v 1.2 2002/07/25 20:48:29 kabau Exp $
4
5 # this is just TEMPORARY until we can get to the core of the problem
6 SANDBOX_DISABLED="1"
7
8
9 REAL_P=${P//-gtk/}
10 S="${WORKDIR}/${REAL_P}"
11 DESCRIPTION="XEmacs is a highly customizable open source text editor and application development system. This is the \"gamma\" release. Support for ncurses, and optional support for X via the GTK+ toolkit."
12 EFS=1.28
13 BASE=1.61
14 MULE=1.39
15 SRC_URI="http://ftp.xemacs.org/xemacs-21.4/${REAL_P}.tar.gz
16 http://ftp.xemacs.org/packages/efs-${EFS}-pkg.tar.gz
17 http://ftp.xemacs.org/packages/xemacs-base-${BASE}-pkg.tar.gz
18 http://ftp.xemacs.org/packages/mule-base-${MULE}-pkg.tar.gz"
19 HOMEPAGE="http://www.xemacs.org"
20
21 RDEPEND="virtual/glibc
22 !virtual/xemacs
23
24 >=sys-libs/gdbm-1.8.0
25 >=sys-libs/zlib-1.1.4
26 >=dev-libs/openssl-0.9.6
27 >=media-libs/audiofile-0.2.3
28
29 xface? ( media-libs/compface )
30 gpm? ( >=sys-libs/gpm-1.19.6 )
31 postgres? ( >=dev-db/postgresql-7.2 )
32
33 nas? ( media-libs/nas )
34 esd? ( media-sound/esound )
35
36 gtk? ( =x11/libs/gtk+-1.2* )
37 gnome? ( =gnome-base/gnome-core-1.4* )
38
39 tiff? ( media-libs/tiff )
40 png? ( =media-libs/libpng-1.2* )
41 jpeg? ( media-libs/jpeg )
42
43 mule? ()
44
45 X? ( virtual/x11 )"
46
47 DEPEND="${RDEPEND}
48 >=sys-libs/ncurses-5.2"
49
50 PROVIDE="virtual/xemacs"
51
52 SLOT="0"
53 LICENSE="GPL-2"
54 KEYWORDS="x86"
55
56 src_unpack() {
57 cd ${WORKDIR}
58 unpack ${REAL_P}.tar.gz
59 cd ${S}
60 patch -p0 <${FILESDIR}/emodules.info-21.4.8-gentoo.patch
61 }
62
63 src_compile() {
64 local myconf=""
65
66 if use X;
67 then
68 myconf="${myconf}
69 --with-x
70 --with-gtk
71 --with-xpm
72 --with-dragndrop
73 --with-gif=no"
74
75 use gnome && myconf="${myconf} --with-gnome" ||
76 myconf="${myconf} --without-gnome"
77 use tiff && myconf="${myconf} --with-tiff" ||
78 myconf="${myconf} --without-tiff"
79 use png && mconf="${myconf} --with-png" ||
80 myconf="${myconf} --without-png"
81 use jpeg && myconf="${myconf} --with-jpeg" ||
82 myconf="${myconf} --without-jpeg"
83 use xface && myconf="${myconf} --with-xface" ||
84 myconf="${myconf} --without-xface"
85 else
86 myconf="${myconf}
87 --without-x
88 --without-xpm
89 --without-dragndrop
90 --with-gif=no"
91 fi
92
93 use gpm && myconf="${myconf} --with-gpm" ||
94 myconf="${myconf} --without-gpm"
95 use postgres && myconf="${myconf} --with-postgresql" ||
96 myconf="${myconf} --without-postgresql"
97 use mule && myconf="${myconf} --with-mule" ||
98 myconf="${myconf} --without-mule"
99
100 local soundconf="native"
101
102 use nas && soundconf="${soundconf},nas"
103 use esd && soundconf="${soundconf},esd"
104
105 myconf="${myconf} --with-sound=${soundconf}"
106
107 ./configure ${myconf} \
108 --prefix=/usr \
109 --with-database=gnudbm \
110 --with-pop \
111 --with-ncurses \
112 --with-site-lisp=yes \
113 --package-path=/usr/lib/xemacs/xemacs-packages/ \
114 --with-msw=no \
115 || die
116
117 emake || die
118 }
119
120 src_install() {
121 make prefix="${D}/usr" \
122 mandir="${D}/usr/share/man/man1" \
123 infodir="${D}/usr/share/info" \
124 install gzip-el || die
125
126 # install base packages
127 dodir /usr/lib/xemacs/xemacs-packages/
128 cd ${D}/usr/lib/xemacs/xemacs-packages/
129 unpack efs-${EFS}-pkg.tar.gz
130 unpack xemacs-base-${BASE}-pkg.tar.gz
131 # (optionally) install mule base package
132 if use mule;
133 then
134 dodir /usr/lib/xemacs/mule-packages
135 cd ${D}/usr/lib/xemacs/mule-packages/
136 unpack mule-base-${MULE}-pkg.tar.gz
137 fi
138
139 # remove extraneous files
140 cd ${D}/usr/share/info
141 rm -f dir info.info texinfo* termcap*
142 cd ${S}
143 dodoc BUGS CHANGES-* COPYING ChangeLog GETTING* INSTALL PROBLEMS README*
144 dodoc ${FILESDIR}/README.Gentoo
145 }

  ViewVC Help
Powered by ViewVC 1.1.20