diff options
author | nectar <nectar@FreeBSD.org> | 1998-07-06 17:45:35 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 1998-07-06 17:45:35 +0000 |
commit | 5e46e02cc62133c7da830fd05120ac68848c83ad (patch) | |
tree | a50630aadbed9bc6f0fb1be496440ec96ffbc655 /databases/py-PyGreSQL | |
parent | 008fd8328177d742a1598eb93696e82e96ef5561 (diff) | |
download | FreeBSD-ports-5e46e02cc62133c7da830fd05120ac68848c83ad.zip FreeBSD-ports-5e46e02cc62133c7da830fd05120ac68848c83ad.tar.gz |
Just moved from category devel.
Diffstat (limited to 'databases/py-PyGreSQL')
-rw-r--r-- | databases/py-PyGreSQL/Makefile | 69 | ||||
-rw-r--r-- | databases/py-PyGreSQL/distinfo | 1 | ||||
-rw-r--r-- | databases/py-PyGreSQL/pkg-comment | 1 | ||||
-rw-r--r-- | databases/py-PyGreSQL/pkg-descr | 7 | ||||
-rw-r--r-- | databases/py-PyGreSQL/pkg-plist | 6 |
5 files changed, 84 insertions, 0 deletions
diff --git a/databases/py-PyGreSQL/Makefile b/databases/py-PyGreSQL/Makefile new file mode 100644 index 0000000..db5d979 --- /dev/null +++ b/databases/py-PyGreSQL/Makefile @@ -0,0 +1,69 @@ +# Ports collection Makefile for: PyGreSQL +# Version required: 2.1 +# Date created: 6/25/1998 +# Whom: n@nectar.com +# +# $Id: Makefile,v 1.1.1.1 1998/07/04 22:29:17 nectar Exp $ +# + +DISTNAME= PyGreSQL-2.1 +PKGNAME= py-PyGreSQL-2.1 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.druid.net/pub/distrib/ +EXTRACT_SUFX= .tgz + +MAINTAINER= n@nectar.com + +BUILD_DEPENDS= python:${PORTSDIR}/lang/python +RUN_DEPENDS= python:${PORTSDIR}/lang/python +LIB_DEPENDS= pq\\.1\\.:${PORTSDIR}/databases/postgresql + +WRKSRC= ${WRKDIR} +HAS_CONFIGURE= YES +GNU_CONFIGURE= YES + +PY_PREFIX= python -c "import sys; print sys.prefix" +PY_EXEC_PREFIX= python -c "import sys; print sys.exec_prefix" +PY_SITE_PYTHON= python -c "import sys; import string; print (filter(lambda a: string.find(a, 'site-python') >= 0, sys.path) or [''])[0]" + +CONFIGURE_ENV= LDFLAGS="-L${PREFIX}/lib/python1.5/config -L${PREFIX}/pgsql/lib" \ + CPPFLAGS="-I${PREFIX}/include/python1.5 -I${PREFIX}/pgsql/include" + +CHOWN?= chown +CHMOD?= chmod + +do-configure: +.if defined(BATCH) + @(if test `${PY_SITE_PYTHON}` == ""; then \ + ${MKDIR} ${PREFIX}/lib/site-python; \ + ${CHOWN} ${BINOWN}.${BINGRP} ${PREFIX}/lib/site-python; \ + ${CHMOD} ${BINMODE} ${PREFIX}/lib/site-python; \ + fi) +.else + @(if test `${PY_SITE_PYTHON}` == ""; then \ + ${ECHO} "You must create a site-python directory in order to"; \ + ${ECHO} "build and install this port. On most systems, creating"; \ + ${ECHO} "a directory called ${PREFIX}/lib/site-python will do."; \ + exit 1; \ + fi) +.endif +.for f in Makefile Makefile.in configure.in + ${CP} ${SCRIPTDIR}/${f} ${WRKSRC} +.endfor + ${INSTALL} -c -m 0555 ${SCRIPTDIR}/install-sh ${WRKSRC} + ${INSTALL} -c -m 0555 ${SCRIPTDIR}/configure.local ${WRKSRC}/configure + @(cd ${WRKSRC} && CC="${CC}" CXX="${CXX}" ac_cv_path_CC="${CC}" \ + CFLAGS="${CFLAGS}" \ + INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \ + INSTALL_DATA="${INSTALL_DATA}" \ + INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ + PY_EXEC_PREFIX=`${PY_EXEC_PREFIX}` \ + PY_SITE_PYTHON=`${PY_SITE_PYTHON}` \ + ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}) + + +post-install: + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/README.PyGreSQL + +.include <bsd.port.mk> diff --git a/databases/py-PyGreSQL/distinfo b/databases/py-PyGreSQL/distinfo new file mode 100644 index 0000000..3c1b5fc --- /dev/null +++ b/databases/py-PyGreSQL/distinfo @@ -0,0 +1 @@ +MD5 (PyGreSQL-2.1.tgz) = 132439355a273423b70f5daf852edb1f diff --git a/databases/py-PyGreSQL/pkg-comment b/databases/py-PyGreSQL/pkg-comment new file mode 100644 index 0000000..c526e5c --- /dev/null +++ b/databases/py-PyGreSQL/pkg-comment @@ -0,0 +1 @@ +A Python interface for PostgreSQL database. diff --git a/databases/py-PyGreSQL/pkg-descr b/databases/py-PyGreSQL/pkg-descr new file mode 100644 index 0000000..db9ae7d --- /dev/null +++ b/databases/py-PyGreSQL/pkg-descr @@ -0,0 +1,7 @@ +From the README: + +PyGreSQL is a python module that interfaces to a PostgreSQL database. It +embeds the PostgreSQL query library to allow easy use of the powerful +PostgreSQL features from a Python script. + +Jacques Vidrine <n@nectar.com> diff --git a/databases/py-PyGreSQL/pkg-plist b/databases/py-PyGreSQL/pkg-plist new file mode 100644 index 0000000..f056b63 --- /dev/null +++ b/databases/py-PyGreSQL/pkg-plist @@ -0,0 +1,6 @@ +lib/site-python/pgmodule.so +lib/site-python/pgext.py +lib/site-python/pgext.pyc +lib/site-python/pgtools.py +lib/site-python/pgtools.pyc +share/doc/README.PyGreSQL |