a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 21469 2007-01-26 02:28:02Z eridius@macports.org $
PortSystem 1.0
name emacs-app
version 23.0.0_NS-9.0rc1
categories aqua editors
maintainers css@macports.org
description The GNU Emacs text editor (Cocoa version)
long_description GNU Emacs is a self-documenting, customizable, \
extensible real-time display editor. This is a port of the latest \
GNU Emacs source to the OpenStep (or NeXTstep) APIs, as implemented \
by Cocoa on OS X. It differs from Carbon ports of GNU Emacs in that \
it makes a more concerted attempt from the ground up to follow OS X \
desktop and UI conventions.
# Note that this distribution can support GNUstep as well, but that
# configuration is untested at this time.
platforms darwin
homepage http://emacs-app.sourceforge.net/
master_sites sourceforge
distname emacs-${version}
extract.suffix .tar.bz2
use_bzip2 yes
checksums md5 bbbe6ac08c74d921caf132352dd7fd1b \
sha1 0964b2661577fb8a0551a38710b3d5cce168d7b8
depends_lib port:coreutils \
port:pkgconfig \
port:texinfo
# The current distribution contains its own build script, so use that
# rather than trying to manually manage the various steps of the build
# process. Perhaps a future version of this Portfile could handle the
# compile script's commands directly.
use_automake no
use_autoconf no
use_configure no
# Eventually build the port without the provided script...
# configure.args --with-ns --without-x --prefix=${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources
platform darwin 8 {
if {$xcodeversion == "2.1"} {
set xcodebuilddir build/Deployment
}
}
build.dir ${worksrcpath}/nextstep
build.cmd ./compile
# Due to the fact that the script compiles and installs everything
# into the source directory, the destroot phase must manually copy the
# resulting application package.
pre-configure {
reinplace "s|--with-ns|--with-ns --without-freetype|g" ${worksrcpath}/nextstep/compile
}
destroot {
xinstall -m 755 -d ${destroot}/Applications/MacPorts
file copy ${worksrcpath}/nextstep/build/Emacs.app \
${destroot}/Applications/MacPorts
}