pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/serf



Module Name:    pkgsrc
Committed By:   tnn
Date:           Wed Jan  2 17:25:06 UTC 2019

Modified Files:
        pkgsrc/www/serf: Makefile distinfo
        pkgsrc/www/serf/patches: patch-SConstruct

Log Message:
self: catch up with scons update; support building with python 3


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/www/serf/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/www/serf/distinfo
cvs rdiff -u -r1.9 -r1.10 pkgsrc/www/serf/patches/patch-SConstruct

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/serf/Makefile
diff -u pkgsrc/www/serf/Makefile:1.37 pkgsrc/www/serf/Makefile:1.38
--- pkgsrc/www/serf/Makefile:1.37       Tue Apr  4 23:40:06 2017
+++ pkgsrc/www/serf/Makefile    Wed Jan  2 17:25:05 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2017/04/04 23:40:06 gdt Exp $
+# $NetBSD: Makefile,v 1.38 2019/01/02 17:25:05 tnn Exp $
 
 DISTNAME=      serf-1.3.9
 CATEGORIES=    www
@@ -10,8 +10,6 @@ HOMEPAGE=     http://serf.apache.org/
 COMMENT=       High-performance asynchronous HTTP client library
 LICENSE=       apache-2.0
 
-BUILD_DEPENDS+=                scons>=2.3.0:../../devel/scons
-
 SCONS_ARGS+=           APR=${PREFIX}/bin/apr-1-config
 SCONS_ARGS+=           APU=${PREFIX}/bin/apu-1-config
 SCONS_ARGS+=           CC=${CC:Q}
@@ -30,13 +28,15 @@ post-extract:
        ${CHMOD} -R go-w ${WRKSRC}
 
 do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons PREFIX=${PREFIX} ${SCONS_ARGS}
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONSBIN} PREFIX=${PREFIX} ${SCONS_ARGS}
 
 do-install:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons PREFIX=${PREFIX} ${SCONS_ARGS} install
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONSBIN} PREFIX=${PREFIX} ${SCONS_ARGS} install
 
 .include "../../devel/apr/buildlink3.mk"
 .include "../../devel/apr-util/buildlink3.mk"
+PYTHON_FOR_BUILD_ONLY?=        yes
+.include "../../devel/scons/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/serf/distinfo
diff -u pkgsrc/www/serf/distinfo:1.23 pkgsrc/www/serf/distinfo:1.24
--- pkgsrc/www/serf/distinfo:1.23       Wed Oct  4 11:53:10 2017
+++ pkgsrc/www/serf/distinfo    Wed Jan  2 17:25:05 2019
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.23 2017/10/04 11:53:10 wiz Exp $
+$NetBSD: distinfo,v 1.24 2019/01/02 17:25:05 tnn Exp $
 
 SHA1 (serf-1.3.9.tar.bz2) = 26015c63e3bbb108c1689bf2090e4c26351db674
 RMD160 (serf-1.3.9.tar.bz2) = 4bbc773841eb2bd83a7c12170937b403201dd83b
 SHA512 (serf-1.3.9.tar.bz2) = 9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d
 Size (serf-1.3.9.tar.bz2) = 145132 bytes
-SHA1 (patch-SConstruct) = 22ade50e574ae503d40158558e03f5063da7df1c
+SHA1 (patch-SConstruct) = f5adb0e945fc22937ee8f7861d65735d7ffa0b2d

Index: pkgsrc/www/serf/patches/patch-SConstruct
diff -u pkgsrc/www/serf/patches/patch-SConstruct:1.9 pkgsrc/www/serf/patches/patch-SConstruct:1.10
--- pkgsrc/www/serf/patches/patch-SConstruct:1.9        Wed Oct  4 11:53:10 2017
+++ pkgsrc/www/serf/patches/patch-SConstruct    Wed Jan  2 17:25:06 2019
@@ -1,4 +1,4 @@
-$NetBSD: patch-SConstruct,v 1.9 2017/10/04 11:53:10 wiz Exp $
+$NetBSD: patch-SConstruct,v 1.10 2019/01/02 17:25:06 tnn Exp $
 
 Hack: Use OPENSSL variable as final shared library path; fixes lib id on Darwin.
 Don't append -O2 compiler flag.
@@ -24,6 +24,15 @@ Fix build with scons-3.x.
                    tools=('default', 'textfile',),
                    CPPPATH=['.', ],
                    )
+@@ -166,7 +167,7 @@ env.Append(BUILDERS = {
+ match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
+                   'SERF_MINOR_VERSION ([0-9]+).*'
+                   'SERF_PATCH_VERSION ([0-9]+)',
+-                  env.File('serf.h').get_contents(),
++                  env.File('serf.h').get_contents().decode('utf-8'),
+                   re.DOTALL)
+ MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
+ env.Append(MAJOR=str(MAJOR))
 @@ -183,7 +184,7 @@ CALLOUT_OKAY = not (env.GetOption('clean
  
  unknown = opts.UnknownVariables()



Home | Main Index | Thread Index | Old Index