Page MenuHomeFreeBSD

D59989.id187763.diff
No OneTemporary

D59989.id187763.diff

diff --git a/x11/bosd/Makefile b/x11/bosd/Makefile
--- a/x11/bosd/Makefile
+++ b/x11/bosd/Makefile
@@ -1,5 +1,6 @@
PORTNAME= bosd
DISTVERSION= 10.4
+PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= dteske@FreeBSD.org
@@ -11,7 +12,7 @@
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libpng16.so:graphics/png
-USES= localbase:ldflags pkgconfig python:build,run shebangfix xorg
+USES= localbase:ldflags pkgconfig shebangfix xorg
USE_GITHUB= yes
GH_ACCOUNT= FrauBSD
USE_LDCONFIG= yes
@@ -25,10 +26,13 @@
PYTHON="${PYTHON_CMD}"
ALL_TARGET= all example
-OPTIONS_DEFINE= TESTS
+OPTIONS_DEFINE= EXAMPLES TESTS
OPTIONS_DEFAULT= TESTS
OPTIONS_SUB= yes
+TESTS_DESC= Install the test suite
+EXAMPLES_USES= python:build,run
+EXAMPLES_USES_OFF= python:build
TESTS_MAKE_ARGS= INSTALL_TESTS=yes
TESTS_MAKE_ARGS_OFF= INSTALL_TESTS=no
@@ -38,4 +42,8 @@
${INSTALL_DATA} ${WRKSRC}/CHANGELOG.md ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.png ${STAGEDIR}${DATADIR}
+# Upstream install always copies the example scripts.
+post-install-EXAMPLES-off:
+ ${RM} -r ${STAGEDIR}${EXAMPLESDIR}
+
.include <bsd.port.mk>
diff --git a/x11/bosd/pkg-plist b/x11/bosd/pkg-plist
--- a/x11/bosd/pkg-plist
+++ b/x11/bosd/pkg-plist
@@ -21,14 +21,14 @@
share/bosd/tile-on.png
share/doc/bosd/CHANGELOG.md
share/doc/bosd/README.md
-share/examples/bosd/airplane.py
-share/examples/bosd/audio.py
-share/examples/bosd/auto-rotate.py
-share/examples/bosd/bsd.py
-share/examples/bosd/glyph.py
-share/examples/bosd/lid.py
-share/examples/bosd/mirror.py
-share/examples/bosd/tile.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/airplane.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/audio.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/auto-rotate.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bsd.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/glyph.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lid.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mirror.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tile.py
share/man/man1/bosd.1.gz
share/man/man3/bosd.3.gz
%%TESTS%%share/bosd/tests/run

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 27, 10:24 PM (4 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39764923
Default Alt Text
D59989.id187763.diff (1 KB)

Event Timeline