summaryrefslogtreecommitdiff
path: root/Mk/Uses/mono.mk
diff options
context:
space:
mode:
authorDavid Naylor <dbn@FreeBSD.org>2016-11-27 17:00:08 +0000
committerDavid Naylor <dbn@FreeBSD.org>2016-11-27 17:00:08 +0000
commit4a9609d5d36869f042a616c2306eede6976e9f19 (patch)
treed47ccdb7a554ac0b8b8399fa8a240b8f4abf36ad /Mk/Uses/mono.mk
parentlang/python33: Fix HTTP Header injection vulnerability (diff)
USES=mono: simplify EXTRACT_ONLY, fix nuget-extract [1]
- Instead of excluding the specific packages added to DISTFILES (but only for FreeBSD 9+), exclude all files with a '.nupkg' extension. - Move the nuget-extract command to be before post-extract, to allow the port's post-extract command to move packages around audio/libgpod-sharp: add port for mono bindings for libgpod - audio/libgpod: [2] - USE_GNOME: add missing dependency - Remove mono files from pkg-plist (now in audio/libgpod-sharp) - Allow relevant variables to be overridden - Fix MONO options - Patch source to allow building with modern mono - Avoid post-install target for slave ports. devel/monodevelop: update to 4.6.2.7 - Update nuget package Fantomas to 2.4.0 (latest at time of monodevelop's release). - Downgrade nuget package FSharp.Compiler.CodeDom (per paket's specification) - LICENSE: Add license of LGPL21 - LICENSE_FILE: Add license file from source - PORTSCOUT: Avoid checking alpha releases (aka x.y.0.z releases) games/openra: simplify post-extract [3] - USES=mono:nuget allow overridding of NUGET_PACKAGEDIR - Set NUGET_PACKAGEDIR to correct location, fix patching accordingly lang/fsharp: update to 4.6.2.7 ChangeLog: - Fix #639: Problems with F# scripts on Mono - Fix FSharp.Compiler.Tools targets for .NET Core usage - Fix FSharp.Compiler.Tools package dependencies lang/mono: update to 4.6.2.7 Mono 4.6.2 is the 1st service release to the 4.6 series. Changes: - LICENSE: Add license of MIT - LICENSE_FILE: Add license file from source - PORTSCOUT: Avoid checking alpha releases (aka x.y.0.z releases) Bug fixes: - #44708 - "TrustFailure (The authentication or decryption has failed.) ... Invalid certificate received from server." with "Error code: 0x5" or "Error code: 0xffffffff800b010f" when attempting to access HTTPS servers on ports other than 443 - #39832 - SIGSEGV when running roslyn multimedia/banshee: bump port revision. - Update missing port dependencies - Convert to use option helpers - OPTIONS: Add APPLEDEV (missing dependency added) - LICENSE: Add MIT license - LICENSE_FILE: Add license file from source - PORTSCOUT: Skip alpha release (2.9.1) x11-toolkits/gnome-sharp20: fix port dependencies - Add missing dependencies - Convert post-patch to shebangfix - LICENSE: add LGPL21 license - LICENSE_FILE: use license file from source - MKAE_JOBS_UNSAFE: remove, does appear to work x11-toolkits/gtk-sharp20: update to 2.12.42. PR: 214680 [2] PR: 214681 Suggested by: jbeich [1] Submitted by: jbeich [3] Approved by: avilla (maintainer; timeout) [2]
Notes
Notes: svn path=/head/; revision=427247
Diffstat (limited to 'Mk/Uses/mono.mk')
-rw-r--r--Mk/Uses/mono.mk15
1 files changed, 6 insertions, 9 deletions
diff --git a/Mk/Uses/mono.mk b/Mk/Uses/mono.mk
index 9d15cc3c0563..d8c335e3e4ea 100644
--- a/Mk/Uses/mono.mk
+++ b/Mk/Uses/mono.mk
@@ -16,6 +16,9 @@
# packages in the format:
# ${name}=${version}(:${PKGORIGIN})
#
+# EXTRACT_ONLY is conditionally overridden to exclude all
+# files with a '.nupkg' extension.
+#
# Targets:
#
# makenuget This target will output the NUGET_DEPENDS based on the
@@ -51,31 +54,25 @@ GACUTIL_INSTALL=${GACUTIL} /i
GACUTIL_INSTALL_PACKAGE=${GACUTIL} /i /package 1.0 /package 2.0
.if ${mono_ARGS:Mnuget}
-NUGET_PACKAGEDIR= ${WRKSRC}/packages
+NUGET_PACKAGEDIR?= ${WRKSRC}/packages
. for depend in ${NUGET_DEPENDS}
id= ${depend:C/=.*$//}
version= ${depend:C/^.*=//}
group= nuget_${id:S/.//g:S/-//g}
nupkg= ${id:tl}.${version}.nupkg
-NUPKG_${group}:= ${nupkg}
DISTFILES_${group}:= ${nupkg}:${group}
MASTER_SITES_${group}:= https://www.nuget.org/api/v2/package/${id}/${version}?dummy=/:${group}
NUGET_NUPKGS_${group}:= ${nupkg}:${depend}
-NUGET_DISTFILES+=${NUPKG_nuget_${depend:C/=.*$//:S/.//g:S/-//g}}
DISTFILES+= ${DISTFILES_nuget_${depend:C/=.*$//:S/.//g:S/-//g}}
MASTER_SITES+= ${MASTER_SITES_nuget_${depend:C/=.*$//:S/.//g:S/-//g}}
NUGET_NUPKGS+= ${NUGET_NUPKGS_nuget_${depend:C/=.*$//:S/.//g:S/-//g}}
. endfor
-# Prevent the nuget packages from being extracted (and poluting ${WRKDIR}, however
-# only bmake supports this.
-. if !defined(EXTRACT_ONLY) && defined(.PARSEDIR)
-EXTRACT_ONLY= ${_DISTFILES:[0]:C/${NUGET_DISTFILES}//g}
-. endif
+EXTRACT_ONLY?= ${_DISTFILES:N*.nupkg}
-_USES_extract+= 900:nuget-extract
+_USES_extract+= 600:nuget-extract
nuget-extract:
. for nupkg in ${NUGET_NUPKGS}
@${MKDIR} ${NUGET_PACKAGEDIR}/${nupkg:C/^.*://:S/=/./}