Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2014 23:10:29 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r370259 - in head/devel: . newtonsoft-json newtonsoft-json/files
Message-ID:  <201410062310.s96NATar071435@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Mon Oct  6 23:10:28 2014
New Revision: 370259
URL: https://svnweb.freebsd.org/changeset/ports/370259
QAT: https://qat.redports.org/buildarchive/r370259/

Log:
  Add new port devel/newtonsoft-json
  
  PR:		194147
  Submitted by:	Muhammad Rahman
  
  Popular high-performance JSON framework for .NET
  * Flexible JSON serializer for converting between .NET objects and JSON
  * LINQ to JSON for manually reading and writing JSON
  * High performance, faster than .NET's built-in JSON serializers
  * Write indented, easy to read JSON
  * Convert JSON to and from XML
  * Supports .NET 2, .NET 3.5, .NET 4, .NET 4.5, Silverlight, Windows Phone and
    Windows 8 Store
  
  The JSON serializer in Json.NET is a good choice when the JSON you are reading
  or writing maps closely to a .NET class.

Added:
  head/devel/newtonsoft-json/
  head/devel/newtonsoft-json/Makefile   (contents, props changed)
  head/devel/newtonsoft-json/distinfo   (contents, props changed)
  head/devel/newtonsoft-json/files/
  head/devel/newtonsoft-json/files/Newtonsoft.Json.pc.in   (contents, props changed)
  head/devel/newtonsoft-json/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Oct  6 23:09:26 2014	(r370258)
+++ head/devel/Makefile	Mon Oct  6 23:10:28 2014	(r370259)
@@ -1316,6 +1316,7 @@
     SUBDIR += netscape-java40
     SUBDIR += newfile
     SUBDIR += newt
+    SUBDIR += newtonsoft-json
     SUBDIR += nglogc
     SUBDIR += nini
     SUBDIR += ninja

Added: head/devel/newtonsoft-json/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/newtonsoft-json/Makefile	Mon Oct  6 23:10:28 2014	(r370259)
@@ -0,0 +1,46 @@
+# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	newtonsoft-json
+PORTVERSION=	6.0.5
+CATEGORIES=	devel
+
+MAINTAINER=	5u623l20@gmail.com
+COMMENT=	Popular high-performance JSON framework for .NET
+
+LICENSE=	MIT
+
+USES=		mono
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	JamesNK
+GH_PROJECT=	Newtonsoft.Json
+GH_COMMIT=	d463fce
+
+SUB_FILES=	Newtonsoft.Json.pc
+
+PLIST_FILES=	lib/mono/Newtonsoft.Json/Newtonsoft.Json.dll \
+		lib/mono/gac/Newtonsoft.Json/6.0.0.0__b9a188c8922137c6/Newtonsoft.Json.dll \
+		lib/mono/gac/Newtonsoft.Json/6.0.0.0__b9a188c8922137c6/Newtonsoft.Json.dll.mdb \
+		libdata/pkgconfig/Newtonsoft.Json.pc
+
+do-build:
+	(cd ${WRKSRC}/Src/Newtonsoft.Json && xbuild Newtonsoft.Json.csproj \
+		/property:SignAssembly=true \
+		/property:AssemblyOriginatorKeyFile=Dynamic.snk \
+		/property:Configuration=Release \
+		/property:DefineConstants='SIGNED NET45 TRACE')
+	(cd ${WRKSRC}/Src/Newtonsoft.Json/bin/Release/Net45 && \
+		monodis Newtonsoft.Json.dll --output=Newtonsoft.Json.il)
+	(cd ${WRKSRC}/Src/Newtonsoft.Json/bin/Release/Net45 && \
+		ilasm /dll /key:../../../Dynamic.snk Newtonsoft.Json.il)
+
+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>

Added: head/devel/newtonsoft-json/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/newtonsoft-json/distinfo	Mon Oct  6 23:10:28 2014	(r370259)
@@ -0,0 +1,2 @@
+SHA256 (newtonsoft-json-6.0.5.tar.gz) = a6efc6dc79f661d163b8d96cc6e4e0f762000d834a54c653907f755e564a1cde
+SIZE (newtonsoft-json-6.0.5.tar.gz) = 2178378

Added: head/devel/newtonsoft-json/files/Newtonsoft.Json.pc.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/newtonsoft-json/files/Newtonsoft.Json.pc.in	Mon Oct  6 23:10:28 2014	(r370259)
@@ -0,0 +1,8 @@
+prefix=%%LOCALBASE%%
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+
+Name: Newtonsoft JSON
+Description: Popular high-performance JSON framework for .NET.
+Version: 6.0.5
+Libs: -r:${libdir}/mono/newtonsoft.json/Newtonsoft.Json.dll

Added: head/devel/newtonsoft-json/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/newtonsoft-json/pkg-descr	Mon Oct  6 23:10:28 2014	(r370259)
@@ -0,0 +1,13 @@
+Popular high-performance JSON framework for .NET
+* Flexible JSON serializer for converting between .NET objects and JSON
+* LINQ to JSON for manually reading and writing JSON
+* High performance, faster than .NET's built-in JSON serializers
+* Write indented, easy to read JSON
+* Convert JSON to and from XML
+* Supports .NET 2, .NET 3.5, .NET 4, .NET 4.5, Silverlight, Windows Phone and
+  Windows 8 Store
+
+The JSON serializer in Json.NET is a good choice when the JSON you are reading
+or writing maps closely to a .NET class.
+
+WWW: http://james.newtonking.com/json



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410062310.s96NATar071435>