aboutsummaryrefslogtreecommitdiffstats
path: root/devel/naturaldocs/Makefile
diff options
context:
space:
mode:
authorlaszlof <laszlof@FreeBSD.org>2007-07-11 02:00:56 +0800
committerlaszlof <laszlof@FreeBSD.org>2007-07-11 02:00:56 +0800
commit417ef3b329f30193e92e49acaa40ac407c292a27 (patch)
treefe63f60804bf058b191782311324335b14ebd050 /devel/naturaldocs/Makefile
parentd88cbb79bdbb89b301a0dacad7937e227b562e24 (diff)
downloadfreebsd-ports-gnome-417ef3b329f30193e92e49acaa40ac407c292a27.tar.gz
freebsd-ports-gnome-417ef3b329f30193e92e49acaa40ac407c292a27.tar.zst
freebsd-ports-gnome-417ef3b329f30193e92e49acaa40ac407c292a27.zip
- Move all files into DATADIR
- Create script in PREFIX/bin as workaround for bug. PR: ports/110990 Submitted by: Carlos Rocha <carlos.rocha@gmail.com>
Diffstat (limited to 'devel/naturaldocs/Makefile')
-rw-r--r--devel/naturaldocs/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/naturaldocs/Makefile b/devel/naturaldocs/Makefile
index 5320316c50db..8a0508c4789a 100644
--- a/devel/naturaldocs/Makefile
+++ b/devel/naturaldocs/Makefile
@@ -8,6 +8,7 @@
PORTNAME= naturaldocs
PORTVERSION= 1.35
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -22,10 +23,13 @@ NO_WRKSUBDIR= yes
NO_BUILD= yes
DOCSDIR= ${PREFIX}/share/doc/NaturalDocs
-PLIST_FILES= bin/NaturalDocs
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/NaturalDocs ${PREFIX}/bin
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/NaturalDocs ${DATADIR}/NaturalDocs
+ @cd ${WRKSRC} && \
+ ${FIND} * -type d ! -name Help -exec ${MKDIR} ${DATADIR}/{} \; && \
+ ${FIND} * -type f ! -name Help ! -name NaturalDocs -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
@${MKDIR} ${SITE_PERL}/NaturalDocs
@cd ${WRKSRC}/Modules/NaturalDocs && \
${FIND} * -type d -exec ${MKDIR} ${SITE_PERL}/NaturalDocs/{} \; && \
@@ -34,6 +38,8 @@ do-install:
${SED} -e "s,^${PREFIX}/,," >> ${TMPPLIST}
@${FIND} ${SITE_PERL}/NaturalDocs -type d | ${SORT} -r | \
${SED} -e "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
+ @${INSTALL_SCRIPT} ${FILESDIR}/NaturalDocs ${PREFIX}/bin && \
+ ${SED} -i '' -e "s,%%DATADIR%%,${DATADIR}," ${PREFIX}/bin/NaturalDocs
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/Help && \