Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162321072
D21246.id60725.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
696 B
Referenced Files
None
Subscribers
None
D21246.id60725.diff
View Options
Index: Mk/Uses/go.mk
===================================================================
--- Mk/Uses/go.mk
+++ Mk/Uses/go.mk
@@ -126,4 +126,17 @@
.endfor
.endif
+# Helper targets for port maintainers
+
+.if ${go_ARGS:Mmodules}
+_MODULES2TUPLE_CMD= modules2tuple
+gomod-vendor: patch
+ @if type ${_MODULES2TUPLE_CMD} > /dev/null 2>&1; then \
+ cd ${WRKSRC}; ${GO_CMD} mod vendor; \
+ [ -r vendor/modules.txt ] && ${_MODULES2TUPLE_CMD} vendor/modules.txt; \
+ else \
+ ${ECHO_MSG} "===> ${_MODULES2TUPLE_CMD} not found. Please install \"modules2tuple\" package or \"ports-mgmt/modules2tuple\" port."; \
+ fi
+.endif
+
.endif # defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GO_POST_MK)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 13, 1:03 AM (13 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35019173
Default Alt Text
D21246.id60725.diff (696 B)
Attached To
Mode
D21246: Mk/Uses/go.mk: Add gomod-vendor helper target
Attached
Detach File
Event Timeline
Log In to Comment