ports/84622: enhancement to make emacs-calc obey ${PREFIX}
Andrew Bernard
andrewb at cs.cmu.edu
Sat Aug 6 17:00:22 UTC 2005
>Number: 84622
>Category: ports
>Synopsis: enhancement to make emacs-calc obey ${PREFIX}
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Aug 06 17:00:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Andrew Bernard
>Release: 5.4
>Organization:
>Environment:
FreeBSD dedalus.neglectgravity.com 5.4-RELEASE FreeBSD 5.4-RELEASE #11: Fri Aug 5 22:30:03 EDT 2005 andrew at dedalus.neglectgravity.com:/usr/src/sys/i386/compile/DEDALUS i386
>Description:
emacs-calc doesn't use ${PREFIX}.
>How-To-Repeat:
>Fix:
Credit for this goes to John E Hein <jhein at timing.com>.
Patch:
Index: Makefile
===================================================================
RCS file: /base/FreeBSD-CVS/ports/math/emacs-calc/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 13 Jul 2005 15:31:01 -0000 1.1
+++ Makefile 24 Jul 2005 12:01:13 -0000
@@ -18,6 +18,10 @@
RUN_DEPENDS= emacs:${PORTSDIR}/editors/emacs
BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs
+USE_REINPLACE= yes
INFO= calc
+post-patch:
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile
+
.include <bsd.port.mk>
Index: files/patch-Makefile
===================================================================
RCS file: /base/FreeBSD-CVS/ports/math/emacs-calc/files/patch-Makefile,v
retrieving revision 1.1
diff -u -r1.1 patch-Makefile
--- files/patch-Makefile 13 Jul 2005 15:31:02 -0000 1.1
+++ files/patch-Makefile 24 Jul 2005 11:50:17 -0000
@@ -22,7 +22,7 @@
+# FreeBSD installation
+
-+prefix = /usr/local
++prefix = %%PREFIX%%
+infodir = ${prefix}/info
+sharedir = ${prefix}/share
+emacssharedir = ${sharedir}/emacs
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list