ports/124182: port fix: devel/monotone
Lapo Luchini
lapo at lapo.it
Sun Jun 1 08:40:03 UTC 2008
>Number: 124182
>Category: ports
>Synopsis: port fix: devel/monotone
>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: Sun Jun 01 08:40:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Lapo Luchini
>Release: FreeBSD 6.3-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD motoko.lapo.it 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #8: Thu Dec 13 09:33:49 CET 2007 root at motoko.lapo.it:/usr/obj/usr/src/sys/MOTOKO amd64
>Description:
As reported by itetcu at FreeBSD.org, monotone port wrongly installed some
docs even when not told to.
I also went ahead and not installed INFOs if no man pages are wanted
(is that right? I didn't see any info-specific NO-flag).
>How-To-Repeat:
Install with NOPORTDOCS defined.
>Fix:
diff -ruN monotone.orig/Makefile monotone/Makefile
--- monotone.orig/Makefile 2008-04-16 13:21:00.000000000 +0200
+++ monotone/Makefile 2008-06-01 10:30:45.033235495 +0200
@@ -30,8 +30,12 @@
PLIST_FILES= bin/mtn share/zsh/site-functions/_mtn \
"@unexec [ -f %D/bin/zsh ] || rmdir %D/share/zsh/site-functions 2>/dev/null || true" \
"@dirrmtry share/zsh"
+.if !defined(NO_INSTALL_MANPAGES)
INFO= monotone
-PORTDOCS= NEWS UPGRADE monotone.html
+.endif
+.if !defined(NOPORTDOCS)
+PORTDOCS= NEWS UPGRADE monotone.html texinfo.css
+.endif
.include <bsd.port.pre.mk>
@@ -55,6 +59,12 @@
post-extract:
@${RM} -f ${WRKSRC}/monotone.info*
+post-patch:
+ ${REINPLACE_CMD} -e '/^install-data-am:/s/ install-htmlDATA//' ${WRKSRC}/Makefile.in
+.if defined(NO_INSTALL_MANPAGES)
+ ${REINPLACE_CMD} -e '/^install-data-am:/s/ install-info-am//' ${WRKSRC}/Makefile.in
+.endif
+
post-install:
${MKDIR} ${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/contrib/monotone.zsh_completion ${PREFIX}/share/zsh/site-functions/_mtn
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list