Errors in port Makefiles: emacs20 and postgis

NIIMI Satoshi sa2c at sa2c.net
Wed Dec 14 13:02:12 PST 2005


On 2005/12/15 2:07, Bill Fenner wrote:
> ===> chinese/emacs20
> "/a/fenner/ports/chinese/emacs20/../../editors/emacs20/Makefile", line 67:
> warning: duplicate script for target "post-install" ignored
> "/a/fenner/ports/chinese/emacs20/../../editors/emacs20/Makefile", line 68:
> warning: duplicate script for target "post-install" ignored
> 
> I guess editors/emacs20 gained a post-install target, while chinese/emacs20
> already had one?

Oops.  I didn't check that port when I posted the PR.

Changing "post-install:" to "post-install::" on editors/emacs20/Makefile 
and chinese/emacs20/Makefile like attached patch fixes the problem.

-- 
NIIMI Satoshi
-------------- next part --------------
Index: chinese/emacs20/Makefile
===================================================================
RCS file: /home/ncvs/ports/chinese/emacs20/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- chinese/emacs20/Makefile	29 Jan 2002 09:39:58 -0000	1.4
+++ chinese/emacs20/Makefile	14 Dec 2005 20:39:00 -0000
@@ -32,7 +32,7 @@
 	@${ECHO_CMD} "share/emacs/%%EMACS_VER%%/etc/dot.emacs" >> ${WRKDIR}/pkg-plist
 	@${CAT} ${MASTERDIR}/pkg-plist >> ${WRKDIR}/pkg-plist
 
-post-install:
+post-install::
 	${INSTALL} -c ${.CURDIR}/files/Emacs ${PREFIX}/share/emacs/${PORTVERSION}/etc
 	${INSTALL} -c ${.CURDIR}/files/dot.emacs ${PREFIX}/share/emacs/${PORTVERSION}/etc
 	@${CAT} ${PKGMESSAGE}
Index: editors/emacs20/Makefile
===================================================================
RCS file: /home/ncvs/ports/editors/emacs20/Makefile,v
retrieving revision 1.74
diff -u -r1.74 Makefile
--- editors/emacs20/Makefile	12 Dec 2005 21:12:52 -0000	1.74
+++ editors/emacs20/Makefile	14 Dec 2005 20:38:33 -0000
@@ -61,7 +61,7 @@
 	)
 
 BINDIR=	${PREFIX}/libexec/emacs/${EMACS_VER}/${CONFIGURE_TARGET}
-post-install:
+post-install::
 	for f in b2m ctags emacs emacsclient etags rcs-checkin; do \
 		${LN} -sf ${BINDIR}/$${f} ${PREFIX}/bin/$${f}20; \
 	done


More information about the freebsd-ports mailing list