diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-06-26 22:32:50 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-06-26 22:32:50 +0000 |
commit | 8f4855310e2b871146c9f3e87e77283668e01922 (patch) | |
tree | 84d0bf40390f015ba7fc132a5c80abbeeb575e1f /devel/cvsbook/Makefile | |
parent | 8f4a956a74bea4e06dd0b1412c61eaf728369377 (diff) |
- Unbreak split html version
- Fix OPTIONS treatment to get useful package (before it was just empty)
PR: ports/68306
Submitted by: vassily ragosin <vr@vrgraphics.ru>
Notes
Notes:
svn path=/head/; revision=112342
Diffstat (limited to 'devel/cvsbook/Makefile')
-rw-r--r-- | devel/cvsbook/Makefile | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/devel/cvsbook/Makefile b/devel/cvsbook/Makefile index f340a6431dca..f65e165b5c43 100644 --- a/devel/cvsbook/Makefile +++ b/devel/cvsbook/Makefile @@ -32,25 +32,25 @@ ALL_TARGET= html-distributed NO_BUILD= yes .endif -.if defined(WITH_CVSBOOK_INFO) +.if !defined(WITHOUT_CVSBOOK_INFO) INFO= cvsbook INFODIR= ${PREFIX}/${INFO_PATH} INSTALL_INFO?= install-info .endif -.if defined(WITH_CVSBOOK_SINGLE_HTML) +.if !defined(WITHOUT_CVSBOOK_SINGLE_HTML) PLIST_FILES+= %%DOCSDIR%%/cvsbook.html WANT_DOCSDIR= yes .endif -.if defined(WITH_CVSBOOK_POSTSCRIPT) +.if !defined(WITHOUT_CVSBOOK_POSTSCRIPT) PLIST_FILES+= %%DOCSDIR%%/cvsbook.ps WANT_DOCSDIR= yes .endif -.if defined(WITH_CVSBOOK_PDF) +.if !defined(WITHOUT_CVSBOOK_PDF) PLIST_FILES+= %%DOCSDIR%%/cvsbook.pdf WANT_DOCSDIR= yes .endif .if defined(WITH_CVSBOOK_SPLIT_HTML) -PLIST_DIRS+= %%DOCSDIR%%/cvsbook +PLIST_DIRS+= %%DOCSDIR%%/cvsbook-shtml WANT_DOCSDIR= yes .endif .if defined(WANT_DOCSDIR) @@ -59,32 +59,36 @@ PLIST_DIRS+= %%DOCSDIR%% .if defined(WITH_CVSBOOK_SPLIT_HTML) post-patch: - ${REINPLACE} -e \ + ${REINPLACE_CMD} -e \ '/Non-monolithic HTML not supported/s|@.*|makeinfo --html main.texi|' \ ${WRKSRC}/Makefile .endif +.if defined(WITH_CVSBOOK_SPLIT_HTML) +pre-install: +PLIST_FILES+= `cd ${WRKSRC}/cvsbook && ${FIND} . -type f| ${CUT} -c2- \ + | ${SED} 's|^|${DOCSDIR:S,${PREFIX}/,,}/cvsbook-shtml|' \ + | ${SORT}` +.endif + do-install: .if defined(WANT_DOCSDIR) @${MKDIR} ${DOCSDIR} .endif .if defined(WITH_CVSBOOK_SPLIT_HTML) - @${MKDIR} ${DOCSDIR}/cvsbook - @cd ${WRKSRC}/cvsbook && ${FIND} . -type f| ${CUT} -c2- \ - | ${SED} 's|^|${DOCSDIR:S,${PREFIX}/,,}/cvsbook-shtml/|' \ - | ${SORT} >> ${TMPPLIST} - @cd ${WRKSRC}/cvsbook && ${INSTALL_DATA} *.html ${DOCSDIR}/cvsbook + @${MKDIR} ${DOCSDIR}/cvsbook-shtml + @cd ${WRKSRC}/cvsbook && ${INSTALL_DATA} -- *.html ${DOCSDIR}/cvsbook-shtml .endif -.if defined(WITH_CVSBOOK_SINGLE_HTML) +.if !defined(WITHOUT_CVSBOOK_SINGLE_HTML) @${INSTALL_DATA} ${WRKSRC}/cvsbook.html ${DOCSDIR} .endif -.if defined(WITH_CVSBOOK_PDF) +.if !defined(WITHOUT_CVSBOOK_PDF) @${INSTALL_DATA} ${WRKSRC}/cvsbook.pdf ${DOCSDIR} .endif -.if defined(WITH_CVSBOOK_POSTSCRIPT) +.if !defined(WITHOUT_CVSBOOK_POSTSCRIPT) @${INSTALL_DATA} ${WRKSRC}/cvsbook.ps ${DOCSDIR} .endif -.if defined(WITH_CVSBOOK_INFO) +.if !defined(WITHOUT_CVSBOOK_INFO) @${INSTALL_DATA} ${WRKSRC}/cvsbook.info* ${INFODIR} @${INSTALL_INFO} ${INFODIR}/cvsbook.info ${INFODIR}/dir .endif |