freebsd-ports/devel/newtonsoft-json/Makefile
David Naylor 1da3310ac1 lang/mono: update to version 5.2.0.215 (and enhance USES=mono)
Highlights:
 - New Roslyn compiler for C# available
 - Improved support for nuget packages in USES=mono

General:
 - fix pkg-plist: mono now produces '.pdb' debug files instead of '.mdb'
 - bump all dependant ports

USES=mono:
 - properly handle caching of nuget packages
 - add support for multiple feeds for nuget packages
 - add support for nuget dependencies in a separate file
 - add support for paket packages

lang/mono:
 - update to version 5.2.0.215
 - automate certificate initialisation [2]
 - increase test coverage
 - mark as conflicting with net/czmq (conflicting on makecert) [1]
 - patch mono to use $PREFIX/share/mono instead of /usr/share/.mono

devel/google-gdata:
 - use nunit.framework nuget package as the Mono shipped version is no longer suppport.
 - switch to using csc(1) for compiling (mcs(1) is depreciated).
 - use delayed signing (and then sign with sn(1)) as csc(1) does not support signing.
 - fix reference to system assemblies (the '.dll' suffix is required).
 - fix reference to HttpUtility: csc(1) is more strict about scoping

devel/monodevelop:
 - reroll distinfo (no changes to content)

lang/fsharp:
 - reroll distinfo (no changes to content)

security/gnome-keyring-sharp:
 - delay sign (then sign with sn(1)) as csc(1) does not support direct signing.

PR:	223188 [1]
PR:	209670 [2]
Differential Revision:	https://reviews.freebsd.org/D13752
2018-01-30 19:00:27 +00:00

44 lines
1.2 KiB
Makefile

# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
# $FreeBSD$
PORTNAME= newtonsoft-json
PORTVERSION= 9.0.1
PORTREVISION= 2
CATEGORIES= devel
MAINTAINER= bofh@FreeBSD.org
COMMENT= Popular high-performance JSON framework for .NET
LICENSE= MIT
USES= mono
USE_GITHUB= yes
GH_ACCOUNT= JamesNK
GH_PROJECT= Newtonsoft.Json
SUB_FILES= Newtonsoft.Json.pc
NO_ARCH= yes
PLIST_FILES= lib/mono/Newtonsoft.Json/Newtonsoft.Json.dll \
lib/mono/gac/Newtonsoft.Json/7.0.0.0__b9a188c8922137c6/Newtonsoft.Json.dll \
lib/mono/gac/Newtonsoft.Json/7.0.0.0__b9a188c8922137c6/Newtonsoft.Json.pdb \
libdata/pkgconfig/Newtonsoft.Json.pc
do-build:
(cd ${WRKSRC}/Src/Newtonsoft.Json && ${SETENV} ${MAKE_ENV} xbuild Newtonsoft.Json.csproj \
/property:SignAssembly=true \
/property:AssemblyOriginatorKeyFile=Dynamic.snk \
/property:Configuration=Release \
/property:DefineConstants='SIGNED NET45 TRACE')
do-install:
(cd ${WRKSRC}/Src/Newtonsoft.Json/bin/Release/Net45 && \
${SETENV} MONO_SHARED_DIR=${WRKDIR} ${LOCALBASE}/bin/gacutil \
/root ${STAGEDIR}${PREFIX}/lib/ \
/package Newtonsoft.Json /i Newtonsoft.Json.dll)
(cd ${WRKDIR} && ${INSTALL_DATA} Newtonsoft.Json.pc \
${STAGEDIR}${PREFIX}/libdata/pkgconfig)
.include <bsd.port.mk>