Skip to content
Permalink
Browse files

Make the carbon variant of emacs work.

Submitted by:	Sean Eric Fagan <sef@apple.com>

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@1000 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jordan K. Hubbard
Jordan K. Hubbard committed Oct 9, 2002
1 parent 2fbb113 commit 4761c4b16529ff5af021d0f4779eb5710205c9f9
Showing with 2,309 additions and 1 deletion.
  1. +11 −1 editors/emacs/Portfile
  2. +24 −0 editors/emacs/files/macosx-patch
  3. +2,274 −0 editors/emacs/macosx-contents
@@ -17,13 +17,23 @@ variant darwin {
patch.pre_args -p1
}

# Overrides darwin
variant carbon {
configure.args-append --with-carbon
configure.args-append --prefix=${workpath}/build
fetch.type cvs
cvs.root :pserver:anoncvs@subversions.gnu.org:/cvsroot/emacs
cvs.module emacs
worksrcdir emacs
patch {}
patchfiles macosx-patch
build.target.all bootstrap
build.target.install install-mac
include macosx-contents
install {
system "cd ${workpath}/emacs && make install-mac && \
( cd ${workpath}/build && tar cf - Emacs.app | \
( cd ${prefix}/bin && tar xf - ) ) "
}
}

variant x11 {
@@ -0,0 +1,24 @@
Index: emacs/Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/Makefile.in,v
retrieving revision 1.267
diff -u -r1.267 Makefile.in
--- Makefile.in 15 Sep 2002 01:53:40 -0000 1.267
+++ Makefile.in 8 Oct 2002 18:55:39 -0000
@@ -741,3 +741,16 @@
-(cd lispintro && $(MAKE) $(MFLAGS) clean)
(cd leim; $(MAKE) $(MFLAGS) clean)

+### Used only on the mac
+install-mac: install
+ cp -r mac/Emacs.app ${prefix}
+ -mkdir -p ${prefix}/Emacs.app/Contents/MacOS/libexec
+ -mkdir -p ${prefix}/Emacs.app/Contents/Resources/info
+ ( cd ${datadir}/emacs/${version} ; tar cf - etc leim lisp site-lisp ) | \
+ ( cd ${prefix}/Emacs.app/Contents/Resources ; tar xf - )
+ ( cd ${prefix} ; tar cf - bin ) | ( cd ${prefix}/Emacs.app/Contents/MacOS ; tar xf - )
+ ( cd ${libexecdir}/emacs/${version}/${configuration} ; tar cf - . ) | \
+ ( cd ${prefix}/Emacs.app/Contents/MacOS/libexec ; tar xf - )
+ ( cd ${infodir} ; tar cf - . ) | \
+ ( cd ${prefix}/Emacs.app/Contents/Resources/info ; tar xf - )
+

0 comments on commit 4761c4b

Please sign in to comment.
You can’t perform that action at this time.