From a3695adbacb05bb1d00c16743b15e7ca30baa711 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 3 Mar 2015 02:55:29 +0000 Subject: [PATCH] - Add LICENSE - Fix installation from non-root --- devel/ccdoc/Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/devel/ccdoc/Makefile b/devel/ccdoc/Makefile index 08dbbf47798f..8ed286ef7760 100644 --- a/devel/ccdoc/Makefile +++ b/devel/ccdoc/Makefile @@ -11,7 +11,7 @@ DIST_SUBDIR= ccdoc MAINTAINER= ports@FreeBSD.org COMMENT= Extracting comments from C++ source and generating HTML -OPTIONS_DEFINE= DOCS +LICENSE= MIT USES= perl5 @@ -22,6 +22,8 @@ PLIST_FILES= bin/ccdoc \ man/man1/ccdoc.1.gz PORTDOCS= * +OPTIONS_DEFINE= DOCS + do-configure: ${REINPLACE_CMD} -e "s:%%PERL%%:${PERL}:" \ -e "s:%%CXX%%:${CXX}:" \ @@ -33,12 +35,6 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/../bin_opt_gcc_/ccdoc.exe \ ${STAGEDIR}${PREFIX}/bin/ccdoc ${INSTALL_MAN} ${WRKSRC}/../doc/htdocs/ccdoc.man ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1 - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${FIND} ${WRKSRC}/../doc \( -name '*.html' -o \ - -name '*.htm' -o \ - -name '*.gif' -o \ - -name '*.txt' -o \ - -name '*.jpg' \) -print | \ - ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/ .include