- Switch to new test framework
- Switch to options helpers - Fix build for WITHOUT=MANPAGES case Approved by: portmgr blanket
This commit is contained in:
parent
a9c0d2f56d
commit
1db6d403ce
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=470689
1 changed files with 9 additions and 20 deletions
|
@ -26,34 +26,23 @@ USES= cmake python:2.7 tar:bzip2
|
|||
USE_LDCONFIG= yes
|
||||
|
||||
ALL_TARGET= all
|
||||
TEST_TARGET= test
|
||||
|
||||
OPTIONS_DEFINE= DOCS MANPAGES
|
||||
OPTIONS_DEFAULT= MANPAGES
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
MANPAGES_PLIST_FILES= man/man1/shiboken.1.gz
|
||||
MANPAGES_CMAKE_OFF= -DNO_INSTALL_MANPAGES:BOOL="ON"
|
||||
|
||||
.if ${PORT_OPTIONS:MMANPAGES}
|
||||
PLIST_FILES+= man/man1/shiboken.1.gz
|
||||
.else
|
||||
CMAKE_ARGS= -DNO_INSTALL_MANPAGES:BOOL="ON"
|
||||
.endif
|
||||
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
|
||||
DOCS_ALL_TARGET= doc
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
BUILD_DEPENDS+= sphinx-build:textproc/py-sphinx
|
||||
ALL_TARGET+= doc
|
||||
post-install:
|
||||
if [ -d ${WRKSRC}/doc/html ]; then \
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR} && \
|
||||
cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}; \
|
||||
fi
|
||||
.endif
|
||||
post-install-DOCS-on:
|
||||
cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
post-patch:
|
||||
@cd ${WRKSRC}/generator && \
|
||||
${MV} ${PORTNAME} ${PORTNAME}.dir
|
||||
|
||||
regression-test: build
|
||||
@${ECHO_MSG} "===> Running shiboken regression tests"
|
||||
@cd ${WRKSRC} && ${MAKE} test
|
||||
${MV} ${PORTNAME} ${PORTNAME}.dir
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue