summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-05-27 11:33:08 +0000
committerbsam <bsam@FreeBSD.org>2013-05-27 11:33:08 +0000
commit85851943e19aad51591c44c5f795e9ad66a56ba0 (patch)
tree453306e84f07d66e1eff935dfc11467c2f675b0a
parent0e1af3be3c64d03842f9f2a11d961a9a8eafdb1f (diff)
downloadFreeBSD-ports-85851943e19aad51591c44c5f795e9ad66a56ba0.zip
FreeBSD-ports-85851943e19aad51591c44c5f795e9ad66a56ba0.tar.gz
. define PORTDOCS at Makefile;
. remove double install of port docs; . remove .for loop, use plain install; . remove PORTDOCS lines from pkg-plist.
-rw-r--r--sysutils/lfm/Makefile6
-rw-r--r--sysutils/lfm/pkg-plist6
2 files changed, 2 insertions, 10 deletions
diff --git a/sysutils/lfm/Makefile b/sysutils/lfm/Makefile
index d558a10..85b0077 100644
--- a/sysutils/lfm/Makefile
+++ b/sysutils/lfm/Makefile
@@ -19,6 +19,7 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
MAN1= lfm.1 pyview.1
+PORTDOCS= ChangeLog NEWS README README.pyview TODO
post-patch:
@${REINPLACE_CMD} -e \
@@ -33,10 +34,7 @@ post-install:
.endfor
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for f in ChangeLog NEWS README README.pyview TODO
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
- (cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${DOCSDIR})
-.endfor
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/sysutils/lfm/pkg-plist b/sysutils/lfm/pkg-plist
index 1209be9..6b9617b 100644
--- a/sysutils/lfm/pkg-plist
+++ b/sysutils/lfm/pkg-plist
@@ -30,10 +30,4 @@ bin/pyview
%%PYTHON_SITELIBDIR%%/lfm/vfs.py
%%PYTHON_SITELIBDIR%%/lfm/vfs.pyc
%%PYTHON_SITELIBDIR%%/lfm/vfs.pyo
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/README.pyview
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/lfm
OpenPOWER on IntegriCloud