mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
e04086f95a
Approved by: portmgr@
40 lines
1.4 KiB
Makefile
40 lines
1.4 KiB
Makefile
# Created by: Pierre-Emmanuel Andre
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pgloader
|
|
PORTVERSION= 2.3.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/1814/
|
|
|
|
MAINTAINER= pea@raveland.org
|
|
COMMENT= Import CSV data and Large Object to PostgreSQL
|
|
|
|
NO_BUILD= yes
|
|
USE_PYTHON= yes
|
|
|
|
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 ${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} ${STAGEDIR}${EXAMPLESDIR}
|
|
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
${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>
|