Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 108345 Details for
Bug 164164
app-editors/emacs-cvs 22.0.93 (version bump)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
first draft of emacs-22.0.93.ebuild based on emacs-cvs-22.0.92.ebuild
emacs-22.0.93.ebuild (text/plain), 6.44 KB, created by
ArYiX
on 2007-01-28 07:09:20 UTC
(
hide
)
Description:
first draft of emacs-22.0.93.ebuild based on emacs-cvs-22.0.92.ebuild
Filename:
MIME Type:
Creator:
ArYiX
Created:
2007-01-28 07:09:20 UTC
Size:
6.44 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.92.ebuild,v 1.2 2007/01/05 14:16:50 opfer Exp $ > > >inherit elisp-common alternatives flag-o-matic eutils > >IUSE="X Xaw3d alsa aqua gif gnome gtk jpeg lesstif motif png spell tiff source gzip-el toolkit-scroll-bars nls multilib mudflap" > >#S="${WORKDIR}/emacs" > >DESCRIPTION="Emacs is the extensible, customizable, self-documenting real-time display editor." >SRC_URI="${P}.tar.gz" >HOMEPAGE="http://www.gnu.org/software/emacs" > >RESTRICT="$RESTRICT nostrip" > >X_DEPEND="x11-libs/libXmu x11-libs/libXpm x11-libs/libXt x11-misc/xbitmaps || ( media-fonts/font-adobe-100dpi media-fonts/font-adobe-75dpi )" > >DEPEND=">=sys-apps/portage-2.1.0 > >=sys-libs/ncurses-5.3 > >=sys-libs/zlib-1.2.3 > >=app-arch/gzip-1.3.5 > alsa? ( >=media-sound/alsa-headers-1.0.10 ) > spell? ( || ( app-text/ispell app-text/aspell ) ) > X? ( || ( ( $X_DEPEND ) virtual/x11 ) ) > X? ( gif? ( >=media-libs/giflib-4.1.4 ) > jpeg? ( >=media-libs/jpeg-6b ) > tiff? ( >=media-libs/tiff-3.5.7 ) > png? ( >=media-libs/libpng-1.2.5 ) > gtk? ( >=x11-libs/gtk+-2.4* ) > !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) ) > !Xaw3d? ( motif? ( >=x11-libs/openmotif-2.1.30 )) > !motif? ( lesstif? ( >=x11-libs/lesstif-0.93 ) ) > gnome? ( gnome-base/gnome-desktop ) ) > nls? ( >=sys-devel/gettext-0.11.5 ) > !=app-editors/emacs-cvs-*" > >PROVIDE="virtual/emacs virtual/editor" > >SLOT="22.0.93" >LICENSE="GPL-2" >KEYWORDS="~amd64 ~ppc ~ppc-macos ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" > >DFILE=emacs-${SLOT}.desktop > >src_unpack() { > unpack ${A} > cd ${S} ># cvs_src_unpack ># cd ${S}; >#epatch ${FILESDIR}/emacs-subdirs-el-gentoo.diff > use ppc-macos && epatch ${FILESDIR}/emacs-cvs-21.3.50-nofink.diff ># 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" ># epatch "${FILESDIR}/${PN}-freebsd-sparc.patch" > einfo "Running autoconf" > autoconf || die "autoconf failed" > >} > >src_compile() { > export SANDBOX_ON=0 # for the unbelievers, see Bug #131505 ># ALLOWED_FLAGS=" " > strip-flags > unset LDFLAGS ># LDFLAGS=" -Wl,-znocombreloc" > replace-flags -O[3-9] -O2 > #sed -i -e "s/-lungif/-lgif/g" configure* src/Makefile* || die > > local myconf > > myconf="${myconf} $(use_enable mudflap multilib)" > > if use X; then > myconf="${myconf} --with-x" > myconf="${myconf} --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} --without-gtk" > myconf="${myconf} --with-x-toolkit=athena" > elif use motif; then > einfo "Configuring to build with motif toolkit support" > myconf="${myconf} --without-gtk" > myconf="${myconf} --with-x-toolkit=motif" > else use lesstif; > 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 > > 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) \ > || 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 () { > make install DESTDIR=${D} || die "make install failed" > ># for i in ${D}/usr/bin/* ; do ># mv ${i} ${i}.emacs-${SLOT} || die "mv ${i} failed" ># done > > rm ${D}/usr/bin/emacs-${SLOT}.emacs-${SLOT} || die "removing duplicate emacs executable failed" > dohard /usr/bin/emacs.emacs-${SLOT} /usr/bin/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 > 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 > insinto /etc/env.d > cat >${D}/etc/env.d/50emacs-${SLOT} <<EOF >INFOPATH=/usr/share/info/emacs-${SLOT} >EOF ># newenvd ${FILESDIR}/60emacs-${SLOT}.envd 60emacs-${SLOT} > einfo "Fixing manpages..." > for m in ${D}/usr/share/man/man1/* ; do > mv ${m} ${m/.1/.emacs-${SLOT}.1} || die "mv man failed" > done > > 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-${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-${SLOT}-gentoo.el > fi > ># if ! use gzip-el; then ># find ${D} -type f -name \*.el.gz -print0 |xargs -0 gunzip ># fi > dodoc BUGS ChangeLog README > make_desktop_entry /usr/share/emacs/${SLOT}/etc/images/icons/ emacs_48.png gnome-emacs.png ># insinto /usr/share/applications ># cp ${FILESDIR}/emacs.desktop.in ${DFILE} ># sed -i -e "s,@PV@,${SLOT},g" ${DFILE} ># doins ${DFILE} >} > >update-alternatives() { > for i in emacs emacsclient etags ctags b2m ebrowse \ > rcs-checkin grep-changelog ; do > alternatives_auto_makesym "/usr/bin/$i" "/usr/bin/$i.emacs-*" > done >} > >pkg_postinst() { > use ppc-macos || update-alternatives > elisp-site-regen > 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. > >Installing media-fonts/font-adobe-{75,100}dpi would satisfy basic >Emacs requirements under X11. > >EOF > fi >} > >pkg_postrm() { > use ppc-macos || update-alternatives > elisp-site-regen >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 164164
: 108345