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