1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-sqlite3
5 KEYWORDS= databases python
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/
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
20 OPTIONS_AVAILABLE= PY39 PY310
21 OPTIONS_STANDARD= none
22 VOPTS[py310]= PY39=OFF PY310=ON
23 VOPTS[py39]= PY39=ON PY310=OFF
25 BUILDRUN_DEPENDS= sqlite:single:standard
29 DISTNAME= Python/Modules
33 FPC_EQUIVALENT= databases/py-sqlite3
36 [PY39].USES_ON= python:py39,sutools
38 [PY310].DF_INDEX_ON= 2
39 [PY310].USES_ON= python:py310,sutools
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}
48 post-extract-PY310-ON:
49 ${MV} ${WRKDIR}/Python-3.10.6 ${WRKDIR}/Python
50 ${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
53 ${MV} ${WRKDIR}/Python-3.9.14 ${WRKDIR}/Python
54 ${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
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
68 651304d216c8203fe0adf1a80af472d8e92c3b0e0a7892222ae4d9f3ae4debcf 19750176 Python-3.9.14.tar.xz
69 f795ff87d11d4b0c7c33bc8851b0c28648d8a4583aa2100a98c22b4326b6d3f3 19600672 Python-3.10.6.tar.xz
72 [FILE:1462:files/setup.py]
75 # python setup.py install
78 __version__ = "$FreeBSD: head/databases/py-sqlite3/files/setup.py 417946 2016-07-03 00:17:29Z wen $"
82 from distutils import sysconfig
83 from distutils.command.install import install
84 from distutils.core import setup, Extension
86 raise SystemExit, "Distutils problem"
88 install.sub_commands = filter(lambda (cmd, avl): 'egg' not in cmd,
91 prefix = sysconfig.PREFIX
92 inc_dirs = [prefix + "/include", "Modules/_sqlite"]
93 lib_dirs = [prefix + "/lib"]
95 macros = [('MODULE_NAME', '"sqlite3"')]
98 '_sqlite/connection.c',
100 '_sqlite/microprotocols.c',
102 '_sqlite/prepare_protocol.c',
104 '_sqlite/statement.c',
109 ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
110 except AttributeError:
111 macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
113 setup(name = "sqlite3",
114 description = "SQLite 3 extension to Python",
116 ext_modules = [Extension('_sqlite3', sqlite_srcs,
117 include_dirs = inc_dirs,
119 library_dirs = lib_dirs,
120 runtime_library_dirs = lib_dirs,
121 define_macros = macros)]
125 [FILE:1422:files/setup3.py]
126 #!/usr/bin/env python
128 # python setup.py install
131 __version__ = "$FreeBSD: head/databases/py-sqlite3/files/setup3.py 417946 2016-07-03 00:17:29Z wen $"
135 from distutils import sysconfig
136 from distutils.command.install import install
137 from distutils.core import setup, Extension
139 raise SystemExit("Distutils problem")
141 install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]]
143 prefix = sysconfig.PREFIX
144 inc_dirs = [prefix + "/include", "Modules/_sqlite"]
145 lib_dirs = [prefix + "/lib"]
147 macros = [('MODULE_NAME', '"sqlite3"')]
150 '_sqlite/connection.c',
152 '_sqlite/microprotocols.c',
154 '_sqlite/prepare_protocol.c',
156 '_sqlite/statement.c',
161 ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
162 except AttributeError:
163 macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
165 setup(name = "sqlite3",
166 description = "SQLite 3 extension to Python",
168 ext_modules = [Extension('_sqlite3', sqlite_srcs,
169 include_dirs = inc_dirs,
171 library_dirs = lib_dirs,
172 runtime_library_dirs = lib_dirs,
173 define_macros = macros)]