The following is a patch to enable carbon support in emacs-cvs: --BEGIN COPY-- --- emacs-cvs-21.3.50-r1.ebuild Fri Sep 17 00:12:56 2004 +++ emacs-cvs-21.3.50-r1.ebuild.carbon Fri Sep 17 00:21:03 2004 @@ -14,7 +14,7 @@ inherit elisp-common cvs alternatives -IUSE="X Xaw3d gif gnome gtk jpeg nls png spell tiff" +IUSE="X Xaw3d aqua gif gnome gtk jpeg nls png spell tiff" S=${WORKDIR}/${ECVS_MODULE} DESCRIPTION="Emacs is the extensible, customizable, self-documenting real-time display editor." @@ -43,7 +43,7 @@ SLOT="${PV}" LICENSE="GPL-2" -KEYWORDS="~x86 ~ppc ~sparc ~amd64" +KEYWORDS="~x86 macos ~ppc ~sparc ~amd64" DFILE=emacs.desktop @@ -54,7 +54,12 @@ myconf="${myconf} $(use_with X x)" - if use X; then + if use aqua; then + if use macos; then + einfo "Configuring to build with Carbon (Aqua) support" + myconf="${myconf} --without-x --with-carbon --enable-carbon-app=/Applications/Gentoo" + fi + elif use X; then myconf="${myconf} --with-xpm" myconf="${myconf} $(use_with jpeg) $(use_with tiff)" myconf="${myconf} $(use_with gif) $(use_with png)" --END COPY-- The user must specify the "macos" and "aqua" (this is simply a temporary keyword until something official is come up with, though I think "aqua" is good) keywords in their make.conf. Also, I don't know if there is some sort of policy on install locations and whether it would be better to move the Emacs.app into some directory other than /Applications/Gentoo, but I simply used this directory since darwinports puts it in /Applications/DarwinPorts. Anyway, this is mainly to serve as an example. It's the easiest and best way to get emacs compiling with a graphical user interface on Mac OS X.
Does the modified ebuild actually work? (Haven't tested though.) I have an ebuild to build emacs-carbon if you set USE="carbon" in addition to X interface. (I don't want to make emacs-carbon and emacs-x exclusive.) I think "carbon" is a good name for that purpose but we haven't reached a firm consensus on the name. There was a thread in both gentoo-dev and gentoo-osx, so please discuss it there (gentoo-dev is preferred). The location of Emacs.app should be discussed in the next gentoo-macos meeting.
Yes, it compiles and works fine as long as I apply the carbon patch at bug 64362. I tried briefly with just X and that didn't work, but I didn't spend much time investigating since I wasn't particularly interested in compiling without Carbon.
Right, I also come to think that "aqua" is good for this purpose, but this should be discussed in the next osx meeting. (Note that our KEYWORD has changed to ppc-macos.)
I'd like to include the patch in CVS. Any objection if I use "aqua" USE flag and choose /Applications/Gentoo/Emacs.app for Carbon Emacs? (aqua USE flag enables either carbon or cocoa, and I don't think we need carbon USE flag only to use carbon.)
Fine from the vim front... I was using carbon in my local version, but I can change it.
Thanks ciaranm, i'll add emacs CVS snapshot for ppc-macos this weekend. (also modify emacs-cvs package to include aqua support)
Fixed in CVS. (I added aqua USE flag to use.local.desc for the moment.)
Fogot to close, sorry ;-/