[78600] trunk/dports/editors/emacs-snapshot/Portfile

saispo at macports.org saispo at macports.org
Fri May 13 13:18:03 PDT 2011


Revision: 78600
          http://trac.macports.org/changeset/78600
Author:   saispo at macports.org
Date:     2011-05-13 13:18:01 -0700 (Fri, 13 May 2011)
Log Message:
-----------
fix conflicts with emacs ports and change binary name and man name
remove glib2 depends
fix building errors

Modified Paths:
--------------
    trunk/dports/editors/emacs-snapshot/Portfile

Modified: trunk/dports/editors/emacs-snapshot/Portfile
===================================================================
--- trunk/dports/editors/emacs-snapshot/Portfile	2011-05-13 19:25:57 UTC (rev 78599)
+++ trunk/dports/editors/emacs-snapshot/Portfile	2011-05-13 20:18:01 UTC (rev 78600)
@@ -5,10 +5,10 @@
 
 name            emacs-snapshot
 version         20110512
-revision        1
+revision        2
 
 categories      editors
-maintainers     dports openmaintainer
+maintainers     dports saispo openmaintainer
 description     The GNU Emacs text editor
 long_description \
     GNU Emacs is a self-documenting, customizable, extensible real-time \
@@ -27,6 +27,9 @@
                     sha1    4dbdabbd97c309b3f821573261ca260ef2d01ef1 \
                     rmd160  3b11f98bc3b66b34e10215079658a8090c585929
 
+set major       24.0.50
+set suffix      ".${name}"
+
 pre-configure {
     system "cd ${worksrcpath}; sh ./autogen.sh"
 }
@@ -47,11 +50,23 @@
 depends_lib     port:ncurses \
                 port:dbus \
                 port:texinfo
-
 post-destroot {
     xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
+    # avoid conflict with ctags installed by the ctags port
     delete ${destroot}${prefix}/bin/ctags
-    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
+
+    # give the emacs binary (and its manpage) a more sane name
+    move ${destroot}${prefix}/bin/emacs \
+         ${destroot}${prefix}/bin/${name}
+    move ${destroot}${prefix}/bin/emacsclient \
+         ${destroot}${prefix}/bin/emacsclient-snapshot
+    move ${destroot}${prefix}/share/man/man1/emacs.1.gz \
+         ${destroot}${prefix}/share/man/man1/${name}.1.gz
 }
 
 livecheck.type  regex
@@ -97,7 +112,6 @@
     configure.args-append   --with-gconf
     configure.args-append   --with-rsvg
     depends_lib-append      port:gtk2 \
-                            port:glib2 \
                             port:gconf \
                             port:librsvg
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110513/eb6eb6bb/attachment.html>


More information about the macports-changes mailing list