diff options
author | Anders Nordby <anders@FreeBSD.org> | 2004-11-20 17:07:29 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2004-11-20 17:07:29 +0000 |
commit | 7ec0a5a30fafd14a2046f3ee5078feb19a8cd5e9 (patch) | |
tree | fff3b75cee16b303f0d45f4363b489596e4f2810 /databases | |
parent | ccc1551c00efd3c013890bf4c3a63e691a4cbf41 (diff) | |
download | ports-7ec0a5a30fafd14a2046f3ee5078feb19a8cd5e9.tar.gz ports-7ec0a5a30fafd14a2046f3ee5078feb19a8cd5e9.zip |
Notes
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/py-forgetsql/Makefile | 51 | ||||
-rw-r--r-- | databases/py-forgetsql/distinfo | 2 | ||||
-rw-r--r-- | databases/py-forgetsql/files/patch-lib-forgetSQL.py | 8 | ||||
-rw-r--r-- | databases/py-forgetsql/pkg-descr | 6 | ||||
-rw-r--r-- | databases/py-forgetsql/pkg-plist | 8 |
6 files changed, 76 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 95ff4f781efd..2c3f455e5faf 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -273,6 +273,7 @@ SUBDIR += py-bsddb SUBDIR += py-bsddb3 SUBDIR += py-cdb + SUBDIR += py-forgetsql SUBDIR += py-gdbm SUBDIR += py-memcached SUBDIR += py-mssql diff --git a/databases/py-forgetsql/Makefile b/databases/py-forgetsql/Makefile new file mode 100644 index 000000000000..3d36c974e10e --- /dev/null +++ b/databases/py-forgetsql/Makefile @@ -0,0 +1,51 @@ +# Ports collection makefile for: py-forgetsql +# Date created: 20 November 2004 +# Whom: Anders Nordby <anders@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= forgetsql +PORTVERSION= 0.5.1 +CATEGORIES= databases python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= forgetSQL-${PORTVERSION} + +MAINTAINER= anders@FreeBSD.org +COMMENT= Python module for object-oriented access to SQL databases + +.if defined(WITH_POSTGRESQL) +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg +.endif +.if defined(WITH_MYSQL) +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb +.endif + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +DOCS= BUGS README TODO + +post-build: + @cd ${WRKSRC}/lib && ${PYTHON_CMD} -c 'import forgetSQL' + @cd ${WRKSRC}/lib && ${PYTHON_CMD} -O -c 'import forgetSQL' + +post-install: + ${INSTALL_DATA} ${WRKSRC}/lib/forgetSQL.pyc ${PYTHON_SITELIBDIR}/ + ${INSTALL_DATA} ${WRKSRC}/lib/forgetSQL.pyo ${PYTHON_SITELIBDIR}/ +.if !defined(WITH_POSTGRESQL) && !defined(WITH_MYSQL) + @${ECHO} + @${ECHO_MSG} "===> You did not set WITH_MYSQL or WITH_POSTGRESQL. To make this port usable," + @${ECHO_MSG} "===> you should install py-psycopg or py-MySQLdb from ports/databases." + @${ECHO} +.endif +.if !defined(NOPORTDOCS) + ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ +.endfor +.endif + +.include <bsd.port.mk> diff --git a/databases/py-forgetsql/distinfo b/databases/py-forgetsql/distinfo new file mode 100644 index 000000000000..20801349ab07 --- /dev/null +++ b/databases/py-forgetsql/distinfo @@ -0,0 +1,2 @@ +MD5 (forgetSQL-0.5.1.tar.gz) = ea780a55e89f53da1185a336f04f1401 +SIZE (forgetSQL-0.5.1.tar.gz) = 29546 diff --git a/databases/py-forgetsql/files/patch-lib-forgetSQL.py b/databases/py-forgetsql/files/patch-lib-forgetSQL.py new file mode 100644 index 000000000000..963fbb5f2486 --- /dev/null +++ b/databases/py-forgetsql/files/patch-lib-forgetSQL.py @@ -0,0 +1,8 @@ +--- lib/forgetSQL.py.orig Sat Nov 20 16:59:07 2004 ++++ lib/forgetSQL.py Sat Nov 20 16:59:39 2004 +@@ -1,4 +1,5 @@ + #!/usr/bin/env python ++# -*- coding: ISO-8859-1 -*- + + __version__ = "0.5.1" + diff --git a/databases/py-forgetsql/pkg-descr b/databases/py-forgetsql/pkg-descr new file mode 100644 index 000000000000..fce10bfdf17b --- /dev/null +++ b/databases/py-forgetsql/pkg-descr @@ -0,0 +1,6 @@ +forgetSQL is a Python module for accessing SQL databases by creating classes +that maps SQL tables to objects, normally one class pr. SQL table. The idea is +to forget everything about SQL and just worrying about normal classes and +objects. + +WWW: http://soiland.no/software/forgetsql/ diff --git a/databases/py-forgetsql/pkg-plist b/databases/py-forgetsql/pkg-plist new file mode 100644 index 000000000000..2d672fd9bcf2 --- /dev/null +++ b/databases/py-forgetsql/pkg-plist @@ -0,0 +1,8 @@ +bin/forgetsql-generate +%%PYTHON_SITELIBDIR%%/forgetSQL.py +%%PYTHON_SITELIBDIR%%/forgetSQL.pyc +%%PYTHON_SITELIBDIR%%/forgetSQL.pyo +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%@dirrm %%DOCSDIR%% |