Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2012 20:19:06 +0000 (UTC)
From:      Ruslan Mahmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305742 - in head/databases: . py-fdb py-fdb/files
Message-ID:  <201210112019.q9BKJ7mJ079957@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Thu Oct 11 20:19:06 2012
New Revision: 305742
URL: http://svn.freebsd.org/changeset/ports/305742

Log:
  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

Added:
  head/databases/py-fdb/
  head/databases/py-fdb/Makefile   (contents, props changed)
  head/databases/py-fdb/distinfo   (contents, props changed)
  head/databases/py-fdb/files/
  head/databases/py-fdb/files/py3k-fix-pkg-plist.inc   (contents, props changed)
  head/databases/py-fdb/pkg-descr   (contents, props changed)
  head/databases/py-fdb/pkg-plist   (contents, props changed)
Modified:
  head/databases/Makefile

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Thu Oct 11 20:13:18 2012	(r305741)
+++ head/databases/Makefile	Thu Oct 11 20:19:06 2012	(r305742)
@@ -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

Added: head/databases/py-fdb/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-fdb/Makefile	Thu Oct 11 20:19:06 2012	(r305742)
@@ -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>

Added: head/databases/py-fdb/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-fdb/distinfo	Thu Oct 11 20:19:06 2012	(r305742)
@@ -0,0 +1,2 @@
+SHA256 (fdb-0.9.1.tar.gz) = 01dffb6a4638d980f2cbc7c785c48435919d88361b3472c1c9758ae8145daf65
+SIZE (fdb-0.9.1.tar.gz) = 468175

Added: head/databases/py-fdb/files/py3k-fix-pkg-plist.inc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-fdb/files/py3k-fix-pkg-plist.inc	Thu Oct 11 20:19:06 2012	(r305742)
@@ -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}

Added: head/databases/py-fdb/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-fdb/pkg-descr	Thu Oct 11 20:19:06 2012	(r305742)
@@ -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/

Added: head/databases/py-fdb/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-fdb/pkg-plist	Thu Oct 11 20:19:06 2012	(r305742)
@@ -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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210112019.q9BKJ7mJ079957>