ports/173046: [PATCH] graphics/zathura: install manpages correctly

poyopoyo at puripuri.plala.or.jp poyopoyo at puripuri.plala.or.jp
Thu Oct 25 02:30:01 UTC 2012


>Number:         173046
>Category:       ports
>Synopsis:       graphics/zathura: install manpages correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 25 02:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     SATO Kuro
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
personal
>Environment:
>Description:
	zathura-0.2.1 port fails to rebuild vendor-supplied empty manpages
	and installs them.

>How-To-Repeat:

/usr/ports/graphics/zathura# make install
/usr/ports/graphics/zathura# MANPAGES=$(make -V MAN1 -V MAN5)
/usr/ports/graphics/zathura# (cd $(make -V WRKSRC); ls -l ${MANPAGES})
-rw-r--r--  1 root  wheel  0 Aug 31 03:15 zathura.1
-rw-r--r--  1 root  wheel  0 Aug 31 03:15 zathurarc.5
/usr/ports/graphics/zathura# pkg_info -L zathura-0.2.1|grep man|xargs ls -l
-rw-r--r--  1 root  wheel  20 Oct 25 11:16 /usr/local/man/man1/zathura.1.gz
-rw-r--r--  1 root  wheel  20 Oct 25 11:16 /usr/local/man/man5/zathurarc.5.gz
/usr/ports/graphics/zathura# man zathura|wc -c
       0
/usr/ports/graphics/zathura# man zathurarc|wc -c
       0

>Fix:
	- remove empty vendor-supplied manpages to ensure rebuilding.
	- tell gmake where our rst2man being placed via MAKE_ENV.

Index: Makefile
===================================================================
--- Makefile	(revision 306365)
+++ Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	zathura
 PORTVERSION=	0.2.1
+PORTREVISION=	1
 CATEGORIES=	graphics print
 MASTER_SITES=	http://pwmt.org/projects/zathura/download/
 
@@ -32,6 +33,7 @@
 BUILD_DEPENDS+=	rst2html:${PORTSDIR}/textproc/py-docutils
 MAN1+=		zathura.1
 MAN5+=		zathurarc.5
+MAKE_ENV+=	RSTTOMAN=${LOCALBASE}/bin/rst2man
 .endif
 
 .if !defined(WITHOUT_NLS)
@@ -65,6 +67,7 @@
 	${REINPLACE_CMD} -e 's|/etc|${PREFIX}&|g' \
 		${WRKSRC}/config.h \
 		${WRKSRC}/zathurarc.5.rst
+	(cd ${WRKSRC}; ${RM} -f ${MAN1} ${MAN5})
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list