ports/107043: [Patch] math/gnuplot doen't respect the existence of emacs
Koji Yokota
yokota at res.otaru-uc.ac.jp
Thu Dec 21 21:30:19 UTC 2006
>Number: 107043
>Category: ports
>Synopsis: [Patch] math/gnuplot doen't respect the existence of emacs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 21 21:30:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Koji Yokota
>Release: FreeBSD 6.1-RELEASE i386
>Organization:
Otaru University of Commerce
>Environment:
System: FreeBSD hoge.hoge.otaru-uc.ac.jp 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun Sep 3 17:18:10 JST 2006 hoge at hoge.hoge.otaru-uc.ac.jp:/usr/obj/usr/src/sys/SMP i386
>Description:
- math/gnuplot/Makefile fails to find emacs or xemacs
( .include <bsd.port.per.mk> is in a wrong place)
- the path for elisps is wrong
>How-To-Repeat:
Everytime
>Fix:
--- Makefile.orig Thu Dec 21 18:47:22 2006
+++ Makefile Thu Dec 21 19:01:28 2006
@@ -30,7 +30,9 @@
MAN1= gnuplot.1 lasergnu.1
INFO= gnuplot
-.if exists(${PREFIX}/bin/emacs) || exists(${PREFIX}/bin/xemacs) || exists(/usr/local/bin/emacs)
+.include <bsd.port.pre.mk>
+
+.if exists(${PREFIX}/bin/emacs) || exists(${PREFIX}/bin/xemacs)
USE_EMACS= yes
EMACS_PORT_NAME= emacs21
EMACS_NO_BUILD_DEPENDS= yes
@@ -41,8 +43,6 @@
CONFIGURE_ARGS+= --without-lisp-files
.endif
-.include <bsd.port.pre.mk>
-
.if !defined(WITHOUT_READLINE)
.if ${OSVERSION} < 500018
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
@@ -106,7 +106,7 @@
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin
.if exists(${PREFIX}/bin/emacs) || exists(${PREFIX}/bin/xemacs)
- ${INSTALL_DATA} ${WRKSRC}/lisp/gnuplot*.el ${EMACS_SITE_LISPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lisp/gnuplot*.el ${PREFIX}${EMACS_SITE_LISPDIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list