[106357] trunk/dports/math/gnuplot/Portfile

mojca at macports.org mojca at macports.org
Thu May 23 06:20:03 PDT 2013


Revision: 106357
          https://trac.macports.org/changeset/106357
Author:   mojca at macports.org
Date:     2013-05-23 06:20:03 -0700 (Thu, 23 May 2013)
Log Message:
-----------
gnuplot: use elisp portgroup (#39094)

Modified Paths:
--------------
    trunk/dports/math/gnuplot/Portfile

Modified: trunk/dports/math/gnuplot/Portfile
===================================================================
--- trunk/dports/math/gnuplot/Portfile	2013-05-23 13:00:17 UTC (rev 106356)
+++ trunk/dports/math/gnuplot/Portfile	2013-05-23 13:20:03 UTC (rev 106357)
@@ -4,6 +4,7 @@
 PortSystem                  1.0
 PortGroup                   xcodeversion 1.0
 PortGroup                   texlive 1.0
+PortGroup                   elisp 1.0
 
 name                        gnuplot
 version                     4.6.3
@@ -94,19 +95,10 @@
 }
 
 variant emacs description "An emacs mode for working with gnuplot" {
-    # This would be nicer with an emacs PortGroup:
-    # Use the port that provides Emacs.app (emacs-app[-devel])
-    # or the usual emacs binary if the former doesn't exist
-    set app_binary ${applications_dir}/Emacs.app/Contents/MacOS/Emacs
-    set app_provider [registry_file_registered $app_binary]
-    if {[file exists $app_binary] && $app_provider != 0} {
-        depends_build-append port:${app_provider}
-        configure.env-append EMACS=${app_binary}
-    } else {
-        depends_build-append path:bin/emacs:emacs
-    }
+    depends_build-append    port:${emacs_binary_provider} 
+    configure.env-append    EMACS=${emacs_binary}
     configure.args-delete   --without-lisp-files
-    configure.args-append   --with-lisp-files --with-lispdir=${prefix}/share/emacs/site-lisp
+    configure.args-append   --with-lisp-files --with-lispdir=${emacs_lispdir}
 }
 
 variant luaterm description "Enable lua-based terminals" {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130523/f078d9ba/attachment.html>


More information about the macports-changes mailing list