Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2016 01:10:54 +0800
From:      Sunpoet Hsieh <sunpoet@sunpoet.net>
To:        Kurt Jaeger <pi@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org,  svn-ports-head@freebsd.org
Subject:   Re: svn commit: r415395 - in head/devel/jsoncpp: . files
Message-ID:  <CAMHz58SW3-M7iAvowPJ1QYAUW__baT6TNupwXcCTPHZ2o9AN4g@mail.gmail.com>
In-Reply-To: <201605171700.u4HH0Fhh009764@repo.freebsd.org>
References:  <201605171700.u4HH0Fhh009764@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 18, 2016 at 1:00 AM, Kurt Jaeger <pi@freebsd.org> wrote:

> Author: pi
> Date: Tue May 17 17:00:15 2016
> New Revision: 415395
> URL: https://svnweb.freebsd.org/changeset/ports/415395
>
> Log:
>   devel/jsoncpp: 0.6.0 -> 1.7.2
>
>   Changes: https://github.com/open-source-parsers/jsoncpp/releases
>   - Changed distsite to github
>   - This is a major upgrade, please report any issues
>
>   PR:           209407
>   Submitted by: yuri@rawbw.com
>   Approved by:  johan@stromnet.se (maintainer)
>   Reviewed by:  brd, swills
>
> Added:
>   head/devel/jsoncpp/files/patch-include_json_config.h   (contents, props
> changed)
> Modified:
>   head/devel/jsoncpp/Makefile
>   head/devel/jsoncpp/distinfo
>   head/devel/jsoncpp/files/patch-SConstruct
>   head/devel/jsoncpp/files/patch-src_lib__json_sconscript
>   head/devel/jsoncpp/pkg-descr
>   head/devel/jsoncpp/pkg-plist
>
> Modified: head/devel/jsoncpp/Makefile
>
> ==============================================================================
> --- head/devel/jsoncpp/Makefile Tue May 17 16:58:55 2016        (r415394)
> +++ head/devel/jsoncpp/Makefile Tue May 17 17:00:15 2016        (r415395)
> @@ -2,11 +2,8 @@
>  # $FreeBSD$
>
>  PORTNAME=      jsoncpp
> -DISTVERSION=   0.6.0-rc2
> -PORTREVISION=  2
> +DISTVERSION=   1.7.2
>  CATEGORIES=    devel
> -MASTER_SITES=  SF/${PORTNAME}/jsoncpp/${DISTVERSION}
> -DISTNAME=      jsoncpp-src-${DISTVERSION}
>
>  MAINTAINER=    johan@stromnet.se
>  COMMENT=       JSON reader and writer library for C++
> @@ -14,19 +11,38 @@ COMMENT=    JSON reader and writer library
>  LICENSE=       MIT
>  LICENSE_FILE=  ${WRKSRC}/LICENSE
>
> +USE_GITHUB=    yes
> +GH_ACCOUNT=    open-source-parsers
> +
>  USES=          dos2unix scons
>  USE_LDCONFIG=  yes
>
>  MAKE_ARGS=     platform=linux-gcc
>
> +.include <bsd.port.pre.mk>
> +
> +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
> +# NOTE Certain newest compiler features unlock some parts of jsoncpp API
> (ex. see JSON_HAS_RVALUE_REFERENCES).
> +# Use c++11 above to be most inclusive.
> +USES+=         compiler:c++11-lang
> +CXXFLAGS+=     --std=c++11
> +.endif
> +
>  do-install:
>         @${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
>         (cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/
> ${STAGEDIR}${PREFIX}/include/jsoncpp/)
>         ${INSTALL_DATA} ${WRKSRC}/libs/linux-gcc-FreeBSD/libjsoncpp.a \
>                 ${STAGEDIR}${PREFIX}/lib
> -       ${INSTALL_LIB}
> ${WRKSRC}/libs/linux-gcc-FreeBSD/libjsoncpp.so.0.6.0 \
> +       ${INSTALL_LIB}
> ${WRKSRC}/libs/linux-gcc-FreeBSD/libjsoncpp.so.${DISTVERSION} \
>                 ${STAGEDIR}${PREFIX}/lib
> -       ${LN} -s libjsoncpp.so.0.6.0
> ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so.0
> -       ${LN} -s libjsoncpp.so.0.6.0 ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so
> +       ${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_PREFIX@|${PREFIX}|g' \
> +               -e 's|@LIBRARY_INSTALL_DIR@|${PREFIX}/lib|g' \
> +               -e 's|@INCLUDE_INSTALL_DIR@|${PREFIX}/jsoncpp|g' \
> +               -e 's|@JSONCPP_VERSION@|${DISTVERSION}|g' \
> +               ${STAGEDIR}${PREFIX}/libdata/pkgconfig/jsoncpp.pc
>
> -.include <bsd.port.mk>
> +.include <bsd.port.post.mk>
>
> Modified: head/devel/jsoncpp/distinfo
>
> ==============================================================================
> --- head/devel/jsoncpp/distinfo Tue May 17 16:58:55 2016        (r415394)
> +++ head/devel/jsoncpp/distinfo Tue May 17 17:00:15 2016        (r415395)
> @@ -1,2 +1,2 @@
> -SHA256 (jsoncpp-src-0.6.0-rc2.tar.gz) =
> d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283
> -SIZE (jsoncpp-src-0.6.0-rc2.tar.gz) = 117661
> +SHA256 (open-source-parsers-jsoncpp-1.7.2_GH0.tar.gz) =
> 2179a7df19c1c6dc87e02c65b847efc914625a9b87df3e443d9610fc70c0f557
> +SIZE (open-source-parsers-jsoncpp-1.7.2_GH0.tar.gz) = 205391
>
> Modified: head/devel/jsoncpp/files/patch-SConstruct
>
> ==============================================================================
> --- head/devel/jsoncpp/files/patch-SConstruct   Tue May 17 16:58:55 2016
>       (r415394)
> +++ head/devel/jsoncpp/files/patch-SConstruct   Tue May 17 17:00:15 2016
>       (r415395)
> @@ -1,6 +1,6 @@
> ---- SConstruct
> +--- SConstruct.orig    2016-05-09 23:15:49 UTC
>  +++ SConstruct
> -@@ -26,7 +26,7 @@
> +@@ -26,7 +26,7 @@ try:
>       if platform == 'linux-gcc':
>           CXX = 'g++' # not quite right, but env is not yet available.
>           import commands
> @@ -9,7 +9,7 @@
>           platform = 'linux-gcc-%s' %version
>           print "Using platform '%s'" %platform
>           LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', '')
> -@@ -65,7 +65,7 @@
> +@@ -65,7 +65,7 @@ def make_environ_vars():
>         return vars
>
>
> @@ -18,15 +18,15 @@
>                      toolpath = ['scons-tools'],
>                      tools=[] ) #, tools=['default'] )
>
> -@@ -121,6 +121,7 @@
> +@@ -121,6 +121,7 @@ elif platform.startswith('linux-gcc'):
>       env.Tool( 'default' )
> -     env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
> +     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 @@
> +@@ -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
> @@ -38,7 +38,7 @@
>   if 'TarGz' in env['BUILDERS']:
>         class SrcDistAdder:
>                 def __init__( self, env ):
> -@@ -164,7 +170,7 @@
> +@@ -164,7 +170,7 @@ 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( )
> @@ -47,7 +47,7 @@
>
>   def buildJSONExample( env, target_sources, target_name ):
>       env = env.Clone()
> -@@ -187,14 +193,14 @@
> +@@ -187,14 +193,14 @@ def buildUnitTests( env, target_sources,
>       env.AlwaysBuild( check_alias_target )
>
>   def buildLibrary( env, target_sources, target_name ):
>
> Added: head/devel/jsoncpp/files/patch-include_json_config.h
>
> ==============================================================================
> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> +++ head/devel/jsoncpp/files/patch-include_json_config.h        Tue May 17
> 17:00:15 2016        (r415395)
> @@ -0,0 +1,11 @@
> +--- include/json/config.h.orig 2016-05-09 23:16:22 UTC
> ++++ include/json/config.h
> +@@ -77,7 +77,7 @@
> +
> + #endif // defined(_MSC_VER)
> +
> +-#if defined(_MSC_VER) && _MSC_VER <= 1600 // MSVC <= 2010
> ++#if defined(__FreeBSD__) || (defined(_MSC_VER) && _MSC_VER <= 1600) //
> MSVC <= 2010
> + # define JSONCPP_OVERRIDE
> + #else
> + # define JSONCPP_OVERRIDE override
>
> Modified: head/devel/jsoncpp/files/patch-src_lib__json_sconscript
>
> ==============================================================================
> --- head/devel/jsoncpp/files/patch-src_lib__json_sconscript     Tue May 17
> 16:58:55 2016        (r415394)
> +++ head/devel/jsoncpp/files/patch-src_lib__json_sconscript     Tue May 17
> 17:00:15 2016        (r415395)
> @@ -1,4 +1,4 @@
> ---- src/lib_json/sconscript.orig       2015-06-22 20:34:03 UTC
> +--- 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
>
> Modified: head/devel/jsoncpp/pkg-descr
>
> ==============================================================================
> --- head/devel/jsoncpp/pkg-descr        Tue May 17 16:58:55 2016
> (r415394)
> +++ head/devel/jsoncpp/pkg-descr        Tue May 17 17:00:15 2016
> (r415395)
> @@ -3,4 +3,4 @@ JSON (JavaScript Object Notation) is a l
>  It is easy for humans to read and write.
>  It is easy for machines to parse and generate.
>
> -WWW: http://jsoncpp.sourceforge.net/
> +WWW: https://github.com/open-source-parsers/jsoncpp
>
> Modified: head/devel/jsoncpp/pkg-plist
>
> ==============================================================================
> --- head/devel/jsoncpp/pkg-plist        Tue May 17 16:58:55 2016
> (r415394)
> +++ head/devel/jsoncpp/pkg-plist        Tue May 17 17:00:15 2016
> (r415395)
> @@ -1,12 +1,16 @@
> -lib/libjsoncpp.so.0.6.0
> -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/allocator.h
> +include/jsoncpp/json/assertions.h
> +include/jsoncpp/json/autolink.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
> +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
> +lib/libjsoncpp.a
> +lib/libjsoncpp.so
> +lib/libjsoncpp.so.1
> +lib/libjsoncpp.so.1.7.2
> +libdata/pkgconfig/jsoncpp.pc
> _______________________________________________
> svn-ports-all@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-ports-all
> To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
>

Please bump dependent ports for shlib change (.0 -> .1).
Thanks.

Regards,
sunpoet



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