mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Firebird RDBMS bindings for Python.
fdb package is a set of Firebird RDBMS bindings for python. It works on Python 2.6+ and Python 3.x WWW: http://www.firebirdsql.org/en/python-devel-status/ PR: 172455 Submitted by: Jose Jachuf <jjachuf at gmail dot com> Feature safe: yes
This commit is contained in:
parent
d229ac58bf
commit
f0f670aec0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305742
@ -691,6 +691,7 @@
|
||||
SUBDIR += py-cql
|
||||
SUBDIR += py-dbf
|
||||
SUBDIR += py-dbutils
|
||||
SUBDIR += py-fdb
|
||||
SUBDIR += py-firebirdsql
|
||||
SUBDIR += py-flask-sqlalchemy
|
||||
SUBDIR += py-forgetsql
|
||||
|
33
databases/py-fdb/Makefile
Normal file
33
databases/py-fdb/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# Created by: Jose Jachuf <jjachuf@gmail.com>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= fdb
|
||||
PORTVERSION= 0.9.1
|
||||
CATEGORIES= databases python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= jjachuf@gmail.com
|
||||
COMMENT= Firebird RDBMS bindings for Python
|
||||
|
||||
LICENSE= BSD
|
||||
|
||||
LIB_DEPENDS= fbclient:${PORTSDIR}/databases/firebird25-client
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS=easy_install
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PYTHON_REL} >= 320
|
||||
.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} "Please make sure that your firebird-client installation"
|
||||
@${ECHO_MSG} "is built with command make -DPACKAGE_BUILDING."
|
||||
@${ECHO_MSG} "The build of py-fdb will fail otherwise."
|
||||
@${ECHO_MSG}
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
databases/py-fdb/distinfo
Normal file
2
databases/py-fdb/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (fdb-0.9.1.tar.gz) = 01dffb6a4638d980f2cbc7c785c48435919d88361b3472c1c9758ae8145daf65
|
||||
SIZE (fdb-0.9.1.tar.gz) = 468175
|
14
databases/py-fdb/files/py3k-fix-pkg-plist.inc
Normal file
14
databases/py-fdb/files/py3k-fix-pkg-plist.inc
Normal file
@ -0,0 +1,14 @@
|
||||
# When Python version is 3.2+ we rewrite all the filenames
|
||||
# of TMPPLIST that end with .py[co], so that they conform
|
||||
# to PEP 3147 (see http://www.python.org/dev/peps/pep-3147/)
|
||||
PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())'
|
||||
add-plist-post:
|
||||
@${AWK} '\
|
||||
/\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \
|
||||
/^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
|
||||
{print} \
|
||||
END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \
|
||||
' \
|
||||
pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \
|
||||
${TMPPLIST} > ${TMPPLIST}.pyc_tmp
|
||||
@${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}
|
5
databases/py-fdb/pkg-descr
Normal file
5
databases/py-fdb/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Firebird RDBMS bindings for Python.
|
||||
fdb package is a set of Firebird RDBMS bindings for python.
|
||||
It works on Python 2.6+ and Python 3.x
|
||||
|
||||
WWW: http://www.firebirdsql.org/en/python-devel-status/
|
21
databases/py-fdb/pkg-plist
Normal file
21
databases/py-fdb/pkg-plist
Normal file
@ -0,0 +1,21 @@
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/__init__.pyo
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/fbcore.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/fbcore.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/fbcore.pyo
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/ibase.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/ibase.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/ibase.pyo
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/services.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/services.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb/services.pyo
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/fdb
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
|
Loading…
Reference in New Issue
Block a user