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 @@ -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