mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Add knob to install split-html format of cvsbook
- Remove pkg-plist PR: ports/67000 Submitted by: michael johnson <ahze at ahze dot net>
This commit is contained in:
parent
da61f6c13d
commit
e0a88e98c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109654
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= cvsbook
|
||||
PORTVERSION= 1.21
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://cvsbook.red-bean.com/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-all
|
||||
@ -14,16 +15,37 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-all
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A tutorial and reference for CVS
|
||||
|
||||
NO_BUILD= yes
|
||||
ALL_TARGET= version
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
PLIST_SUB+= DOCSDIR=${DOCSDIR:S,${PREFIX}/,,}
|
||||
INFO= cvsbook
|
||||
PLIST_FILES+= %%DOCSDIR%%/cvsbook.html \
|
||||
%%DOCSDIR%%/cvsbook.pdf \
|
||||
%%DOCSDIR%%/cvsbook.ps
|
||||
|
||||
.if defined(WITH_SPLIT_HTML)
|
||||
ALL_TARGET+= html-monolithic
|
||||
.endif
|
||||
|
||||
.if !defined(WITH_SPLIT_HTML)
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "You can install SPLIT-HTML format of cvsbook"
|
||||
@${ECHO_MSG} "by defining WITH_SPLIT_HTML"
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${MKDIR} ${DOCSDIR}/cvsbook-shtml
|
||||
.if defined(WITH_SPLIT_HTML)
|
||||
@cd ${WRKSRC}/cvsbook && ${FIND} . -type f| ${CUT} -c2- \
|
||||
| ${SED} 's|^|${DOCSDIR:S,${PREFIX}/,,}/cvsbook-shtml/|' \
|
||||
| ${SORT} >> ${TMPPLIST}
|
||||
@${INSTALL_DATA} ${WRKSRC}/cvsbook/* ${DOCSDIR}/cvsbook-shtml/
|
||||
.endif
|
||||
@${INSTALL_DATA} ${WRKSRC}/cvsbook.html ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/cvsbook.pdf ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/cvsbook.ps ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/cvsbook.info* ${PREFIX}/info
|
||||
@install-info ${PREFIX}/info/cvsbook.info ${PREFIX}/info/dir
|
||||
@${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}/cvsbook-shtml" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (cvsbook-1.21-all.tar.gz) = 409b1ce76dbd152e766e1dfdcb121cdc
|
||||
SIZE (cvsbook-1.21-all.tar.gz) = 1735577
|
||||
MD5 (cvsbook-1.21-all.tar.gz) = 8ee9176be735189cd0f88919e482fffb
|
||||
SIZE (cvsbook-1.21-all.tar.gz) = 2026612
|
||||
|
@ -1,20 +0,0 @@
|
||||
%%DOCSDIR%%/cvsbook.html
|
||||
%%DOCSDIR%%/cvsbook.pdf
|
||||
%%DOCSDIR%%/cvsbook.ps
|
||||
@unexec install-info --delete %D/info/cvsbook.info %D/info/dir
|
||||
info/cvsbook.info
|
||||
info/cvsbook.info-1
|
||||
info/cvsbook.info-10
|
||||
info/cvsbook.info-11
|
||||
info/cvsbook.info-12
|
||||
info/cvsbook.info-13
|
||||
info/cvsbook.info-2
|
||||
info/cvsbook.info-3
|
||||
info/cvsbook.info-4
|
||||
info/cvsbook.info-5
|
||||
info/cvsbook.info-6
|
||||
info/cvsbook.info-7
|
||||
info/cvsbook.info-8
|
||||
info/cvsbook.info-9
|
||||
@exec install-info %D/info/cvsbook.info %D/info/dir
|
||||
@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user