Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64362 - macos: app-editors/emacs-cvs-21.3.50-r1 patch for carbon (aqua) support
Summary: macos: app-editors/emacs-cvs-21.3.50-r1 patch for carbon (aqua) support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC All
: High enhancement (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-17 00:38 UTC by Darin Morrison
Modified: 2022-04-21 08:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Morrison 2004-09-17 00:39:40 UTC
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.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-20 09:32:40 UTC
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.
Comment 2 Darin Morrison 2004-09-20 10:40:46 UTC
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.
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-22 21:55:04 UTC
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.)
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-26 23:01:54 UTC
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.)
Comment 5 Ciaran McCreesh 2004-10-27 00:14:22 UTC
Fine from the vim front... I was using carbon in my local version, but I can change it.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-28 02:27:47 UTC
Thanks ciaranm, i'll add emacs CVS snapshot for ppc-macos
this weekend. (also modify emacs-cvs package to include
aqua support)
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-06 08:08:32 UTC
Fixed in CVS. (I added aqua USE flag to use.local.desc
for the moment.)
Comment 8 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-06 08:08:54 UTC
Fogot to close, sorry ;-/