Ravenports generated: 02 Apr 2023 18:43
[ravenports.git] / bucket_59 / serf
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               serf
4 VERSION=                1.3.9
5 REVISION=               2
6 KEYWORDS=               net www
7 VARIANTS=               standard
8 SDESC[standard]=        High-performance asynchronous HTTP client library
9 HOMEPAGE=               https://serf.apache.org/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            APACHE/serf
14 DISTFILE[1]=            serf-1.3.9.tar.bz2:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      none
19 OPTIONS_STANDARD=       none
20
21 BUILD_DEPENDS=          apr1:dev:standard
22                         apr-util:dev:standard
23                         gdbm:dev:standard
24 BUILDRUN_DEPENDS=       apr-util:primary:standard
25                         gdbm:primary:standard
26
27 USES=                   scons ssl:openssl11 cpe zlib expat iconv bdb
28
29 LICENSE=                APACHE20:single
30 LICENSE_TERMS=          single:{{WRKDIR}}/TERMS
31 LICENSE_FILE=           APACHE20:{{WRKSRC}}/LICENSE
32 LICENSE_AWK=            TERMS:"SERF_H"
33 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/serf.h
34 LICENSE_SCHEME=         solo
35
36 CPE_VENDOR=             serf_project
37 FPC_EQUIVALENT=         www/serf
38
39 MAKE_ARGS=              APR={{LOCALBASE}}/bin/apr-1-config
40                         APU={{LOCALBASE}}/bin/apu-1-config
41                         OPENSSL={{OPENSSLBASE}}
42                         CFLAGS="{{CFLAGS}}"
43
44 INSTALL_REQ_TOOLCHAIN=  yes
45 PLIST_SUB=              SOVERSION=1.3.0
46                         SOMAJOR=1
47
48 VAR_OPSYS[sunos]=       CFLAGS=-D__EXTENSIONS__
49                         CFLAGS=-I{{LOCALBASE}}/include/bsd
50
51 post-patch:
52         ${REINPLACE_CMD} -E \
53                 -e '/^Requires.private/s/(libssl|libcrypto)//g' \
54                 -e '/^Libs.private/s|$$| -L${OPENSSLLIB} -lssl -lcrypto|' \
55                 ${WRKSRC}/build/serf.pc.in
56
57 post-install:
58         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libserf-1.so
59
60 [FILE:467:descriptions/desc.single]
61 The serf library is a high performance C-based HTTP client library built
62 upon the Apache Portable Runtime (APR) library. It is permissively
63 licensed under the Apache License, v2.
64
65 Key features:
66  * multiplexed, asynchronous connections
67  * SSL/TLS support
68  * full HTTP pipelining
69  * multiple authentication modes (Basic, Digest, Kerberos/NTLM)
70  * zero-copy support for increased throughput
71
72 Serf is the default client library of Apache Subversion and
73 Apache OpenOffice
74
75
76 [FILE:97:distinfo]
77 549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc       145132 serf-1.3.9.tar.bz2
78
79
80 [FILE:175:manifests/plist.single]
81 include/serf-1/
82  serf.h
83  serf_bucket_types.h
84  serf_bucket_util.h
85 lib/
86  libserf-1.a
87  libserf-1.so
88  libserf-1.so.%%SOMAJOR%%
89  libserf-1.so.%%SOVERSION%%
90 lib/pkgconfig/serf-1.pc
91
92
93 [FILE:2546:patches/patch-SConstruct]
94 --- SConstruct.orig     2015-09-17 12:46:24 UTC
95 +++ SConstruct
96 @@ -74,6 +74,9 @@ else:
97  
98  opts = Variables(files=[SAVED_CONFIG])
99  opts.AddVariables(
100 +  RawListVariable('DESTDIR',
101 +               'Required *dummy*, without scons will stop with "Unknown variables: DESTDIR"',
102 +                None),
103    PathVariable('PREFIX',
104                 'Directory to install under',
105                 default_prefix,
106 @@ -153,6 +156,7 @@ if sys.platform == 'win32':
107      )
108  
109  env = Environment(variables=opts,
110 +                  ENV = os.environ,
111                    tools=('default', 'textfile',),
112                    CPPPATH=['.', ],
113                    )
114 @@ -166,7 +170,7 @@ env.Append(BUILDERS = {
115  match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
116                    'SERF_MINOR_VERSION ([0-9]+).*'
117                    'SERF_PATCH_VERSION ([0-9]+)',
118 -                  env.File('serf.h').get_contents(),
119 +                  env.File('serf.h').get_contents().decode('utf-8'),
120                    re.DOTALL)
121  MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
122  env.Append(MAJOR=str(MAJOR))
123 @@ -183,7 +187,7 @@ CALLOUT_OKAY = not (env.GetOption('clean
124  
125  unknown = opts.UnknownVariables()
126  if unknown:
127 -  print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
128 +  print ('Warning: Used unknown variables:', ', '.join(unknown.keys()))
129  
130  apr = str(env['APR'])
131  apu = str(env['APU'])
132 @@ -215,8 +219,7 @@ incdir = '$PREFIX/include/serf-$MAJOR'
133  # Unfortunately we can't set the .dylib compatibility_version option separately
134  # from current_version, so don't use the PATCH level to avoid that build and
135  # runtime patch levels have to be identical.
136 -if sys.platform != 'sunos5':
137 -  env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
138 +env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
139  
140  LIBNAME = 'libserf-%d' % (MAJOR,)
141  if sys.platform != 'win32':
142 @@ -364,8 +367,8 @@ else:
143    ### there is probably a better way to run/capture output.
144    ### env.ParseConfig() may be handy for getting this stuff into the build
145    if CALLOUT_OKAY:
146 -    apr_libs = os.popen(env.subst('$APR --link-libtool --libs')).read().strip()
147 -    apu_libs = os.popen(env.subst('$APU --link-libtool --libs')).read().strip()
148 +    apr_libs = os.popen(env.subst('$APR --libs')).read().strip()
149 +    apu_libs = os.popen(env.subst('$APU --libs')).read().strip()
150    else:
151      apr_libs = ''
152      apu_libs = ''
153 @@ -406,6 +409,8 @@ pkgconfig = env.Textfile('serf-%d.pc' %
154  
155  env.Default(lib_static, lib_shared, pkgconfig)
156  
157 +#print env.Dump()
158 +
159  if CALLOUT_OKAY:
160    conf = Configure(env)
161  
162
163
164 [FILE:408:patches/patch-buckets_ssl__buckets.c]
165 --- buckets/ssl_buckets.c.orig  2016-06-30 15:45:07 UTC
166 +++ buckets/ssl_buckets.c
167 @@ -52,7 +52,7 @@
168  #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
169  #endif
170  
171 -#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
172 +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
173  #define USE_OPENSSL_1_1_API
174  #endif
175  
176
177
178 [FILE:55:files/special.mk]
179 INSTALL_TARGET=         install --install-sandbox=${STAGEDIR}
180