summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <opfer@gentoo.org>2007-03-19 18:26:58 +0000
committerChristian Faulhammer <opfer@gentoo.org>2007-03-19 18:26:58 +0000
commite597a324ba07d1d133134280ec5ad3fc86c607f1 (patch)
tree07104a3f4ebb2179b48921254b026d90cacb3e0d
parentUse emacs.eselect in XEmacs ebuild. (diff)
downloademacs-e597a324ba07d1d133134280ec5ad3fc86c607f1.tar.gz
emacs-e597a324ba07d1d133134280ec5ad3fc86c607f1.tar.bz2
emacs-e597a324ba07d1d133134280ec5ad3fc86c607f1.zip
remove now obsolete versions to minimize confusion
svn path=/emacs-extra/; revision=114
-rw-r--r--app-editors/emacs-cvs/ChangeLog20
-rw-r--r--app-editors/emacs-cvs/emacs-cvs-22.0.95-r3.ebuild210
-rw-r--r--app-editors/emacs-cvs/emacs-cvs-22.0.9999-r7.ebuild216
-rw-r--r--app-editors/emacs-cvs/emacs-cvs-23.0.0-r3.ebuild221
-rw-r--r--app-editors/emacs/ChangeLog21
-rw-r--r--app-editors/emacs/emacs-18.59-r3.ebuild93
-rw-r--r--app-editors/emacs/emacs-21.4-r10.ebuild187
7 files changed, 0 insertions, 968 deletions
diff --git a/app-editors/emacs-cvs/ChangeLog b/app-editors/emacs-cvs/ChangeLog
deleted file mode 100644
index 4bb74e7..0000000
--- a/app-editors/emacs-cvs/ChangeLog
+++ /dev/null
@@ -1,20 +0,0 @@
-# ChangeLog for app-editors/emacs-cvs
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 19 Mar 2007; Ulrich Mueller <ulm@kph.uni-mainz.de>
- emacs-cvs-22.0.95-r3.ebuild, emacs-cvs-22.0.9999-r7.ebuild,
- emacs-cvs-23.0.0-r3.ebuild:
- Don't install emacs executable twice.
-
- 18 Mar 2007; Ulrich Mueller <ulm@kph.uni-mainz.de>
- emacs-cvs-22.0.95-r3.ebuild, emacs-cvs-22.0.9999-r7.ebuild,
- emacs-cvs-23.0.0-r3.ebuild:
- Suffix changed from ".emacs-${SLOT}" to "-emacs-${SLOT}" for better
- compatibility with XEmacs.
-
- 18 Mar 2007; Ulrich Mueller <ulm@kph.uni-mainz.de>
- +emacs-cvs-22.0.95-r3.ebuild, +emacs-cvs-22.0.9999-r7.ebuild,
- +emacs-cvs-23.0.0-r3.ebuild:
- Initial import: unchanged copy from emacs-overlay.
-
diff --git a/app-editors/emacs-cvs/emacs-cvs-22.0.95-r3.ebuild b/app-editors/emacs-cvs/emacs-cvs-22.0.95-r3.ebuild
deleted file mode 100644
index b14d514..0000000
--- a/app-editors/emacs-cvs/emacs-cvs-22.0.95-r3.ebuild
+++ /dev/null
@@ -1,210 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-WANT_AUTOCONF="2.61"
-WANT_AUTOMAKE="latest"
-
-inherit autotools elisp-common eutils flag-o-matic
-
-DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
-SRC_URI="ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-${PV}.tar.gz"
-HOMEPAGE="http://www.gnu.org/software/emacs/"
-IUSE="alsa aqua gif gtk gzip-el hesiod jpeg lesstif motif png spell sound source tiff toolkit-scroll-bars X Xaw3d xpm"
-
-RESTRICT="$RESTRICT nostrip"
-
-X_DEPEND="x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps"
-
-RDEPEND="sys-libs/ncurses
- app-admin/eselect-emacs
- sys-libs/zlib
- hesiod? ( net-dns/hesiod )
- spell? ( || ( app-text/ispell app-text/aspell ) )
- alsa? ( media-sound/alsa-headers )
- X? ( $X_DEPEND )
- X? ( gif? ( media-libs/giflib )
- jpeg? ( media-libs/jpeg )
- tiff? ( media-libs/tiff )
- png? ( media-libs/libpng )
- xpm? ( x11-libs/libXpm )
- gtk? ( =x11-libs/gtk+-2* )
- !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) )
- !Xaw3d? ( motif? ( x11-libs/openmotif ) )
- !motif? ( lesstif? ( x11-libs/lesstif ) ) )"
-
-DEPEND="${RDEPEND}
- gzip-el? ( app-arch/gzip )"
-
-PROVIDE="virtual/emacs virtual/editor"
-
-SLOT="22.0.95"
-LICENSE="GPL-2"
-KEYWORDS="~x86"
-S="${WORKDIR}/emacs-${PV}"
-
-src_unpack() {
- unpack ${A}
-
- cd "${S}"
- sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
- -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
- "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
- if ! use gzip-el; then
- # Emacs' build system automatically detects the gzip binary and compresses
- # el files. We don't want that so confuse it with a wrong binary name
- sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in || die "unable to sed configure.in"
- fi
-
- epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
- use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection.patch"
- use ppc-macos && epatch "${FILESDIR}/emacs-cvs-21.3.50-nofink.diff"
-
- eautoreconf
-}
-
-src_compile() {
- export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
- ALLOWED_FLAGS=""
- strip-flags
- unset LDFLAGS
- replace-flags -O[3-9] -O2
- sed -i -e "s/-lungif/-lgif/g" configure* src/Makefile* || die
-
- local myconf
-
- if use alsa && ! use sound; then
- einfo "Although sound USE flag is disabled you chose to have alsa, so sound is switched on anyway."
- myconf="${myconf} --with-sound"
- else
- myconf="${myconf} $(use_with sound)"
- fi
-
- if use X; then
- myconf="${myconf} --with-x"
- myconf="${myconf} $(use_with xpm)"
- myconf="${myconf} $(use_with toolkit-scroll-bars)"
- myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
- myconf="${myconf} $(use_with gif) $(use_with png)"
- if use gtk; then
- einfo "Configuring to build with GTK support, disabling all other toolkits"
- myconf="${myconf} --with-x-toolkit=gtk"
- elif use Xaw3d; then
- einfo "Configuring to build with Xaw3d(athena) support"
- myconf="${myconf} --with-x-toolkit=athena"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=lucid"
- elif use motif; then
- einfo "Configuring to build with motif toolkit support"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=motif"
- elif use lesstif; then
- einfo "Configuring to build with lesstif toolkit support"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=motif"
- fi
- else
- myconf="${myconf} --without-x"
- fi
-
- use hesiod && myconf="${myconf} --with-hesiod"
-
- if use aqua; then
- einfo "Configuring to build with Carbon Emacs"
- econf \
- --enable-carbon-app=/Applications/Gentoo \
- --without-x \
- $(use_with jpeg) $(use_with tiff) \
- $(use_with gif) $(use_with png) $(use_with sound) \
- || die "econf carbon emacs failed"
- else
- econf \
- --program-suffix=-emacs-${SLOT} \
- --without-carbon \
- ${myconf} || die "econf emacs failed"
- fi
-
- emake CC="$(tc-getCC) " bootstrap \
- || die "make bootstrap failed."
-}
-
-src_install () {
- emake install DESTDIR="${D}" || die "make install failed"
-
- rm "${D}"/usr/bin/emacs-${SLOT}-emacs-${SLOT} || die "removing duplicate emacs executable failed"
- mv "${D}"/usr/bin/emacs{-emacs,}-${SLOT} || die
-
- if use aqua ; then
- einfo "Installing Carbon Emacs..."
- dodir /Applications/Gentoo/Emacs.app
- pushd mac/Emacs.app
- tar -chf - . | ( cd "${D}/Applications/Gentoo/Emacs.app"; tar -xf -)
- popd
- fi
-
- # fix info documentation
- einfo "Fixing info documentation..."
- dodir /usr/share/info/emacs-${SLOT}
- mv "${D}"/usr/share/info/{,emacs-${SLOT}/}dir || die "mv dir failed"
- for i in "${D}"/usr/share/info/*
- do
- if [ "${i##*/}" != emacs-${SLOT} ] ; then
- mv ${i} ${i/info/info/emacs-${SLOT}}.info
- fi
- done
-
- einfo "Fixing manpages..."
- for m in "${D}"/usr/share/man/man1/* ; do
- mv ${m} ${m/.1/-emacs-${SLOT}.1} || die "mv man failed"
- done
-
- # avoid collision between slots
- rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
-
- if use source; then
- insinto /usr/share/emacs/${SLOT}/src
- # This is not meant to install all the source -- just the
- # C source you might find via find-function
- doins src/*.[ch]
- cat >00emacs-cvs-${SLOT}-gentoo.el <<EOF
-(when (substring emacs-version 0 (length "${SLOT}"))
- (setq find-function-C-source-directory "/usr/share/emacs/${SLOT}/src"))
-EOF
- elisp-site-file-install 00emacs-cvs-${SLOT}-gentoo.el
- fi
-
- dodoc BUGS ChangeLog README
-}
-
-pkg_postinst() {
- test -f ${ROOT}/usr/share/emacs/site-lisp/subdirs.el ||
- cp ${ROOT}/usr/share/emacs{/${SLOT},}/site-lisp/subdirs.el
-
- elisp-site-regen
-
- # ecompress from Portage 2.2.* does auto-compression
- # which is not desired for the dir file, so remove it to
- # let it be recreated
- # A forthcoming Portage version will handle that itself
- rm "${ROOT}/usr/share/info/emacs-${SLOT}/dir.*" 2> /dev/null
-
- eselect emacs update --if-unset
-
- if use X; then
- elog "You need to install some fonts for Emacs. Under monolithic"
- elog "XFree86/Xorg you typically had such fonts installed by default."
- elog "With modular Xorg, you will have to perform this step yourself."
- elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
- elog "machine would satisfy basic Emacs requirements under X11."
- fi
-
- echo
- elog "You can set the version to be started by /usr/bin/emacs through the Emacs eselect module"
- elog "Man and info pages are automatically redirected, so you are to test emacs-cvs along with the"
- elog "stable release"
-}
-
-pkg_postrm() {
- elisp-site-regen
- eselect emacs update --if-unset
-}
diff --git a/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r7.ebuild b/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r7.ebuild
deleted file mode 100644
index 70bcf40..0000000
--- a/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r7.ebuild
+++ /dev/null
@@ -1,216 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-ECVS_AUTH="pserver"
-ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
-ECVS_MODULE="emacs"
-ECVS_BRANCH="HEAD"
-ECVS_LOCALNAME="emacs-22"
-
-WANT_AUTOCONF="2.61"
-WANT_AUTOMAKE="latest"
-
-inherit autotools cvs elisp-common eutils flag-o-matic
-
-DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
-SRC_URI=""
-HOMEPAGE="http://www.gnu.org/software/emacs/"
-IUSE="alsa aqua gif gtk gzip-el hesiod jpeg lesstif motif png spell sound source tiff toolkit-scroll-bars X Xaw3d xpm"
-
-RESTRICT="${RESTRICT} nostrip"
-
-X_DEPEND="x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps"
-
-RDEPEND="sys-libs/ncurses
- app-admin/eselect-emacs
- sys-libs/zlib
- hesiod? ( net-dns/hesiod )
- spell? ( || ( app-text/ispell app-text/aspell ) )
- alsa? ( media-sound/alsa-headers )
- X? ( $X_DEPEND )
- X? ( gif? ( media-libs/giflib )
- jpeg? ( media-libs/jpeg )
- tiff? ( media-libs/tiff )
- png? ( media-libs/libpng )
- xpm? ( x11-libs/libXpm )
- gtk? ( =x11-libs/gtk+-2* )
- !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) )
- !Xaw3d? ( motif? ( x11-libs/openmotif ) )
- !motif? ( lesstif? ( x11-libs/lesstif ) ) )"
-
-DEPEND="${RDEPEND}
- gzip-el? ( app-arch/gzip )"
-
-PROVIDE="virtual/emacs virtual/editor"
-
-SLOT="22.0.95"
-LICENSE="GPL-2"
-KEYWORDS="~x86"
-S="${WORKDIR}/${ECVS_LOCALNAME}"
-
-src_unpack() {
- cvs_src_unpack
-
- cd "${S}"
- sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
- -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
- "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
- if ! use gzip-el; then
- # Emacs' build system automatically detects the gzip binary and compresses
- # el files. We don't want that so confuse it with a wrong binary name
- sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in || die "unable to sed configure.in"
- fi
-
- epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
- use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection.patch"
- use ppc-macos && epatch "${FILESDIR}/emacs-cvs-21.3.50-nofink.diff"
-
- eautoreconf
-}
-
-src_compile() {
- export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
- ALLOWED_FLAGS=""
- strip-flags
- unset LDFLAGS
- replace-flags -O[3-9] -O2
- sed -i -e "s/-lungif/-lgif/g" configure* src/Makefile* || die
-
- local myconf
-
- if use alsa && ! use sound; then
- einfo "Although sound USE flag is disabled you chose to have alsa, so sound is switched on anyway."
- myconf="${myconf} --with-sound"
- else
- myconf="${myconf} $(use_with sound)"
- fi
-
- if use X; then
- myconf="${myconf} --with-x"
- myconf="${myconf} $(use_with xpm)"
- myconf="${myconf} $(use_with toolkit-scroll-bars)"
- myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
- myconf="${myconf} $(use_with gif) $(use_with png)"
- if use gtk; then
- einfo "Configuring to build with GTK support"
- myconf="${myconf} --with-x-toolkit=gtk"
- elif use Xaw3d; then
- einfo "Configuring to build with Xaw3d(athena) support"
- myconf="${myconf} --with-x-toolkit=athena"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=lucid"
- elif use motif; then
- einfo "Configuring to build with motif toolkit support"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=motif"
- elif use lesstif; then
- einfo "Configuring to build with lesstif toolkit support"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=motif"
- fi
- else
- myconf="${myconf} --without-x"
- fi
-
- use hesiod && myconf="${myconf} --with-hesiod"
-
- if use aqua; then
- einfo "Configuring to build with Carbon Emacs"
- econf \
- --enable-carbon-app=/Applications/Gentoo \
- --without-x \
- $(use_with jpeg) $(use_with tiff) \
- $(use_with gif) $(use_with png) $(use_with sound) \
- || die "econf carbon emacs failed"
- else
- econf \
- --program-suffix=-emacs-${SLOT} \
- --without-carbon \
- ${myconf} || die "econf emacs failed"
- fi
-
- emake CC="$(tc-getCC) " bootstrap \
- || die "make bootstrap failed."
-}
-
-src_install () {
- emake install DESTDIR="${D}" || die "make install failed"
-
- rm "${D}"/usr/bin/emacs-${SLOT}-emacs-${SLOT} || die "removing duplicate emacs executable failed"
- mv "${D}"/usr/bin/emacs{-emacs,}-${SLOT} || die
-
- if use aqua ; then
- einfo "Installing Carbon Emacs..."
- dodir /Applications/Gentoo/Emacs.app
- pushd mac/Emacs.app
- tar -chf - . | ( cd "${D}/Applications/Gentoo/Emacs.app"; tar -xf -)
- popd
- fi
-
- # fix info documentation
- einfo "Fixing info documentation..."
- dodir /usr/share/info/emacs-${SLOT}
- mv "${D}"/usr/share/info/{,emacs-${SLOT}/}dir || die "mv dir failed"
- for i in "${D}"/usr/share/info/*
- do
- if [ "${i##*/}" != emacs-${SLOT} ] ; then
- mv ${i} ${i/info/info/emacs-${SLOT}}.info
- fi
- done
-
- einfo "Fixing manpages..."
- for m in "${D}"/usr/share/man/man1/* ; do
- mv ${m} ${m/.1/-emacs-${SLOT}.1} || die "mv man failed"
- done
-
- # avoid collision between slots
- rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
-
- if use source; then
- insinto /usr/share/emacs/${SLOT}/src
- # This is not meant to install all the source -- just the
- # C source you might find via find-function
- doins src/*.[ch]
- cat >00emacs-cvs-${SLOT}-gentoo.el <<EOF
-(when (substring emacs-version 0 (length "${SLOT}"))
- (setq find-function-C-source-directory "/usr/share/emacs/${SLOT}/src"))
-EOF
- elisp-site-file-install 00emacs-cvs-${SLOT}-gentoo.el
- fi
-
- dodoc BUGS ChangeLog README
-}
-
-pkg_postinst() {
- test -f ${ROOT}/usr/share/emacs/site-lisp/subdirs.el ||
- cp ${ROOT}/usr/share/emacs{/${SLOT},}/site-lisp/subdirs.el
-
- elisp-site-regen
-
- # ecompress from Portage 2.2.* does auto-compression
- # which is not desired for the dir file, so remove it to
- # let it be recreated
- # A forthcoming Portage version will handle that itself
- rm "${ROOT}/usr/share/info/emacs-${SLOT}/dir.*" 2> /dev/null
-
- eselect emacs update --if-unset
-
- if use X; then
- elog "You need to install some fonts for Emacs. Under monolithic"
- elog "XFree86/Xorg you typically had such fonts installed by default."
- elog "With modular Xorg, you will have to perform this step yourself."
- elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
- elog "machine would satisfy basic Emacs requirements under X11."
- fi
-
- echo
- elog "You can set the version to be started by /usr/bin/emacs through the Emacs eselect module"
- elog "Man and info pages are automatically redirected, so you are to test emacs-cvs along with the"
- elog "stable release"
-}
-
-pkg_postrm() {
- elisp-site-regen
- eselect emacs update --if-unset
-}
diff --git a/app-editors/emacs-cvs/emacs-cvs-23.0.0-r3.ebuild b/app-editors/emacs-cvs/emacs-cvs-23.0.0-r3.ebuild
deleted file mode 100644
index 09aef88..0000000
--- a/app-editors/emacs-cvs/emacs-cvs-23.0.0-r3.ebuild
+++ /dev/null
@@ -1,221 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-ECVS_AUTH="pserver"
-ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
-ECVS_MODULE="emacs"
-ECVS_LOCALNAME="emacs-unicode"
-ECVS_BRANCH="emacs-unicode-2"
-
-WANT_AUTOCONF="2.61"
-WANT_AUTOMAKE="latest"
-
-inherit autotools cvs elisp-common eutils flag-o-matic
-
-DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
-SRC_URI=""
-HOMEPAGE="http://www.gnu.org/software/emacs/"
-IUSE="alsa aqua gif gtk gzip-el hesiod jpeg lesstif motif png spell sound source tiff toolkit-scroll-bars X Xaw3d xft xpm"
-
-RESTRICT="$RESTRICT nostrip"
-
-X_DEPEND="x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps"
-
-RDEPEND="sys-libs/ncurses
- app-admin/eselect-emacs
- sys-libs/zlib
- hesiod? ( net-dns/hesiod )
- spell? ( || ( app-text/ispell app-text/aspell ) )
- alsa? ( media-sound/alsa-headers )
- X? ( $X_DEPEND )
- X? ( gif? ( media-libs/giflib )
- jpeg? ( media-libs/jpeg )
- tiff? ( media-libs/tiff )
- png? ( media-libs/libpng )
- xpm? ( x11-libs/libXpm )
- xft? ( media-libs/fontconfig virtual/xft >=dev-libs/libotf-0.9.4 )
- gtk? ( =x11-libs/gtk+-2* )
- !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) )
- !Xaw3d? ( motif? ( x11-libs/openmotif ) )
- !motif? ( lesstif? ( x11-libs/lesstif ) ) )"
-
-DEPEND="${RDEPEND}
- gzip-el? ( app-arch/gzip )"
-
-PROVIDE="virtual/emacs virtual/editor"
-
-SLOT="23.0.0"
-LICENSE="GPL-2"
-KEYWORDS="~x86"
-S="${WORKDIR}/${ECVS_LOCALNAME}"
-
-src_unpack() {
- cvs_src_unpack
-
- cd "${S}"
- sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
- -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
- "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
- if ! use gzip-el; then
- # Emacs' build system automatically detects the gzip binary and compresses
- # el files. We don't want that so confuse it with a wrong binary name
- sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in || die "unable to sed configure.in"
- fi
-
- epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
- use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection.patch"
- use ppc-macos && epatch "${FILESDIR}/emacs-cvs-21.3.50-nofink.diff"
-
- eautoreconf
-}
-
-src_compile() {
- export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
- ALLOWED_FLAGS=""
- strip-flags
- unset LDFLAGS
- replace-flags -O[3-9] -O2
- sed -i -e "s/-lungif/-lgif/g" configure* src/Makefile* || die
-
- local myconf
-
- if use alsa && ! use sound; then
- einfo "Although sound USE flag is disabled you chose to have alsa, so sound is switched on anyway."
- myconf="${myconf} --with-sound"
- else
- myconf="${myconf} $(use_with sound)"
- fi
-
- if use X; then
- myconf="${myconf} --with-x"
- myconf="${myconf} $(use_with xpm)"
- myconf="${myconf} $(use_with toolkit-scroll-bars)"
- myconf="${myconf} $(use_enable xft font-backend)"
- myconf="${myconf} $(use_with xft freetype)"
- myconf="${myconf} $(use_with xft)"
- myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
- myconf="${myconf} $(use_with gif) $(use_with png)"
- if use gtk; then
- einfo "Configuring to build with GTK support"
- myconf="${myconf} --with-x-toolkit=gtk"
- elif use Xaw3d; then
- einfo "Configuring to build with Xaw3d(athena) support"
- myconf="${myconf} --with-x-toolkit=athena"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=lucid"
- elif use motif; then
- einfo "Configuring to build with motif toolkit support"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=motif"
- elif use lesstif; then
- einfo "Configuring to build with lesstif toolkit support"
- myconf="${myconf} --without-gtk"
- myconf="${myconf} --with-x-toolkit=motif"
- fi
- else
- myconf="${myconf} --without-x"
- fi
-
- use hesiod && myconf="${myconf} --with-hesiod"
-
- if use aqua; then
- einfo "Configuring to build with Carbon Emacs"
- econf \
- --enable-carbon-app=/Applications/Gentoo \
- --without-x \
- $(use_with jpeg) $(use_with tiff) \
- $(use_enable xft font-backend) \
- $(use_with gif) $(use_with png) $(use_with sound) \
- || die "econf carbon emacs failed"
- else
- econf \
- --program-suffix=-emacs-${SLOT} \
- --without-carbon \
- ${myconf} || die "econf emacs failed"
- fi
-
- emake CC="$(tc-getCC) " bootstrap \
- || die "make bootstrap failed."
-}
-
-src_install () {
- emake install DESTDIR="${D}" || die "make install failed"
-
- rm "${D}"/usr/bin/emacs-${SLOT}-emacs-${SLOT} || die "removing duplicate emacs executable failed"
- mv "${D}"/usr/bin/emacs{-emacs,}-${SLOT} || die
-
- if use aqua ; then
- einfo "Installing Carbon Emacs..."
- dodir /Applications/Gentoo/Emacs.app
- pushd mac/Emacs.app
- tar -chf - . | ( cd "${D}/Applications/Gentoo/Emacs.app"; tar -xf -)
- popd
- fi
-
- # fix info documentation
- einfo "Fixing info documentation..."
- dodir /usr/share/info/emacs-${SLOT}
- mv "${D}"/usr/share/info/{,emacs-${SLOT}/}dir || die "mv dir failed"
- for i in "${D}"/usr/share/info/*
- do
- if [ "${i##*/}" != emacs-${SLOT} ] ; then
- mv ${i} ${i/info/info/emacs-${SLOT}}.info
- fi
- done
-
- einfo "Fixing manpages..."
- for m in "${D}"/usr/share/man/man1/* ; do
- mv ${m} ${m/.1/-emacs-${SLOT}.1} || die "mv man failed"
- done
-
- # avoid collision between slots
- rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
-
- if use source; then
- insinto /usr/share/emacs/${SLOT}/src
- # This is not meant to install all the source -- just the
- # C source you might find via find-function
- doins src/*.[ch]
- cat >00emacs-cvs-${SLOT}-gentoo.el <<EOF
-(when (substring emacs-version 0 (length "${SLOT}"))
- (setq find-function-C-source-directory "/usr/share/emacs/${SLOT}/src"))
-EOF
- elisp-site-file-install 00emacs-cvs-${SLOT}-gentoo.el
- fi
-
- dodoc BUGS ChangeLog README
-}
-
-pkg_postinst() {
- test -f ${ROOT}/usr/share/emacs/site-lisp/subdirs.el ||
- cp ${ROOT}/usr/share/emacs{/${SLOT},}/site-lisp/subdirs.el
-
- elisp-site-regen
-
- # ecompress from Portage 2.2.* does auto-compression
- # which is not desired for the dir file, so remove it to
- # let it be recreated
- # A forthcoming Portage version will handle that itself
- rm "${ROOT}/usr/share/info/emacs-${SLOT}/dir.*" 2> /dev/null
-
- eselect emacs update --if-unset
-
- if use X; then
- elog "You need to install some fonts for Emacs. Under monolithic"
- elog "XFree86/Xorg you typically had such fonts installed by default."
- elog "With modular Xorg, you will have to perform this step yourself."
- elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
- elog "machine would satisfy basic Emacs requirements under X11."
- fi
-
- echo
- elog "You can set the version to be started by /usr/bin/emacs through the Emacs eselect module"
- elog "Man and info pages are automatically redirected, so you are to test emacs-cvs along with the"
- elog "stable release"
-}
-
-pkg_postrm() {
- elisp-site-regen
- eselect emacs update --if-unset
-}
diff --git a/app-editors/emacs/ChangeLog b/app-editors/emacs/ChangeLog
deleted file mode 100644
index a23e0b1..0000000
--- a/app-editors/emacs/ChangeLog
+++ /dev/null
@@ -1,21 +0,0 @@
-# ChangeLog for app-editors/emacs
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 19 Mar 2007; Ulrich Mueller <ulm@kph.uni-mainz.de> emacs-18.59-r3.ebuild,
- emacs-21.4-r10.ebuild:
- Don't install emacs executable twice.
-
- 19 Mar 2007; Ulrich Mueller <ulm@kph.uni-mainz.de> emacs-21.4-r10.ebuild,
- +files/emacs-21.4-qa.patch:
- Get rid of compiler warnings.
-
- 18 Mar 2007; Ulrich Mueller <ulm@kph.uni-mainz.de> emacs-18.59-r3.ebuild,
- emacs-21.4-r10.ebuild:
- Suffix changed from ".emacs-${SLOT}" to "-emacs-${SLOT}" for better
- compatibility with XEmacs.
-
- 18 Mar 2007; Ulrich Mueller <ulm@kph.uni-mainz.de> +emacs-18.59-r3.ebuild,
- +emacs-21.4-r10.ebuild:
- Initial import: unchanged copy from emacs-overlay.
-
diff --git a/app-editors/emacs/emacs-18.59-r3.ebuild b/app-editors/emacs/emacs-18.59-r3.ebuild
deleted file mode 100644
index dc489ea..0000000
--- a/app-editors/emacs/emacs-18.59-r3.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils toolchain-funcs flag-o-matic
-
-DESCRIPTION="The extensible self-documenting text editor"
-HOMEPAGE="http://www.gnu.org/software/emacs/"
-SRC_URI="mirror://gnu/old-gnu/emacs/${P}.tar.gz
- mirror://gentoo/emacs-18-patches.tar.bz2
- ftp://ftp.splode.com/pub/users/friedman/emacs/${P}-linux22x-elf-glibc21.diff.gz"
-
-LICENSE="GPL-1"
-SLOT="18"
-KEYWORDS="~x86"
-IUSE="X"
-
-RDEPEND="sys-libs/ncurses
- app-admin/eselect-emacs
- X? ( x11-libs/libX11 )"
-DEPEND="${RDEPEND}"
-PROVIDE="virtual/emacs virtual/editor"
-
-MY_BASEDIR="/usr/share/emacs/${PV}"
-MY_LOCKDIR="/var/lib/emacs/lock"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${WORKDIR}/${P}-linux22x-elf-glibc21.diff"
- epatch "${WORKDIR}/${P}-unexelf.patch"
- epatch "${WORKDIR}/${P}-gentoo.patch"
- epatch "${WORKDIR}/${P}-gcc4.patch"
-}
-
-src_compile() {
- SANDBOX_ON=0
-
- # autoconf? What's autoconf? We are living in 1992. ;-)
- local arch
- case ${ARCH} in
- x86) arch=intel386 ;;
- *) die "Architecture ${ARCH} not supported" ;;
- esac
- local cmd="s/\"s-.*\.h\"/\"s-linux.h\"/;s/\"m-.*\.h\"/\"m-${arch}.h\"/"
- use X && cmd="${cmd};s/.*\(#define HAVE_X_WINDOWS\).*/\1/"
- sed -e "${cmd}" src/config.h-dist >src/config.h
-
- cat <<-END >src/paths.h
- #define PATH_LOADSEARCH "${MY_BASEDIR}/lisp"
- #define PATH_EXEC "${MY_BASEDIR}/etc"
- #define PATH_LOCK "${MY_LOCKDIR}/"
- #define PATH_SUPERLOCK "${MY_LOCKDIR}/!!!SuperLock!!!"
- END
-
- # -O3 and -finline-functions cause segmentation faults at run time.
- filter-flags -finline-functions
- replace-flags -O[3-9] -O2
- strip-flags
-
- emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Demacs" || die
-}
-
-src_install() {
- dodir ${MY_BASEDIR}
- dodir /usr/share/man/man1
- make install LIBDIR="${D}${MY_BASEDIR}" BINDIR="${D}/usr/bin" \
- MANDIR="${D}/usr/share/man/man1" || die
- chmod -R go-w "${D}${MY_BASEDIR}"
- rmdir "${D}${MY_BASEDIR}/lock"
-
- dodir ${MY_LOCKDIR%/*}
- diropts -m0777
- dodir ${MY_LOCKDIR}
- keepdir ${MY_LOCKDIR}
-
- for i in emacsclient etags ctags; do
- mv "${D}"/usr/bin/${i}{,-emacs-${SLOT}} || die "mv ${i} failed"
- done
- mv "${D}"/usr/bin/emacs{,-${SLOT}} || die "mv emacs failed"
- mv "${D}"/usr/share/man/man1/emacs{,-emacs-${SLOT}}.1 || die
- dosym ../emacs/${PV}/info /usr/share/info/emacs-${SLOT}
-
- dodoc README PROBLEMS
-}
-
-pkg_postinst() {
- eselect emacs update --if-unset
-}
-
-pkg_postrm() {
- eselect emacs update --if-unset
-}
diff --git a/app-editors/emacs/emacs-21.4-r10.ebuild b/app-editors/emacs/emacs-21.4-r10.ebuild
deleted file mode 100644
index 8aa579f..0000000
--- a/app-editors/emacs/emacs-21.4-r10.ebuild
+++ /dev/null
@@ -1,187 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-WANT_AUTOCONF="2.1"
-
-inherit flag-o-matic eutils toolchain-funcs autotools
-
-DESCRIPTION="An incredibly powerful, extensible text editor"
-HOMEPAGE="http://www.gnu.org/software/emacs"
-SRC_URI="mirror://gnu/emacs/${P}a.tar.gz
- leim? ( mirror://gnu/emacs/leim-${PV}.tar.gz )"
-
-LICENSE="GPL-2"
-SLOT="21"
-KEYWORDS="~x86"
-IUSE="X Xaw3d leim lesstif motif nls nosendmail"
-
-RDEPEND="sys-libs/ncurses
- X? ( x11-libs/libXext
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libXmu
- x11-libs/libXpm
- >=media-libs/giflib-4.1.0.1b
- >=media-libs/jpeg-6b-r2
- >=media-libs/tiff-3.5.5-r3
- >=media-libs/libpng-1.2.1
- !arm? (
- Xaw3d? ( x11-libs/Xaw3d )
- !Xaw3d? ( x11-libs/libXaw )
- motif? (
- lesstif? ( x11-libs/lesstif )
- !lesstif? ( >=x11-libs/openmotif-2.1.30 ) )
- )
- )
- nls? ( sys-devel/gettext )
- !nosendmail? ( virtual/mta )"
-
-DEPEND="${RDEPEND}
- X? ( x11-misc/xbitmaps )"
-
-PROVIDE="virtual/emacs virtual/editor"
-
-src_unpack() {
-
- unpack ${A}
-
- cd "${S}"
- epatch "${FILESDIR}/emacs-21.3-xorg.patch"
- epatch "${FILESDIR}/emacs-21.3-amd64.patch"
- epatch "${FILESDIR}/emacs-21.3-hppa.patch"
- epatch "${FILESDIR}/emacs-21.2-sh.patch"
- epatch "${FILESDIR}/emacs-21.4-libungif-gif-gentoo.patch"
-
- use ppc64 && epatch "${FILESDIR}/emacs-21.3-ppc64.patch"
-
- epatch "${FILESDIR}/emacs-21.4-autosave-tmp.patch"
- epatch "${FILESDIR}/emacs-21.4-blessmail-build.patch"
- epatch "${FILESDIR}/emacs-21.4-qa.patch"
-
- # This will need to be updated for X-Compilation
- sed -i -e "s:/usr/lib/\([^ ]*\).o:/usr/$(get_libdir)/\1.o:g" \
- "${S}/src/s/gnu-linux.h"
-}
-
-src_compile() {
- export SANDBOX_ON=0
-
- # -fstack-protector gets internal compiler error at xterm.c (bug 33265)
- filter-flags -fstack-protector
-
- # emacs doesn't handle LDFLAGS properly (bug #77430 and bug #65002)
- unset LDFLAGS
-
- # ever since GCC 3.2
- replace-flags -O[3-9] -O2
-
- # this fixes bug 152006
- use ppc64 && append-flags -mno-fp-in-toc -mno-sum-in-toc
-
- # -march is known to cause signal 6 on some environment
- filter-flags "-march=*"
-
- eautoconf
-
- local myconf
- use nls || myconf="${myconf} --disable-nls"
- if use X ; then
- if use motif && use lesstif; then
- append-ldflags -L/usr/X11R6/lib/lesstif -R/usr/X11R6/lib/lesstif
- export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include/lesstif"
- fi
- myconf="${myconf}
- --with-x
- --with-xpm
- --with-jpeg
- --with-tiff
- --with-gif
- --with-png"
- if use Xaw3d ; then
- myconf="${myconf} --with-x-toolkit=athena"
- elif use motif ; then
- myconf="${myconf} --with-x-toolkit=motif"
- else
- # do not build emacs with any toolkit, bug 35300
- myconf="${myconf} --with-x-toolkit=no"
- fi
- else
- myconf="${myconf} --without-x"
- fi
- econf ${myconf} || die
- emake CC="$(tc-getCC)" || die
-
- einfo "Recompiling patched lisp files..."
- (cd lisp; emake recompile) || die
- emake CC="$(tc-getCC)" || die
-}
-
-src_install() {
- einstall || die
- for i in "${D}"/usr/bin/* ; do
- mv ${i} ${i}-emacs-${SLOT} || die "mv ${i} failed"
- done
- mv "${D}"/usr/bin/emacs{-emacs,}-${SLOT} || die "mv emacs failed"
- rm "${D}"/usr/bin/emacs-${PV}-emacs-${SLOT}
-
- einfo "Fixing info documentation..."
- mkdir "${T}/emacs-${SLOT}"
- mv "${D}/usr/share/info/dir" "${T}"
- for i in "${D}"/usr/share/info/*
- do
- mv ${i} "${T}"/emacs-${SLOT}/${i##*/}.info
- done
- mv "${T}/emacs-${SLOT}" "${D}/usr/share/info"
- mv "${T}/dir" "${D}/usr/share/info/emacs-${SLOT}"
-
- einfo "Fixing manpages..."
- for m in "${D}"/usr/share/man/man1/* ; do
- mv ${m} ${m/.1/-emacs-${SLOT}.1} || die "mv ${m} failed"
- done
-
- # avoid collision between slots
- rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
-
- einfo "Fixing permissions..."
- find "${D}" -perm 664 |xargs chmod -f 644 2>/dev/null
- find "${D}" -type d |xargs chmod -f 755 2>/dev/null
-
- keepdir /usr/share/emacs/${PV}/leim
- keepdir /usr/share/emacs/site-lisp
-
- dodoc BUGS ChangeLog README
-}
-
-pkg_postinst() {
- test -f ${ROOT}/usr/share/emacs/site-lisp/subdirs.el ||
- cp ${ROOT}/usr/share/emacs{/${PV},}/site-lisp/subdirs.el
-
- eselect emacs update --if-unset
-
- if use nosendmail; then
- while read line; do einfo "${line}"; done<<'EOF'
-
-You disabled sendmail support for Emacs. If you later install a MTA
-then you will need to recompile Emacs. See Bug #11104.
-
-EOF
- fi
- if use X; then
- while read line; do einfo "${line}"; done<<'EOF'
-
-You need to install some fonts for Emacs. Under monolithic
-XFree86/Xorg you typically had such fonts installed by default. With
-modular Xorg, you will have to perform this step yourself on the machine your
-X server is running.
-
-Installing media-fonts/font-adobe-{75,100}dpi would satisfy basic
-Emacs requirements under X11.
-
-EOF
- fi
-}
-
-pkg_postrm() {
- eselect emacs update --if-unset
-}