aboutsummaryrefslogtreecommitdiff
path: root/databases/pgloader
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-05-19 12:24:39 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-05-19 12:24:39 +0000
commite04086f95a5df47df2b8e18a76aec1a05ce68f00 (patch)
tree6873c58a053cd994cc331e538522846009026c5e /databases/pgloader
parent4591feafd4f964edafea9dfaf1f8df6e70f849fb (diff)
downloadports-e04086f95a5df47df2b8e18a76aec1a05ce68f00.tar.gz
ports-e04086f95a5df47df2b8e18a76aec1a05ce68f00.zip
Notes
Diffstat (limited to 'databases/pgloader')
-rw-r--r--databases/pgloader/Makefile27
-rw-r--r--databases/pgloader/pkg-plist13
2 files changed, 19 insertions, 21 deletions
diff --git a/databases/pgloader/Makefile b/databases/pgloader/Makefile
index 511bb6d005b6..df806b5897be 100644
--- a/databases/pgloader/Makefile
+++ b/databases/pgloader/Makefile
@@ -10,33 +10,30 @@ MASTER_SITES= http://pgfoundry.org/frs/download.php/1814/
MAINTAINER= pea@raveland.org
COMMENT= Import CSV data and Large Object to PostgreSQL
-MAN1= pgloader.1
-
NO_BUILD= yes
USE_PYTHON= yes
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
-NO_STAGE= yes
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/
+ ${INSTALL_SCRIPT} ${WRKSRC}/pgloader.py ${STAGEDIR}${PREFIX}/bin/pgloader
+ ${INSTALL_MAN} ${WRKSRC}/pgloader.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+ ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/pgloader
+ @cd ${WRKSRC}/pgloader && ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHON_SITELIBDIR}/pgloader/
+ ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/pgloader/reformat
+ @cd ${WRKSRC}/reformat && ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHON_SITELIBDIR}/pgloader/reformat/
.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
- @cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${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}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/BUGS.txt ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/TODO.txt ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/pgloader.1.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/databases/pgloader/pkg-plist b/databases/pgloader/pkg-plist
index 962ff5eff7b9..ab689cee6a52 100644
--- a/databases/pgloader/pkg-plist
+++ b/databases/pgloader/pkg-plist
@@ -2,24 +2,24 @@ bin/pgloader
%%PYTHON_SITELIBDIR%%/pgloader/__init__.py
%%PYTHON_SITELIBDIR%%/pgloader/csvreader.py
%%PYTHON_SITELIBDIR%%/pgloader/db.py
+%%PYTHON_SITELIBDIR%%/pgloader/fixedreader.py
%%PYTHON_SITELIBDIR%%/pgloader/lo.py
%%PYTHON_SITELIBDIR%%/pgloader/logger.py
%%PYTHON_SITELIBDIR%%/pgloader/options.py
%%PYTHON_SITELIBDIR%%/pgloader/options.py.bak
%%PYTHON_SITELIBDIR%%/pgloader/pgloader.py
%%PYTHON_SITELIBDIR%%/pgloader/reader.py
-%%PYTHON_SITELIBDIR%%/pgloader/textreader.py
-%%PYTHON_SITELIBDIR%%/pgloader/tools.py
-%%PYTHON_SITELIBDIR%%/pgloader/fixedreader.py
%%PYTHON_SITELIBDIR%%/pgloader/reformat/README
%%PYTHON_SITELIBDIR%%/pgloader/reformat/__init__.py
%%PYTHON_SITELIBDIR%%/pgloader/reformat/mysql.py
%%PYTHON_SITELIBDIR%%/pgloader/reformat/pgtime.py
+%%PYTHON_SITELIBDIR%%/pgloader/textreader.py
+%%PYTHON_SITELIBDIR%%/pgloader/tools.py
+man/man1/pgloader.1.gz
%%PORTDOCS%%%%DOCSDIR%%/BUGS.txt
%%PORTDOCS%%%%DOCSDIR%%/TODO.txt
%%PORTDOCS%%%%DOCSDIR%%/pgloader.1.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parallel.sections.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/allcols/allcols.data
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/allcols/allcols.sql
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clob/clob.data
@@ -29,11 +29,12 @@ bin/pgloader
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cluttered/cluttered.sql
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/csv/csv.data
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/csv/csv.sql
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fixed/fixed.sql
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fixed/fixed.data
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/errors/errors.data
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/errors/errors.sql
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fixed/fixed.data
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fixed/fixed.sql
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parallel.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parallel.sections.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parallel/parallel.data
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parallel/parallel.sql
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/partial/partial.data