- fix plist when rst2man is in PATH
- respect PREFIX for system-wide config file PR: ports/160668 Submitted by: h h <aakuusta@gmail.com> Approved by: Quentin Stievenart <acieroid@awesom.eu> (maintainer)
This commit is contained in:
parent
5b1c1d3d9b
commit
d5047b721d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282872
1 changed files with 12 additions and 1 deletions
|
@ -26,8 +26,13 @@ PLIST_FILES= bin/zathura \
|
|||
share/applications/zathura.desktop
|
||||
PLIST_DIRSTRY= share/applications
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
BUILD_DEPENDS+= rst2html:${PORTSDIR}/textproc/py-docutils
|
||||
MAN5+= zathurarc.5
|
||||
.endif
|
||||
|
||||
post-patch: .SILENT
|
||||
${REINPLACE_CMD} -e 's|man1|man/man1|g' \
|
||||
${REINPLACE_CMD} -e 's|man[15]|man/&|g' \
|
||||
-e '/CC/s/$${SFLAGS}/${STRIP} /' \
|
||||
-e '/CFLAGS/!s/$${LDFLAGS}/$${CFLAGS} &/' \
|
||||
-e 's/{DFLAGS/{DEBUG_FLAGS/g' \
|
||||
|
@ -39,10 +44,16 @@ post-patch: .SILENT
|
|||
-e 's/cp[[:space:]]$$</cp $$>/' \
|
||||
-e 's/\(include\)[[:space:]]\(.*\)/.\1 "\2"/' \
|
||||
${WRKSRC}/Makefile
|
||||
.if defined(NOPORTDOCS)
|
||||
${REINPLACE_CMD} 's|which rst2man|${FALSE}|' ${WRKSRC}/Makefile
|
||||
.endif
|
||||
${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
|
||||
-e 's/-lpthread/${PTHREAD_LIBS}/' \
|
||||
-e 's/-lc//' \
|
||||
-e 's/$$(shell[[:space:]]\(.*\))/`\1`/' \
|
||||
${WRKSRC}/config.mk
|
||||
${REINPLACE_CMD} -e 's|/etc|${PREFIX}&|g' \
|
||||
${WRKSRC}/config.def.h \
|
||||
${WRKSRC}/zathurarc.5.rst
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue