[94278] trunk/dports/editors
dports at macports.org
dports at macports.org
Wed Jun 13 14:00:55 PDT 2012
Revision: 94278
https://trac.macports.org/changeset/94278
Author: dports at macports.org
Date: 2012-06-13 14:00:54 -0700 (Wed, 13 Jun 2012)
Log Message:
-----------
emacs23: new port for the latest release of the previous emacs major
version (v23.4)
Modified Paths:
--------------
trunk/dports/editors/emacs23/Portfile
Added Paths:
-----------
trunk/dports/editors/emacs23/
Modified: trunk/dports/editors/emacs23/Portfile
===================================================================
--- trunk/dports/editors/emacs/Portfile 2012-06-11 21:04:44 UTC (rev 94186)
+++ trunk/dports/editors/emacs23/Portfile 2012-06-13 21:00:54 UTC (rev 94278)
@@ -4,10 +4,8 @@
PortSystem 1.0
PortGroup muniversal 1.0
-name emacs
-conflicts xemacs
+name emacs23
version 23.4
-revision 1
categories editors
license GPL-3+
@@ -23,20 +21,25 @@
platforms darwin freebsd
homepage http://www.gnu.org/software/emacs/emacs.html
-master_sites gnu
+master_sites gnu:emacs
+distname emacs-${version}
-checksums rmd160 5fb7e4cd4270a524b8723ad86a145a0e47336bf7 \
- sha256 b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18
+checksums rmd160 5fb7e4cd4270a524b8723ad86a145a0e47336bf7 \
+ sha256 b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18
patchfiles patch-configure.diff \
patch-src_xgselect.c.diff
+set major [lindex [split ${version} .] 0]
+set suffix ".${name}"
+
configure.args --without-x \
--without-dbus \
--without-gconf \
--without-libotf \
--without-m17n-flt \
--without-gpm \
+ --program-suffix=${suffix} \
--infodir ${prefix}/share/info/${name}
depends_build port:pkgconfig \
@@ -45,13 +48,35 @@
post-destroot {
xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
- delete ${destroot}${prefix}/bin/ctags
+ delete ${destroot}${prefix}/bin/ctags${suffix}
delete ${destroot}${prefix}/share/man/man1/ctags.1
+ # remove non-version-specific site-lisp dir
+ delete ${destroot}${prefix}/share/emacs/site-lisp
+ delete ${destroot}${prefix}/var/games/emacs/snake-scores
+ delete ${destroot}${prefix}/var/games/emacs/tetris-scores
+
+ # would be better to rename this and rewrite with appropriate paths
+ delete ${destroot}${prefix}/share/applications/emacs.desktop
+ delete ${destroot}${prefix}/share/icons
+
+ # add suffixes to man pages to match binary names
+ foreach f [glob -dir ${destroot}${prefix}/share/man/man1 *.1] {
+ move $f "[file rootname $f]${suffix}.1"
+ }
+
+ # give the emacs binary (and its manpage) a more sane name
+ move ${destroot}${prefix}/bin/emacs${suffix} \
+ ${destroot}${prefix}/bin/${name}
+ move ${destroot}${prefix}/bin/emacs-${version}${suffix} \
+ ${destroot}${prefix}/bin/emacs-${version}
+ move ${destroot}${prefix}/share/man/man1/emacs${suffix}.1 \
+ ${destroot}${prefix}/share/man/man1/${name}.1
+
}
livecheck.type regex
livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D
-livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar
+livecheck.regex emacs-(${major}\\.\\d+\\w*)\\.tar
variant x11 description {Builds emacs as a X11 program with Lucid widgets} {
configure.args-delete --without-x
@@ -63,7 +88,7 @@
--with-gif \
--with-png \
--without-rsvg \
- --with-xft
+ --with-xft
depends_lib-append port:xorg-libXmu \
port:xorg-libXaw \
port:xpm \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120613/88eccec2/attachment-0001.html>
More information about the macports-changes
mailing list