svn commit: r340636 - in head/devel: . jsoncpp jsoncpp/files
Danilo Egea Gondolfo
danilo at FreeBSD.org
Tue Jan 21 18:43:57 UTC 2014
Author: danilo
Date: Tue Jan 21 18:43:56 2014
New Revision: 340636
URL: http://svnweb.freebsd.org/changeset/ports/340636
QAT: https://qat.redports.org/buildarchive/r340636/
Log:
- Add new port devel/jsoncpp
jsoncpp is an implementation of a JSON reader and writer in C++.
PR: ports/185592
Submitted by: Johan Str?m <johan at stromnet.se>
Added:
head/devel/jsoncpp/
head/devel/jsoncpp/Makefile (contents, props changed)
head/devel/jsoncpp/distinfo (contents, props changed)
head/devel/jsoncpp/files/
head/devel/jsoncpp/files/patch-SConstruct (contents, props changed)
head/devel/jsoncpp/pkg-descr (contents, props changed)
head/devel/jsoncpp/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Tue Jan 21 18:40:23 2014 (r340635)
+++ head/devel/Makefile Tue Jan 21 18:43:56 2014 (r340636)
@@ -888,6 +888,7 @@
SUBDIR += jsmin
SUBDIR += json-c
SUBDIR += json-glib
+ SUBDIR += jsoncpp
SUBDIR += jtag
SUBDIR += judy
SUBDIR += jwasm
Added: head/devel/jsoncpp/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/jsoncpp/Makefile Tue Jan 21 18:43:56 2014 (r340636)
@@ -0,0 +1,34 @@
+# Created by: Johan Str??m <johna at stromnet.se>
+# $FreeBSD$
+
+PORTNAME= jsoncpp
+DISTVERSION= 0.6.0-rc2
+CATEGORIES= devel
+MASTER_SITES= SF/${PORTNAME}/jsoncpp/${DISTVERSION}
+DISTNAME= jsoncpp-src-${DISTVERSION}
+
+MAINTAINER= johan at stromnet.se
+COMMENT= JSON reader and writer library for C++
+
+LICENSE= MIT
+
+USES= dos2unix scons
+USE_LDCONFIG= yes
+
+MAKE_ARGS= platform=linux-gcc
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|g++|${CXX}|' ${WRKSRC}/SConstruct
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
+ (cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/ ${STAGEDIR}${PREFIX}/include/jsoncpp/)
+ (cd ${WRKSRC}/libs/linux-gcc-FreeBSD/ && \
+ ${INSTALL_LIB} libjson_linux-gcc-FreeBSD_libmt.a \
+ ${STAGEDIR}${PREFIX}/lib/libjsoncpp.a)
+ (cd ${WRKSRC}/libs/linux-gcc-FreeBSD/ && \
+ ${INSTALL_LIB} libjson_linux-gcc-FreeBSD_libmt.so \
+ ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so.0)
+ (cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -s libjsoncpp.so.0 libjsoncpp.so )
+
+.include <bsd.port.mk>
Added: head/devel/jsoncpp/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/jsoncpp/distinfo Tue Jan 21 18:43:56 2014 (r340636)
@@ -0,0 +1,2 @@
+SHA256 (jsoncpp-src-0.6.0-rc2.tar.gz) = d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283
+SIZE (jsoncpp-src-0.6.0-rc2.tar.gz) = 117661
Added: head/devel/jsoncpp/files/patch-SConstruct
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/jsoncpp/files/patch-SConstruct Tue Jan 21 18:43:56 2014 (r340636)
@@ -0,0 +1,11 @@
+--- ./SConstruct.orig 2014-01-21 02:29:19.000000000 -0200
++++ ./SConstruct 2014-01-21 02:29:28.000000000 -0200
+@@ -26,7 +26,7 @@
+ if platform == 'linux-gcc':
+ CXX = 'g++' # not quite right, but env is not yet available.
+ import commands
+- version = commands.getoutput('%s -dumpversion' %CXX)
++ version = 'FreeBSD'
+ platform = 'linux-gcc-%s' %version
+ print "Using platform '%s'" %platform
+ LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', '')
Added: head/devel/jsoncpp/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/jsoncpp/pkg-descr Tue Jan 21 18:43:56 2014 (r340636)
@@ -0,0 +1,6 @@
+jsoncpp is an implementation of a JSON reader and writer in C++.
+JSON (JavaScript Object Notation) is a lightweight data-interchange format.
+It is easy for humans to read and write.
+It is easy for machines to parse and generate.
+
+WWW: http://jsoncpp.sourceforge.net/
Added: head/devel/jsoncpp/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/jsoncpp/pkg-plist Tue Jan 21 18:43:56 2014 (r340636)
@@ -0,0 +1,13 @@
+lib/libjsoncpp.so.0
+lib/libjsoncpp.so
+lib/libjsoncpp.a
+include/jsoncpp/json/writer.h
+include/jsoncpp/json/json.h
+include/jsoncpp/json/forwards.h
+include/jsoncpp/json/config.h
+include/jsoncpp/json/value.h
+include/jsoncpp/json/reader.h
+include/jsoncpp/json/features.h
+include/jsoncpp/json/autolink.h
+ at dirrm include/jsoncpp/json
+ at dirrm include/jsoncpp
More information about the svn-ports-all
mailing list