summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-03-06 12:23:08 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2016-03-06 12:23:08 +0000
commitffa8c8cc4bf2fbb335b348d008aa245d6d052a69 (patch)
treea3865f056bb8546dd5682a59b1459f1a8cce9fe8
parent2b180b1604564edddc753e967458308796945e20 (diff)
downloadFreeBSD-ports-ffa8c8cc4bf2fbb335b348d008aa245d6d052a69.zip
FreeBSD-ports-ffa8c8cc4bf2fbb335b348d008aa245d6d052a69.tar.gz
- Clarify LICENSE
- Add LICENSE_FILE - Add NO_ARCH - Switch to options helpers
-rw-r--r--sysutils/lfm/Makefile18
-rw-r--r--sysutils/lfm/pkg-plist5
2 files changed, 10 insertions, 13 deletions
diff --git a/sysutils/lfm/Makefile b/sysutils/lfm/Makefile
index 22dc376..48f9785 100644
--- a/sysutils/lfm/Makefile
+++ b/sysutils/lfm/Makefile
@@ -11,27 +11,29 @@ MASTER_SITES= GOOGLE_CODE \
MAINTAINER= ports@FreeBSD.org
COMMENT= Last File Manager, a simple 'commander'-type file manager
-LICENSE= GPLv3
-
-OPTIONS_DEFINE= DOCS
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= python
USE_PYTHON= distutils
+NO_ARCH= yes
+
+PORTDOCS= ChangeLog NEWS README README.pyview TODO
-DOCS= ChangeLog NEWS README README.pyview TODO
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
'/DOC_FILES/d ; \
/MAN_FILES/d' ${WRKSRC}/setup.py
-.include <bsd.port.options.mk>
-
post-install:
.for f in lfm pyview
- (cd ${WRKSRC} && ${INSTALL_MAN} ${f}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1)
+ ${INSTALL_MAN} ${WRKSRC}/${f}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.endfor
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/sysutils/lfm/pkg-plist b/sysutils/lfm/pkg-plist
index 1074c84..e9cd54f 100644
--- a/sysutils/lfm/pkg-plist
+++ b/sysutils/lfm/pkg-plist
@@ -32,8 +32,3 @@ man/man1/pyview.1.gz
%%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
OpenPOWER on IntegriCloud