summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2003-03-27 05:20:25 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2003-03-27 05:20:25 +0000
commita29317df340c89f122ac1b631b7e7ca1cc89466b (patch)
treec485544bebc44833ce0a33aade07324ea6ac5071
parentVersion bump (diff)
downloadhistorical-a29317df340c89f122ac1b631b7e7ca1cc89466b.tar.gz
historical-a29317df340c89f122ac1b631b7e7ca1cc89466b.tar.bz2
historical-a29317df340c89f122ac1b631b7e7ca1cc89466b.zip
minor version update and gnome menu item
-rw-r--r--app-editors/emacs/emacs-21.3.ebuild82
-rw-r--r--app-editors/emacs/files/digest-emacs-21.32
-rw-r--r--app-editors/emacs/files/emacs.desktop7
3 files changed, 91 insertions, 0 deletions
diff --git a/app-editors/emacs/emacs-21.3.ebuild b/app-editors/emacs/emacs-21.3.ebuild
new file mode 100644
index 000000000000..9ec255da0dd2
--- /dev/null
+++ b/app-editors/emacs/emacs-21.3.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-21.3.ebuild,v 1.1 2003/03/27 05:20:25 mkennedy Exp $
+
+IUSE="X nls motif leim gnome"
+
+S=${WORKDIR}/${P}
+DESCRIPTION="An incredibly powerful, extensible text editor"
+SRC_URI="ftp://ftp.codefactory.se/pub/gnu/${PN}/${P}.tar.gz
+ leim? ( ftp://ftp.codefactory.se/pub/gnu/emacs/leim-${PV}.tar.gz )"
+HOMEPAGE="http://www.gnu.org/software/emacs"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ppc sparc ~alpha"
+
+DEPEND="sys-libs/ncurses
+ sys-libs/gdbm
+ X? ( virtual/x11
+ >=media-libs/libungif-4.1.0
+ >=media-libs/jpeg-6b-r2
+ >=media-libs/tiff-3.5.5-r3
+ >=media-libs/libpng-1.2.1 )
+ Xaw3d? ( x11-libs/Xaw3d )
+ motif? ( >=x11-libs/openmotif-2.1.30 )
+ nls? ( sys-devel/gettext )
+ gnome? ( gnome-base/gnome-desktop )"
+
+PROVIDE="virtual/emacs virtual/editor"
+SANDBOX_DISABLED="1"
+
+DFILE=emacs.desktop
+
+src_compile() {
+ local myconf
+ use nls || myconf="${myconf} --disable-nls"
+ use X && myconf="${myconf} \
+ --with-x \
+ --with-xpm \
+ --with-jpeg \
+ --with-tiff \
+ --with-gif \
+ --with-png" \
+ || myconf="${myconf} --without-x"
+ use motif && myconf="${myconf} --with-x-toolkit=motif"
+ use Xaw3d && myconf="${myconf} --with-x-toolkit=athena"
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ ${myconf} || die
+ emake || die
+}
+
+src_install () {
+ make prefix=${D}/usr \
+ libexecdir=${D}/usr/lib \
+ mandir=${D}/usr/share/man \
+ infodir=${D}/usr/share/info \
+ install || die
+ einfo "Fixing info documentation..."
+ rm -f ${D}/usr/share/info/dir
+ for i in ${D}/usr/share/info/*
+ do
+ mv ${i%.info} $i.info
+ done
+
+ einfo "Fixing permissions..."
+ find ${D} -perm 664 |xargs chmod 644
+ find ${D} -type d |xargs chmod 755
+
+ dodoc BUGS ChangeLog README
+
+ dodir /usr/share/emacs/${PVR}/leim
+ touch ${D}/usr/share/emacs/${PVR}/leim/.keep
+
+ if use gnome
+ then
+ insinto /usr/share/gnome/apps/Application
+ doins ${FILESDIR}/${DFILE}
+ fi
+}
diff --git a/app-editors/emacs/files/digest-emacs-21.3 b/app-editors/emacs/files/digest-emacs-21.3
new file mode 100644
index 000000000000..7aafc8e2fda1
--- /dev/null
+++ b/app-editors/emacs/files/digest-emacs-21.3
@@ -0,0 +1,2 @@
+MD5 a0bab457cbf5b4f8eb99d1d0a3ada420 emacs-21.3.tar.gz 20399831
+MD5 1c968c37e22be0f0d8f8cd57cebe5a5e leim-21.3.tar.gz 3291224
diff --git a/app-editors/emacs/files/emacs.desktop b/app-editors/emacs/files/emacs.desktop
new file mode 100644
index 000000000000..da88f2fbe4f2
--- /dev/null
+++ b/app-editors/emacs/files/emacs.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=GNU Emacs
+Comment=Emacs is the extensible, customizable, self-documenting real-time display editor.
+Icon=gnome-emacs.png
+Terminal=0
+Type=Application
+Exec=/usr/bin/emacs