aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2014-06-30 23:08:56 +0800
committeraraujo <araujo@FreeBSD.org>2014-06-30 23:08:56 +0800
commit3dedccce988a7baae890c9a2c801421c35ac6db6 (patch)
tree5c9f5b881208289e5d0b55acbdb2974e27654213 /sysutils
parente870242bd748aea0545c64e8b47204a2e11aa2a7 (diff)
downloadfreebsd-ports-gnome-3dedccce988a7baae890c9a2c801421c35ac6db6.tar.gz
freebsd-ports-gnome-3dedccce988a7baae890c9a2c801421c35ac6db6.tar.zst
freebsd-ports-gnome-3dedccce988a7baae890c9a2c801421c35ac6db6.zip
- Drop NOPORTDOCS.
- Use @sample macro. Reported by: wg@
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/py-stdiff/Makefile9
-rw-r--r--sysutils/py-stdiff/pkg-plist4
2 files changed, 3 insertions, 10 deletions
diff --git a/sysutils/py-stdiff/Makefile b/sysutils/py-stdiff/Makefile
index d772d6188ac8..b50924fb473d 100644
--- a/sysutils/py-stdiff/Makefile
+++ b/sysutils/py-stdiff/Makefile
@@ -11,18 +11,13 @@ COMMENT= Spot The Difference is a file integrity checker.
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
PORTDOCS= *
-.endif
post-install:
-.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
$(INSTALL_MAN) ${WRKSRC}/INSTALL.txt ${STAGEDIR}/${DOCSDIR}/
$(INSTALL_MAN) ${WRKSRC}/LICENSE.txt ${STAGEDIR}/${DOCSDIR}/
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}/)
-.endif
- @if [ ! -f ${PREFIX}/etc/stdiff.conf ]; then \
- ${CP} -p ${STAGEDIR}${PREFIX}/etc/stdiff.conf.sample \
- ${PREFIX}/etc/stdiff.conf; fi
.include <bsd.port.mk>
diff --git a/sysutils/py-stdiff/pkg-plist b/sysutils/py-stdiff/pkg-plist
index 88eac3bdd465..553353d47a59 100644
--- a/sysutils/py-stdiff/pkg-plist
+++ b/sysutils/py-stdiff/pkg-plist
@@ -1,5 +1,6 @@
bin/stdiff.py
bin/stdiff_install_db.py
+@sample etc/stdiff.conf.sample
%%PYTHON_SITELIBDIR%%/spot/Parser.py
%%PYTHON_SITELIBDIR%%/spot/Parser.pyc
%%PYTHON_SITELIBDIR%%/spot/Parser.pyo
@@ -28,6 +29,3 @@ bin/stdiff_install_db.py
%%PYTHON_SITELIBDIR%%/spot/spot_sqlite.pyc
%%PYTHON_SITELIBDIR%%/spot/spot_sqlite.pyo
@dirrm %%PYTHON_SITELIBDIR%%/spot
-@unexec if cmp -s %D/etc/stdiff.conf.sample %D/etc/stdiff.conf; then rm -f %D/etc/stdiff.conf ; fi
-etc/stdiff.conf.sample
-@exec if [ ! -f %D/etc/stdiff.conf ]; then cp -p %D/%F %B/stdiff.conf; fi