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

Contents of /app-editors/xemacs-gtk/xemacs-gtk-21.4.8.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.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
22 RDEPEND="virtual/glibc
23 !virtual/xemacs
24
25 >=sys-libs/gdbm-1.8.0
26 >=sys-libs/zlib-1.1.4
27 >=dev-libs/openssl-0.9.6
28 >=media-libs/audiofile-0.2.3
29
30 xface? ( media-libs/compface )
31 gpm? ( >=sys-libs/gpm-1.20.0 )
32 postgres? ( >=dev-db/postgresql-7.2 )
33
34 nas? ( media-libs/nas )
35 esd? ( media-sound/esound )
36
37 gtk? ( =x11/libs/gtk+-1.2* )
38 gnome? ( =gnome-base/gnome-core-1.4* )
39
40 tiff? ( media-libs/tiff )
41 png? ( =media-libs/libpng-1.2* )
42 jpeg? ( media-libs/jpeg )
43
44 mule? ()
45
46 X? ( virtual/x11 )"
47
48 DEPEND="${RDEPEND}
49 >=sys-libs/ncurses-5.2"
50
51 PROVIDE="virtual/xemacs"
52
53 SLOT="0"
54 LICENSE="GPL-2"
55 KEYWORDS="x86"
56
57 src_unpack() {
58 cd ${WORKDIR}
59 unpack ${REAL_P}.tar.gz
60 cd ${S}
61 patch -p0 <${FILESDIR}/emodules.info-21.4.8-gentoo.patch
62 }
63
64 src_compile() {
65 local myconf=""
66
67 if use X;
68 then
69 myconf="${myconf}
70 --with-x
71 --with-gtk
72 --with-xpm
73 --with-dragndrop
74 --with-gif=no"
75
76 use gnome && myconf="${myconf} --with-gnome" ||
77 myconf="${myconf} --without-gnome"
78 use tiff && myconf="${myconf} --with-tiff" ||
79 myconf="${myconf} --without-tiff"
80 use png && mconf="${myconf} --with-png" ||
81 myconf="${myconf} --without-png"
82 use jpeg && myconf="${myconf} --with-jpeg" ||
83 myconf="${myconf} --without-jpeg"
84 use xface && myconf="${myconf} --with-xface" ||
85 myconf="${myconf} --without-xface"
86 else
87 myconf="${myconf}
88 --without-x
89 --without-xpm
90 --without-dragndrop
91 --with-gif=no"
92 fi
93
94 use gpm && myconf="${myconf} --with-gpm" ||
95 myconf="${myconf} --without-gpm"
96 use postgres && myconf="${myconf} --with-postgresql" ||
97 myconf="${myconf} --without-postgresql"
98 use mule && myconf="${myconf} --with-mule" ||
99 myconf="${myconf} --without-mule"
100
101 local soundconf="native"
102
103 use nas && soundconf="${soundconf},nas"
104 use esd && soundconf="${soundconf},esd"
105
106 myconf="${myconf} --with-sound=${soundconf}"
107
108 ./configure ${myconf} \
109 --prefix=/usr \
110 --with-database=gnudbm \
111 --with-pop \
112 --with-ncurses \
113 --with-site-lisp=yes \
114 --package-path=/usr/lib/xemacs/xemacs-packages/ \
115 --with-msw=no \
116 || die
117
118 emake || die
119 }
120
121 src_install() {
122 make prefix="${D}/usr" \
123 mandir="${D}/usr/share/man/man1" \
124 infodir="${D}/usr/share/info" \
125 install gzip-el || die
126
127 # install base packages
128 dodir /usr/lib/xemacs/xemacs-packages/
129 cd ${D}/usr/lib/xemacs/xemacs-packages/
130 unpack efs-${EFS}-pkg.tar.gz
131 unpack xemacs-base-${BASE}-pkg.tar.gz
132 # (optionally) install mule base package
133 if use mule;
134 then
135 dodir /usr/lib/xemacs/mule-packages
136 cd ${D}/usr/lib/xemacs/mule-packages/
137 unpack mule-base-${MULE}-pkg.tar.gz
138 fi
139
140 # remove extraneous files
141 cd ${D}/usr/share/info
142 rm -f dir info.info texinfo* termcap*
143 cd ${S}
144 dodoc BUGS CHANGES-* COPYING ChangeLog GETTING* INSTALL PROBLEMS README*
145 dodoc ${FILESDIR}/README.Gentoo
146 }

  ViewVC Help
Powered by ViewVC 1.1.20