aboutsummaryrefslogtreecommitdiff
path: root/databases/pgloader/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-06-03 08:38:16 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-06-03 08:38:16 +0000
commit6523559c07fd71e00d8231fa929b702466719476 (patch)
tree9b753255a84afda50e3fbd3ed27feea662c9ac66 /databases/pgloader/Makefile
parent02236a7b9970c8f7d0683499f65b2a521fbb547b (diff)
downloadports-6523559c07fd71e00d8231fa929b702466719476.tar.gz
ports-6523559c07fd71e00d8231fa929b702466719476.zip
Notes
Diffstat (limited to 'databases/pgloader/Makefile')
-rw-r--r--databases/pgloader/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/databases/pgloader/Makefile b/databases/pgloader/Makefile
new file mode 100644
index 000000000000..6d866320d565
--- /dev/null
+++ b/databases/pgloader/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: pgloader
+# Date created: 2008-06-02
+# Whom: Pierre-Emmanuel Andre
+#
+# $FreeBSD$
+#
+
+PORTNAME= pgloader
+PORTVERSION= 2.3.0
+CATEGORIES= databases
+MASTER_SITES= http://pgfoundry.org/frs/download.php/1679/
+
+MAINTAINER= pea@raveland.org
+COMMENT= Import CSV data and Large Object to PostgreSQL
+
+MAN1= pgloader.1
+
+NO_BUILD= yes
+USE_PYTHON= 2.4+
+
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's,/usr/share/python-support,${PYTHON_SITELIBDIR},' ${WRKSRC}/pgloader/options.py
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/pgloader.py ${PREFIX}/bin/pgloader
+ ${INSTALL_MAN} ${WRKSRC}/pgloader.1 ${MAN1PREFIX}/man/man1
+ ${MKDIR} ${PYTHON_SITELIBDIR}/pgloader
+ @cd ${WRKSRC}/pgloader && ${COPYTREE_SHARE} \* ${PYTHON_SITELIBDIR}/pgloader/
+ ${MKDIR} ${PYTHON_SITELIBDIR}/pgloader/reformat
+ @cd ${WRKSRC}/reformat && ${COPYTREE_SHARE} \* ${PYTHON_SITELIBDIR}/pgloader/reformat/
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}
+ @cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+.endif
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/BUGS.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/TODO.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/pgloader.1.txt ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>