Ravenports generated: 17 Sep 2022 15:25
[ravenports.git] / bucket_91 / python-sqlite3
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-sqlite3
4 VERSION=                3.10.6
5 KEYWORDS=               databases python
6 VARIANTS=               py39 py310
7 SDESC[py310]=           Python 3.10 bindings to the SQLite3 library
8 SDESC[py39]=            Python 3.9 bindings to the SQLite3 library
9 HOMEPAGE=               https://www.python.org/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        none pv310 pv39
13 SITES[pv310]=           https://www.python.org/ftp/python/3.10.6/
14 SITES[pv39]=            https://www.python.org/ftp/python/3.9.14/
15 DISTFILE[1]=            Python-3.9.14.tar.xz:pv39
16 DISTFILE[2]=            Python-3.10.6.tar.xz:pv310
17 SPKGS[py310]=           single
18 SPKGS[py39]=            single
19
20 OPTIONS_AVAILABLE=      PY39 PY310
21 OPTIONS_STANDARD=       none
22 VOPTS[py310]=           PY39=OFF PY310=ON
23 VOPTS[py39]=            PY39=ON PY310=OFF
24
25 BUILDRUN_DEPENDS=       sqlite:single:standard
26
27 USES=                   cpe
28
29 DISTNAME=               Python/Modules
30
31 CPE_PRODUCT=            python
32 CPE_VENDOR=             python
33 FPC_EQUIVALENT=         databases/py-sqlite3
34
35 [PY39].DF_INDEX_ON=                     1
36 [PY39].USES_ON=                         python:py39,sutools
37
38 [PY310].DF_INDEX_ON=                    2
39 [PY310].USES_ON=                        python:py310,sutools
40
41 post-stage:
42         ${MKDIR} ${STAGEDIR}${PYTHON_LIBDIR}/lib-dynload
43         ${MV} ${STAGEDIR}${PYTHON_SITELIBDIR}/_sqlite3*.so \
44                 ${STAGEDIR}${PYTHON_LIBDIR}/lib-dynload
45         ${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/lib-dynload/_sqlite3*.so
46         ${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}
47
48 post-extract-PY310-ON:
49         ${MV} ${WRKDIR}/Python-3.10.6  ${WRKDIR}/Python
50         ${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
51
52 post-extract-PY39-ON:
53         ${MV} ${WRKDIR}/Python-3.9.14  ${WRKDIR}/Python
54         ${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
55
56 [FILE:472:descriptions/desc.single]
57 SQLite is a library that provides a SQL-language database that
58 stores data in disk files without requiring a separate server
59 process. pysqlite provides a SQL interface compliant with the DB-API
60 2.0 specification described by PEP 249. This means that it should
61 be possible to write the first version of your applications using
62 SQLite for data storage. If switching to a larger database such as
63 PostgreSQL or Oracle is later necessary, the switch should be
64 relatively easy.
65
66
67 [FILE:198:distinfo]
68 651304d216c8203fe0adf1a80af472d8e92c3b0e0a7892222ae4d9f3ae4debcf     19750176 Python-3.9.14.tar.xz
69 f795ff87d11d4b0c7c33bc8851b0c28648d8a4583aa2100a98c22b4326b6d3f3     19600672 Python-3.10.6.tar.xz
70
71
72 [FILE:1462:files/setup.py]
73 #!/usr/bin/env python
74 # To use:
75 #       python setup.py install
76 #
77
78 __version__ = "$FreeBSD: head/databases/py-sqlite3/files/setup.py 417946 2016-07-03 00:17:29Z wen $"
79
80 try:
81     import distutils
82     from distutils import sysconfig
83     from distutils.command.install import install
84     from distutils.core import setup, Extension
85 except:
86     raise SystemExit, "Distutils problem"
87
88 install.sub_commands = filter(lambda (cmd, avl): 'egg' not in cmd,
89                               install.sub_commands)
90
91 prefix = sysconfig.PREFIX
92 inc_dirs = [prefix + "/include", "Modules/_sqlite"]
93 lib_dirs = [prefix + "/lib"]
94 libs = ["sqlite3"]
95 macros = [('MODULE_NAME', '"sqlite3"')]
96 sqlite_srcs = [
97 '_sqlite/cache.c',
98 '_sqlite/connection.c',
99 '_sqlite/cursor.c',
100 '_sqlite/microprotocols.c',
101 '_sqlite/module.c',
102 '_sqlite/prepare_protocol.c',
103 '_sqlite/row.c',
104 '_sqlite/statement.c',
105 '_sqlite/util.c']
106
107 try:
108     import ctypes
109     ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
110 except AttributeError:
111     macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
112
113 setup(name = "sqlite3",
114       description = "SQLite 3 extension to Python",
115
116       ext_modules = [Extension('_sqlite3', sqlite_srcs,
117                                include_dirs = inc_dirs,
118                                libraries = libs,
119                                library_dirs = lib_dirs,
120                                runtime_library_dirs = lib_dirs,
121                                define_macros = macros)]
122       )
123
124
125 [FILE:1422:files/setup3.py]
126 #!/usr/bin/env python
127 # To use:
128 #       python setup.py install
129 #
130
131 __version__ = "$FreeBSD: head/databases/py-sqlite3/files/setup3.py 417946 2016-07-03 00:17:29Z wen $"
132
133 try:
134     import distutils
135     from distutils import sysconfig
136     from distutils.command.install import install
137     from distutils.core import setup, Extension
138 except:
139     raise SystemExit("Distutils problem")
140
141 install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]]
142
143 prefix = sysconfig.PREFIX
144 inc_dirs = [prefix + "/include", "Modules/_sqlite"]
145 lib_dirs = [prefix + "/lib"]
146 libs = ["sqlite3"]
147 macros = [('MODULE_NAME', '"sqlite3"')]
148 sqlite_srcs = [
149 '_sqlite/cache.c',
150 '_sqlite/connection.c',
151 '_sqlite/cursor.c',
152 '_sqlite/microprotocols.c',
153 '_sqlite/module.c',
154 '_sqlite/prepare_protocol.c',
155 '_sqlite/row.c',
156 '_sqlite/statement.c',
157 '_sqlite/util.c']
158
159 try:
160     import ctypes
161     ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
162 except AttributeError:
163     macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
164
165 setup(name = "sqlite3",
166       description = "SQLite 3 extension to Python",
167
168       ext_modules = [Extension('_sqlite3', sqlite_srcs,
169                                include_dirs = inc_dirs,
170                                libraries = libs,
171                                library_dirs = lib_dirs,
172                                runtime_library_dirs = lib_dirs,
173                                define_macros = macros)]
174       )
175