mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
devel/jsoncpp: Update 1.8.1 -> 1.9.2
PR: 229677 Differential Revision: D22905
This commit is contained in:
parent
f2c39c5fa0
commit
fe6826dccc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=522975
@ -3,6 +3,7 @@
|
||||
PORTNAME= bamtools
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.5.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= biology
|
||||
|
||||
MAINTAINER= jwb@FreeBSD.org
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= cmake
|
||||
DISTVERSION= 3.16.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://www.cmake.org/files/v${PORTVERSION:R}/
|
||||
PKGNAMESUFFIX= -gui
|
||||
|
@ -4,6 +4,7 @@
|
||||
PORTNAME= cmake
|
||||
# Remember to update devel/cmake-doc and devel/cmake-gui as well.
|
||||
DISTVERSION= 3.16.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://github.com/Kitware/CMake/releases/download/v${DISTVERSION}/ \
|
||||
https://www.cmake.org/files/v${PORTVERSION}/
|
||||
|
@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= jsoncpp
|
||||
PORTVERSION= 1.8.1
|
||||
PORTREVISION= 7
|
||||
PORTVERSION= 1.9.2
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
@ -12,33 +11,10 @@ COMMENT= JSON reader and writer library for C++
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= compiler:c++11-lang meson pkgconfig
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= open-source-parsers
|
||||
|
||||
USES= compiler:c++11-lang dos2unix scons
|
||||
MESON_ARGS= --default-library=both
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PLATFORM= linux-gcc-FreeBSD
|
||||
MAKE_ARGS= platform=${PLATFORM}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
|
||||
(cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/ ${STAGEDIR}${PREFIX}/include/jsoncpp/)
|
||||
${INSTALL_DATA} ${WRKSRC}/libs/${PLATFORM}/libjsoncpp.a \
|
||||
${STAGEDIR}${PREFIX}/lib
|
||||
${INSTALL_LIB} ${WRKSRC}/libs/${PLATFORM}/libjsoncpp.so.${DISTVERSION} \
|
||||
${STAGEDIR}${PREFIX}/lib
|
||||
${LN} -s libjsoncpp.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so.1
|
||||
${LN} -s libjsoncpp.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so
|
||||
${CP} ${WRKSRC}/pkg-config/jsoncpp.pc.in ${STAGEDIR}${PREFIX}/libdata/pkgconfig/jsoncpp.pc
|
||||
@${REINPLACE_CMD} -i '' \
|
||||
-e 's|@CMAKE_INSTALL_FULL_LIBDIR@|${PREFIX}/lib|g' \
|
||||
-e 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|${PREFIX}/include/jsoncpp|g' \
|
||||
-e 's|@JSONCPP_VERSION@|${DISTVERSION}|g' \
|
||||
${STAGEDIR}${PREFIX}/libdata/pkgconfig/jsoncpp.pc
|
||||
|
||||
do-test:
|
||||
@${ECHO} "Please note that 3 testcases are known to fail: https://github.com/open-source-parsers/jsoncpp/issues/628"
|
||||
@cd ${WRKSRC} && CXX=${CXX} ${SCONS} platform=${PLATFORM} check
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1498626054
|
||||
SHA256 (open-source-parsers-jsoncpp-1.8.1_GH0.tar.gz) = 858db2faf348f89fdf1062bd3e79256772e897e7f17df73e0624edf004f2f9ac
|
||||
SIZE (open-source-parsers-jsoncpp-1.8.1_GH0.tar.gz) = 210629
|
||||
TIMESTAMP = 1577016318
|
||||
SHA256 (open-source-parsers-jsoncpp-1.9.2_GH0.tar.gz) = 77a402fb577b2e0e5d0bdc1cf9c65278915cdb25171e3452c68b6da8a561f8f0
|
||||
SIZE (open-source-parsers-jsoncpp-1.9.2_GH0.tar.gz) = 211341
|
||||
|
@ -1,72 +0,0 @@
|
||||
--- SConstruct.orig 2016-05-09 23:15:49 UTC
|
||||
+++ SConstruct
|
||||
@@ -26,7 +26,7 @@ try:
|
||||
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', '')
|
||||
@@ -65,7 +65,7 @@ def make_environ_vars():
|
||||
return vars
|
||||
|
||||
|
||||
-env = Environment( ENV = make_environ_vars(),
|
||||
+env = Environment( ENV = os.environ,
|
||||
toolpath = ['scons-tools'],
|
||||
tools=[] ) #, tools=['default'] )
|
||||
|
||||
@@ -121,6 +121,7 @@ elif platform.startswith('linux-gcc'):
|
||||
env.Tool( 'default' )
|
||||
env.Append( LIBS = ['pthread'], CCFLAGS = os.environ.get("CXXFLAGS", "-Wall"), LINKFLAGS=os.environ.get("LDFLAGS", "") )
|
||||
env['SHARED_LIB_ENABLED'] = True
|
||||
+ env['CXX'] = os.environ['CXX']
|
||||
else:
|
||||
print "UNSUPPORTED PLATFORM."
|
||||
env.Exit(1)
|
||||
@@ -147,6 +148,11 @@ env['JSONCPP_VERSION'] = JSONCPP_VERSION
|
||||
env['BUILD_DIR'] = env.Dir(build_dir)
|
||||
env['ROOTBUILD_DIR'] = env.Dir(rootbuild_dir)
|
||||
env['DIST_DIR'] = DIST_DIR
|
||||
+
|
||||
+# Set SHLIBVERSION for env.InstallVersionedLib(). We use the version number
|
||||
+# without the "-rcXX" part.
|
||||
+env['SHLIBVERSION'] = JSONCPP_VERSION.partition('-')[0]
|
||||
+
|
||||
if 'TarGz' in env['BUILDERS']:
|
||||
class SrcDistAdder:
|
||||
def __init__( self, env ):
|
||||
@@ -164,11 +170,11 @@ env['SRCDIST_ADD'] = SrcDistAdder( env )
|
||||
env['SRCDIST_TARGET'] = os.path.join( DIST_DIR, 'jsoncpp-src-%s.tar.gz' % env['JSONCPP_VERSION'] )
|
||||
|
||||
env_testing = env.Clone( )
|
||||
-env_testing.Append( LIBS = ['json_${LIB_NAME_SUFFIX}'] )
|
||||
+env_testing.Append( LIBS = ['jsoncpp'] )
|
||||
|
||||
def buildJSONExample( env, target_sources, target_name ):
|
||||
env = env.Clone()
|
||||
- env.Append( CPPPATH = ['#'] )
|
||||
+ #env.Append( CPPPATH = ['#'] )
|
||||
exe = env.Program( target=target_name,
|
||||
source=target_sources )
|
||||
env['SRCDIST_ADD']( source=[target_sources] )
|
||||
@@ -187,14 +193,14 @@ def buildUnitTests( env, target_sources,
|
||||
env.AlwaysBuild( check_alias_target )
|
||||
|
||||
def buildLibrary( env, target_sources, target_name ):
|
||||
- static_lib = env.StaticLibrary( target=target_name + '_${LIB_NAME_SUFFIX}',
|
||||
+ static_lib = env.StaticLibrary( target=target_name,
|
||||
source=target_sources )
|
||||
global lib_dir
|
||||
env.Install( lib_dir, static_lib )
|
||||
if env['SHARED_LIB_ENABLED']:
|
||||
- shared_lib = env.SharedLibrary( target=target_name + '_${LIB_NAME_SUFFIX}',
|
||||
+ shared_lib = env.SharedLibrary( target=target_name,
|
||||
source=target_sources )
|
||||
- env.Install( lib_dir, shared_lib )
|
||||
+ env.InstallVersionedLib( lib_dir, shared_lib )
|
||||
env['SRCDIST_ADD']( source=[target_sources] )
|
||||
|
||||
Export( 'env env_testing buildJSONExample buildLibrary buildJSONTests buildUnitTests' )
|
@ -1,8 +0,0 @@
|
||||
--- src/lib_json/sconscript.orig 2016-05-09 23:15:49 UTC
|
||||
+++ src/lib_json/sconscript
|
||||
@@ -5,4 +5,4 @@ buildLibrary( env, Split( """
|
||||
json_value.cpp
|
||||
json_writer.cpp
|
||||
""" ),
|
||||
- 'json' )
|
||||
+ 'jsoncpp' )
|
@ -1,16 +1,15 @@
|
||||
include/jsoncpp/json/allocator.h
|
||||
include/jsoncpp/json/assertions.h
|
||||
include/jsoncpp/json/autolink.h
|
||||
include/jsoncpp/json/config.h
|
||||
include/jsoncpp/json/features.h
|
||||
include/jsoncpp/json/forwards.h
|
||||
include/jsoncpp/json/json.h
|
||||
include/jsoncpp/json/reader.h
|
||||
include/jsoncpp/json/value.h
|
||||
include/jsoncpp/json/version.h
|
||||
include/jsoncpp/json/writer.h
|
||||
include/json/allocator.h
|
||||
include/json/assertions.h
|
||||
include/json/autolink.h
|
||||
include/json/config.h
|
||||
include/json/forwards.h
|
||||
include/json/json.h
|
||||
include/json/json_features.h
|
||||
include/json/reader.h
|
||||
include/json/value.h
|
||||
include/json/version.h
|
||||
include/json/writer.h
|
||||
lib/libjsoncpp.a
|
||||
lib/libjsoncpp.so
|
||||
lib/libjsoncpp.so.1
|
||||
lib/libjsoncpp.so.1.8.1
|
||||
lib/libjsoncpp.so.22
|
||||
libdata/pkgconfig/jsoncpp.pc
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= opendht
|
||||
DISTVERSION= 1.10.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel net
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
@ -3,7 +3,7 @@
|
||||
PORTNAME= Open3D
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.2
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= graphics
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
@ -3,6 +3,7 @@
|
||||
PORTNAME= ossim
|
||||
DISTVERSIONPREFIX= Neptune-
|
||||
DISTVERSION= 2.10.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics geography
|
||||
|
||||
MAINTAINER= lbartoletti@tuxfamily.org
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= solidity
|
||||
PORTVERSION= 0.6.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= https://github.com/ethereum/solidity/releases/download/v${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= cadabra2
|
||||
DISTVERSION= 2.2.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= ignition-fuel-tools
|
||||
DISTVERSION= 1.2.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
PORTNAME= libopenshot
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.2.3-595
|
||||
PORTREVISION= 1
|
||||
DISTVERSIONSUFFIX= -ga1158ee
|
||||
CATEGORIES= multimedia
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
PORTNAME= flower
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.10
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= ed@FreeBSD.org
|
||||
|
@ -3,7 +3,7 @@
|
||||
PORTNAME= libjson-rpc-cpp
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.1.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net www devel
|
||||
|
||||
MAINTAINER= greg@unrelenting.technology
|
||||
|
@ -3,7 +3,7 @@
|
||||
PORTNAME= tensorflow
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.14.0
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= science python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
@ -0,0 +1,23 @@
|
||||
--- third_party/systemlibs/jsoncpp.BUILD.orig 2019-06-19 00:48:23.000000000 +0200
|
||||
+++ third_party/systemlibs/jsoncpp.BUILD 2020-01-13 00:12:53.470881000 +0100
|
||||
@@ -7,8 +7,10 @@
|
||||
|
||||
HEADERS = [
|
||||
"include/json/autolink.h",
|
||||
+ "include/json/allocator.h",
|
||||
+ "include/json/assertions.h",
|
||||
"include/json/config.h",
|
||||
- "include/json/features.h",
|
||||
+ "include/json/json_features.h",
|
||||
"include/json/forwards.h",
|
||||
"include/json/json.h",
|
||||
"include/json/reader.h",
|
||||
@@ -23,7 +25,7 @@
|
||||
cmd = """
|
||||
for i in $(OUTS); do
|
||||
i=$${i##*/}
|
||||
- ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i
|
||||
+ ln -sf $(INCLUDEDIR)/json/$$i $(@D)/include/json/$$i
|
||||
done
|
||||
""",
|
||||
)
|
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= chromium
|
||||
PORTVERSION= 78.0.3904.108
|
||||
PORTREVISION= 1
|
||||
CATEGORIES?= www
|
||||
MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \
|
||||
LOCAL/cpm/chromium/:fonts
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= iridium
|
||||
PORTVERSION= 2019.04.73
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= https://downloads.iridiumbrowser.de/source/
|
||||
PKGNAMESUFFIX= -browser
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
PORTNAME= webengine
|
||||
DISTVERSION= ${QT5_VERSION}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
PKGNAMEPREFIX= qt5-
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= polybar
|
||||
DISTVERSION= 3.4.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= https://github.com/polybar/polybar/releases/download/${DISTVERSION}/
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= waybar
|
||||
DISTVERSION= 0.9.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11
|
||||
|
||||
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
||||
|
Loading…
Reference in New Issue
Block a user