Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151533522
D11114.id29381.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D11114.id29381.diff
View Options
Index: Mk/Uses/ghostscript.mk
===================================================================
--- Mk/Uses/ghostscript.mk
+++ Mk/Uses/ghostscript.mk
@@ -4,7 +4,7 @@
#
# Feature: ghostscript
# Usage: USES=ghostscript or USES=ghostscript:args
-# Valid ARGS: <version>, build, run, x11
+# Valid ARGS: <version>, build, run, test, x11
#
# version The chooseable versions are 7, 8, 9 and agpl. If no version is
# specified version agpl is selected.
@@ -18,9 +18,11 @@
# it as BUILD_DEPENDS.
# run Indicates that Ghostscript is needed at run time and adds
# it as RUN_DEPENDS.
+# test Indicates that Ghostscript is needed at test time and adds
+# it as TEST_DEPENDS.
#
-# If build and run are omitted, Ghostscript will be added as BUILD_DEPENDS and
-# RUN_DEPENDS.
+# If build, run, and test are omitted, Ghostscript will be added as BUILD_DEPENDS,
+# RUN_DEPENDS, and TEST_DEPENDS.
#
# MAINTAINER: ports@FreeBSD.org
@@ -34,7 +36,7 @@
_GS_ARGS= ${ghostscript_ARGS}
-.if ${_GS_ARGS:N[789]:Nagpl:Nx11:Nbuild:Nrun}
+.if ${_GS_ARGS:N[789]:Nagpl:Nx11:Nbuild:Nrun:Ntest}
IGNORE?= Unknown ghostscript argument ${_GS_ARGS}
.endif
@@ -46,18 +48,23 @@
# pollutes the build/run dependency detection
.undef _GS_BUILD_DEP
.undef _GS_RUN_DEP
+.undef _GS_TEST_DEP
.if ${_GS_ARGS:Mbuild}
_GS_BUILD_DEP= yes
.endif
.if ${_GS_ARGS:Mrun}
_GS_RUN_DEP= yes
.endif
+.if ${_GS_ARGS:Mtest}
+_GS_TEST_DEP= yes
+.endif
-# The port does not specify a build or run dependency, assume both are
-# required.
-.if !defined(_GS_BUILD_DEP) && !defined(_GS_RUN_DEP)
+# The port does not specify a build, run, or test dependency, assume they
+# are all required.
+.if !defined(_GS_BUILD_DEP) && !defined(_GS_RUN_DEP) && !defined(_GS_TEST_DEP)
_GS_BUILD_DEP= yes
_GS_RUN_DEP= yes
+_GS_TEST_DEP= yes
.endif
.undef _GS_SELECTED
@@ -89,7 +96,7 @@
_GS_PORT= ghostscript${_GS_SELECTED}-base
_GS_X11_PORT= ghostscript${_GS_SELECTED}-x11
-.for type in BUILD RUN
+.for type in BUILD RUN TEST
.if defined(_GS_${type}_DEP)
${type}_DEPENDS+= ${_GS_PORT}>=${_GS_VERSION_MINOR}:print/${_GS_PORT}
.if ${_GS_ARGS:Mx11}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 1:44 AM (9 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31187266
Default Alt Text
D11114.id29381.diff (2 KB)
Attached To
Mode
D11114: Mk/Uses/ghostscript.mk: Enable depending on Ghostscript in the test phase
Attached
Detach File
Event Timeline
Log In to Comment