[MacPorts] #36135: gnuplot enhancement to support emacs-app
MacPorts
noreply at macports.org
Fri Sep 14 00:48:28 PDT 2012
#36135: gnuplot enhancement to support emacs-app
--------------------------+------------------------------------
Reporter: jrh@… | Owner: mojca.miklavec.lists@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords: haspatch
Port: gnuplot |
--------------------------+------------------------------------
Comment (by mojca.miklavec.lists@…):
Thanks a lot for the patch and diagnosis. I would like to try to avoid
setting PATH and fix the configure script instead, and above all, to get
the change upstream (the version 4.6.1 is soon going to be released, but
the team of developers is usually reluctant to do any last-minute
changes).
https://sourceforge.net/tracker/?func=detail&aid=3567659&group_id=2055&atid=102055
The patch testing for emacs vs. Emacs in lisp/configure is not really
needed since it just tries to patch emacs 20.2 and 20.3. My suggestion for
the patch would be
{{{
--- lisp/configure.in.orig
+++ lisp/configure.in
@@ -13,8 +13,6 @@ AC_SET_MAKE
AC_PROG_INSTALL
AM_PATH_LISPDIR
-EMACS=`basename $EMACS`
-
AC_CHECK_PROGS(DVIPS, dvips, no)
AC_CHECK_PROGS(LATEX, latex latex2e, no)
AC_PATH_PROG(MAKEINFO, makeinfo, no)
@@ -75,7 +73,7 @@ AC_MSG_RESULT([$emacs_version])
vnum=`echo $emacs_version |awk -F\. '{print 100*$1+$2}'`
AC_MSG_CHECKING([whether info-look.el is needed])
-if test "$EMACS" = emacs ; then
+if test `basename $EMACS` = emacs ; then
if test "$vnum" -ge 2030 ; then
info_look="not needed with emacs $emacs_version"
INFO_LOOK_ELC=
@@ -83,7 +81,7 @@ if test "$EMACS" = emacs ; then
info_look="using info-look.20.2.el"
cp info-look.20.2.el info-look.el
fi
-elif test "$EMACS" = xemacs ; then
+elif test `basename $EMACS` = xemacs ; then
if test "$vnum" -ge 2000 ; then
info_look="using info-look.20.3.el"
cp info-look.20.3.el info-look.el
}}}
This doesn't check for {{{Emacs}}}, but if needed, the test could be
extended to check for both. However, this would only patch emacs
20.2/20.3, so I wouldn't really try to fix that as it doesn't bring
anything.
Just curious: do you actually use this emacs extensions?
--
Ticket URL: <https://trac.macports.org/ticket/36135#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list