2012-10-17 16:22:46 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2012/10/17 20:22:46 pea Exp $
|
2008-04-14 11:32:46 -04:00
|
|
|
|
|
|
|
COMMENT= PostgreSQL tools from Skype
|
|
|
|
|
2012-10-17 16:22:46 -04:00
|
|
|
MODPY_EGG_VERSION= 3.1.1
|
2008-06-05 07:26:32 -04:00
|
|
|
DISTNAME= skytools-${MODPY_EGG_VERSION}
|
2008-04-14 11:32:46 -04:00
|
|
|
|
|
|
|
CATEGORIES= databases
|
|
|
|
|
|
|
|
HOMEPAGE= http://pgfoundry.org/projects/skytools
|
|
|
|
|
2009-04-10 08:00:13 -04:00
|
|
|
MAINTAINER= Pierre-Emmanuel Andre <pea@openbsd.org>
|
2008-04-14 11:32:46 -04:00
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2011-11-04 04:16:23 -04:00
|
|
|
WANTLIB= c ${MODPY_WANTLIB}
|
2008-04-14 11:32:46 -04:00
|
|
|
|
2012-10-17 16:22:46 -04:00
|
|
|
MASTER_SITES= https://github.com/downloads/markokr/skytools/
|
2008-04-14 11:32:46 -04:00
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
BUILD_DEPENDS= databases/postgresql,-server
|
2008-10-17 06:04:32 -04:00
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
RUN_DEPENDS= databases/py-psycopg2
|
2008-04-14 11:32:46 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
USE_GMAKE= Yes
|
2010-10-18 13:06:05 -04:00
|
|
|
USE_GROFF = Yes
|
2008-04-14 11:32:46 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2009-04-10 08:00:13 -04:00
|
|
|
CONFIGURE_ARGS= --with-python=${MODPY_BIN}
|
2008-04-14 11:32:46 -04:00
|
|
|
|
|
|
|
BINFILES= bulk_loader.py cube_dispatcher.py londiste.py \
|
|
|
|
pgqadm.py queue_mover.py queue_splitter.py \
|
|
|
|
scriptmgr.py skytools_upgrade.py table_dispatcher.py \
|
|
|
|
walmgr.py
|
|
|
|
|
|
|
|
pre-configure:
|
2008-10-17 06:04:32 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/doc/Makefile
|
2008-04-14 11:32:46 -04:00
|
|
|
@find ${WRKSRC} -name '*.py' \
|
|
|
|
-exec perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},' {} \;
|
|
|
|
@perl -pi -e 's,share/doc,share/examples,' ${WRKSRC}/setup.py
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|