1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/devel/ace+tao-doc/Makefile
Adam Weinberger aeac01a4bb Convert some more USE_BZIP2 to USES=tar:bzip2
Approved by:	portmgr (not really, but touches unstaged ports)
2014-07-29 21:43:17 +00:00

55 lines
1.5 KiB
Makefile

# Created by: Sergey Matveychuk <sem@ciam.ru>
# $FreeBSD$
PORTNAME= ace+tao-doc
PORTVERSION= 5.5.0
CATEGORIES= devel
MASTER_SITES= ftp://download.dre.vanderbilt.edu/previous_versions/ \
http://download.dre.vanderbilt.edu/previous_versions/
DISTNAME= ACE-${PORTVERSION:C/\.0$//}-html
MAINTAINER= ports@FreeBSD.org
COMMENT= The ACE+TAO HTML documentation
USES= tar:bzip2
WRKSRC= ${WRKDIR}/html
NO_BUILD= yes
PLIST= ${WRKDIR}/pkg-plist
DIRLIST= ${WRKDIR}/dir-list
INSTALL_DIR= share/doc/${PORTNAME}
pre-install:
@${ECHO_MSG} "--> Generating a directories list"; \
cd ${WRKSRC}; \
${RM} -f ${PLIST}; ${ECHO_CMD} "@dirrm ${INSTALL_DIR}" > ${DIRLIST}; \
for d in `${FIND} . -type d`; do \
n=`${ECHO_CMD} $${d}|${SED} -e 's#^./##'`; \
if [ "$${n}" != "." ]; then \
${ECHO_CMD} "@dirrm ${INSTALL_DIR}/$$n" >> ${DIRLIST}; \
fi; \
done; \
${ECHO_MSG} "--> Generating a files list"; \
for f in `${FIND} -s . -type f`; do \
n=`${ECHO_CMD} $${f}|${SED} -e 's#^./##'`; \
${ECHO_CMD} ${INSTALL_DIR}/$${n} >> ${PLIST}; \
done; \
${SORT} -r ${DIRLIST} >> ${PLIST}
do-install:
@${ECHO_MSG} "--> Installing files:"; \
${MKDIR} ${STAGEDIR}${DOCSDIR}; cd ${WRKSRC}; \
for d in `${FIND} . -type d`; do \
n=`${ECHO_CMD} $${d}|${SED} -e 's#^./##'`; \
if [ "$${n}" != "." ]; then \
${MKDIR} ${STAGEDIR}${DOCSDIR}/$${n}; \
fi; \
done; \
for f in `${FIND} -s . -type f`; do \
n=`${ECHO_CMD} $${f}|${SED} -e 's#^./##'`; \
${ECHO_MSG} $${n}; \
${INSTALL_DATA} $${n} ${STAGEDIR}${DOCSDIR}/$${n}; \
done
.include <bsd.port.mk>