Ravenports generated: 24 Jan 2023 06:04
[ravenports.git] / bucket_23 / argp-standalone
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               argp-standalone
4 VERSION=                1.5.0
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Arguments parsing functions from GLIBC
8 HOMEPAGE=               https://github.com/argp-standalone/argp-standalone/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/argp-standalone:argp-standalone:1.5.0
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 NOT_FOR_OPSYS=          linux
21
22 USES=                   meson gettext-runtime
23
24 LICENSE=                LGPL21+:single
25 LICENSE_TERMS=          single:{{WRKDIR}}/TERMS
26 LICENSE_FILE=           LGPL21+:stock
27 LICENSE_AWK=            TERMS:"_ARGP_H"
28 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/argp.h
29 LICENSE_SCHEME=         solo
30
31 FPC_EQUIVALENT=         devel/argp-standalone
32 MESON_ARGS=             -Ddefault_library=both
33
34 post-install:
35         ${INSTALL_DATA} ${WRKSRC}/argp.h ${STAGEDIR}${PREFIX}/include
36
37 [FILE:103:descriptions/desc.single]
38 It is standalone version of argp - part of glibc library.
39 It was separated off glibc by Niels Mueller.
40
41
42 [FILE:123:distinfo]
43 c29eae929dfebd575c38174f2c8c315766092cec99a8f987569d0cad3c6d64f6        65889 argp-standalone-argp-standalone-1.5.0.tar.gz
44
45
46 [FILE:75:manifests/plist.single]
47 include/argp.h
48 lib/
49  libargp.a
50  libargp.so
51  libargp.so.0
52  libargp.so.0.0.0
53
54
55 [FILE:1500:patches/patch-meson.build]
56 From e4b42480f6fd63a117e1d8a3d90fb69434133c28 Mon Sep 17 00:00:00 2001
57 From: Daniel Engberg <daniel.engberg.lists@pyret.net>
58 Date: Thu, 5 May 2022 08:21:43 +0200
59 Subject: [PATCH] Allow both static and shared builds using Meson on non
60  Windows platforms
61
62 Allow builds to be both or either static and shared instead of
63 hardcoding static and create symlinks for shared library as used
64 in multiple distributions
65 ---
66  meson.build | 26 +++++++++++++++++++++-----
67  1 file changed, 21 insertions(+), 5 deletions(-)
68
69 --- meson.build.orig
70 +++ meson.build
71 @@ -17,6 +17,11 @@ conf_data = configuration_data()
72  
73  cc = meson.get_compiler('c')
74  
75 +if host_machine.system() != 'windows' 
76 +       soversion = '0'
77 +       libversion = '0.0.0'
78 +endif
79 +
80  conf_data.set10('HAVE_CONFIG_H', true)
81  conf_data.set10('HAVE_ALLOCA_H', cc.check_header('alloca.h'))
82  
83 @@ -68,12 +73,23 @@ if conf_data.get('HAVE_MEMPCPY') == 0
84         argp_source += files(['mempcpy.c'])
85  endif
86  
87 -argp_library = static_library('argp',
88 -       argp_source,
89 -       include_directories : '.',
90 -       dependencies : deps,
91 -       install : true
92 +if host_machine.system() != 'windows'
93 +       argp_library = library('argp',
94 +               argp_source,
95 +               include_directories : '.',
96 +               soversion: soversion,
97 +               version: libversion,
98 +               dependencies : deps,
99 +               install : true
100 +       )
101 +else   
102 +       argp_library = static_library('argp',
103 +               argp_source,
104 +               include_directories : '.',
105 +               dependencies : deps,
106 +               install : true
107  )
108 +endif
109  
110  argp_dep = declare_dependency(link_with : argp_library,
111         include_directories : '.')
112