Skip to content
Permalink
Browse files

remove - now useless - variants from emacs, create emacs-devel which …

…fetches sources from cvs and has fancy variants (carbin, gtk)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14714 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 19, 2005
1 parent 97144be commit 4f45a90574bfc690031627863c05341288a49851
Showing with 92 additions and 17 deletions.
  1. +73 −0 editors/emacs-devel/Portfile
  2. +11 −0 editors/emacs-devel/files/patch-src-s-darwin.h
  3. +8 −17 editors/emacs/Portfile
@@ -0,0 +1,73 @@
# $Id: Portfile,v 1.1 2005/10/19 20:48:33 mww Exp $

PortSystem 1.0
name emacs-devel
version 22.0.50.1
categories editors
maintainers darwinports@opendarwin.org
description The GNU Emacs text editor, bleeding edge version
long_description GNU Emacs is a self-documenting, customizable, extensible real-time display editor. \
Users new to Emacs will be able to use basic features fairly rapidly \
by studying the tutorial and using the self-documentation features. \
Emacs also has an extensive interactive manual browser. It is easily \
extensible since its editing commands are written in Lisp.
platforms darwin freebsd
master_sites gnu
fetch.type cvs
cvs.root :ext:anoncvs@savannah.gnu.org:/cvsroot/emacs
cvs.module emacs
cvs.env CVS_RSH=ssh
cvs.args -D20051018

worksrcdir emacs

patch.pre_args -p1
patchfiles patch-src-s-darwin.h

configure.args --without-x
configure.env \
LDFLAGS="-L${prefix}/lib" \
CFLAGS="-I${prefix}/include" \
CPPFLAGS="-I${prefix}/include"

platform darwin 8 {
configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

build.target bootstrap

destroot.args prefix=${destroot}/${prefix}

post-destroot {
cd ${destroot}${prefix}
file delete info/dir
file delete share/info
file rename info share/info
system "rm -rf share/man"
file rename man share/man
file mkdir share/emacs/$version/leim
if {[variant_isset carbon]} {
global destroot prefix version

file delete bin/emacs
file delete bin/emacs-$version
}
}

variant x11 {
configure.args --with-x --with-x-toolkit=lucid --without-carbon \
--with-xpm --with-jpeg --with-tiff --with-gif --with-png
depends_lib-append lib:libX11:XFree86 lib:libXpm:XFree86 \
lib:libjpeg:jpeg lib:libtiff:tiff \
lib:libungif:ungif lib:libpng:libpng
}

variant gtk requires devel x11 {
configure.args-append --with-x-toolkit=gtk
depends_lib-append lib:libgtk.2:gtk2 lib:libglib.2:glib2
}

variant carbon conflicts x11 {
configure.args-append --with-carbon --enable-carbon-app=${destroot}/Applications/DarwinPorts
}

@@ -0,0 +1,11 @@
--- emacs/src/s/darwin.h Tue Nov 30 06:57:27 2004
+++ emacs/src/s/darwin.h.new Wed Jan 12 19:30:53 2005
@@ -261,7 +261,7 @@
end of the header for adding load commands. Needed for dumping.
0x690 is the total size of 30 segment load commands (at 56
each). */
-#define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker -headerpad -Xlinker 690
+#define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker -headerpad -Xlinker E00

#define C_SWITCH_SYSTEM_TEMACS -Dtemacs

@@ -1,8 +1,9 @@
# $Id: Portfile,v 1.43 2005/10/11 07:10:07 mww Exp $
# $Id: Portfile,v 1.44 2005/10/19 20:48:34 mww Exp $

PortSystem 1.0
name emacs
version 21.4a
revision 1
categories editors
maintainers darwinports@opendarwin.org
description The GNU Emacs text editor
@@ -14,12 +15,14 @@ long_description GNU Emacs is a self-documenting, customizable, extensible real-
platforms darwin freebsd
master_sites gnu
checksums md5 8f9d97cbd126121bd5d97e5e31168a87
configure.args --without-x
configure.args --without-x --without-carbon
destroot.args prefix=${destroot}/${prefix}
patchfiles patch-src-xterm.c

worksrcdir emacs-21.4

patch.pre_args -p1
patchfiles patch-src-xterm.c apple-patches ange-ftp.el.diff

configure.env \
LDFLAGS="-L${prefix}/lib" \
CFLAGS="-I${prefix}/include" \
@@ -41,11 +44,6 @@ post-destroot {
}
}

variant darwin {
patchfiles-append apple-patches ange-ftp.el.diff
patch.pre_args -p1
}

variant x11 {
configure.args --with-x --with-x-toolkit=lucid --without-carbon \
--with-xpm --with-jpeg --with-tiff --with-gif --with-png
@@ -54,14 +52,7 @@ variant x11 {
lib:libungif:ungif lib:libpng:libpng
}

variant gtk requires devel x11 {
configure.args-append --with-x-toolkit=gtk
depends_lib-append lib:libgtk.2:gtk2 lib:libglib.2:glib2
platform darwin 8 {
configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

# Overrides darwin
variant carbon requires devel conflicts x11 {
configure.args-append --with-carbon --enable-carbon-app=${destroot}/Applications/DarwinPorts
patchfiles-delete patch-src-xterm-devel.c
version 22.0.50.1
}

0 comments on commit 4f45a90

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