diff options
Diffstat (limited to 'app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild')
-rw-r--r-- | app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild b/app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild index c6a51b958064..96bfe6d9c230 100644 --- a/app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild,v 1.1 2004/07/01 18:07:26 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-21.3.50-r1.ebuild,v 1.2 2004/10/03 08:20:03 usata Exp $ ECVS_AUTH="ext" export CVS_RSH="ssh" @@ -8,11 +8,11 @@ ECVS_SERVER="savannah.gnu.org:/cvsroot/emacs" ECVS_MODULE="emacs" ECVS_BRANCH="HEAD" ECVS_USER="anoncvs" -ECVS_PASS="" +#ECVS_PASS="" ECVS_CVS_OPTIONS="-dP" ECVS_SSH_HOST_KEY="savannah.gnu.org,199.232.41.3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAzFQovi+67xa+wymRz9u3plx0ntQnELBoNU4SCl3RkwSFZkrZsRTC0fTpOKatQNs1r/BLFoVt21oVFwIXVevGQwB+Lf0Z+5w9qwVAQNu/YUAFHBPTqBze4wYK/gSWqQOLoj7rOhZk0xtAS6USqcfKdzMdRWgeuZ550P6gSzEHfv0=" -inherit elisp-common cvs alternatives +inherit elisp-common cvs alternatives flag-o-matic eutils IUSE="X Xaw3d gif gnome gtk jpeg nls png spell tiff" @@ -37,17 +37,22 @@ DEPEND=">=sys-libs/ncurses-5.3 gtk? ( =x11-libs/gtk+-2* ) !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) ) gnome? ( gnome-base/gnome-desktop ) ) - nls? ( >=sys-devel/gettext-0.11.5 )" + nls? ( >=sys-devel/gettext-0.11.5 ) + >=sys-apps/portage-2.0.51_rc1" PROVIDE="virtual/emacs virtual/editor" -SLOT="${PV}" +SLOT="21.3.50" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~amd64" -DFILE=emacs.desktop +DFILE=emacs-${SLOT}.desktop src_compile() { + + strip-flags + epatch ${FILESDIR}/emacs-subdirs-el-gentoo.diff + local myconf use nls || myconf="${myconf} --disable-nls" @@ -74,10 +79,8 @@ src_compile() { fi fi - unset CFLAGS CPPFLAGS - econf --enable-debug \ - --program-suffix=-${PV} \ + --program-suffix=-${SLOT} \ ${myconf} || die make bootstrap || die @@ -85,18 +88,29 @@ src_compile() { src_install () { einstall || die - rm ${D}/usr/bin/emacs-${PV}-${PV} + rm ${D}/usr/bin/emacs-${SLOT}-${SLOT} # fix info documentation - find ${D}/usr/share/info -type f -exec mv {} {}.info \; + 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 + gzip -9 ${i/info/info/emacs-${SLOT}}.info + fi + done if has_version 'app-text/aspell' ; then # defaults to aspell if installed elisp-site-file-install ${FILESDIR}/40aspell-gentoo.el fi + newenvd ${FILESDIR}/50emacs-${SLOT}.envd 50emacs-${SLOT} + einfo "Fixing manpages..." for m in ${D}/usr/share/man/man1/* ; do - mv ${m} ${m/.1/-${PV}.1} + mv ${m} ${m/.1/-${SLOT}.1} || die "mv man failed" done dodoc BUGS ChangeLog README |