[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / py-couchdb

File: [cvs.NetBSD.org] / pkgsrc / databases / py-couchdb / Attic / Makefile (download)

Revision 1.10, Tue Jul 3 05:03:06 2018 UTC (5 years, 8 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.9: +2 -2 lines

extend PYTHON_VERSIONS_ for Python 3.7

# $NetBSD: Makefile,v 1.10 2018/07/03 05:03:06 adam Exp $

DISTNAME=	CouchDB-0.9
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES=	databases python
MASTER_SITES=	${MASTER_SITE_PYPI:=C/CouchDB/}

MAINTAINER=	kamelderouiche@yahoo.com
HOMEPAGE=	https://github.com/djc/couchdb-python
COMMENT=	Couchdb python library
LICENSE=	modified-bsd

DEPENDS+=	${PYPKGPREFIX}-simplejson>=2.0.9:../../converters/py-simplejson
DEPENDS+=	${PYPKGPREFIX}-httplib2>=0.5.0:../../www/py-httplib2

PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37

USE_LANGUAGES=	# none

INSTALLATION_DIRS+=	share/doc/py-couchdb

REPLACE_PYTHON+=	couchdb/http.py couchdb/json.py
REPLACE_PYTHON+=	couchdb/tests/couch_tests.py couchdb/tools/dump.py
REPLACE_PYTHON+=	couchdb/tools/load.py couchdb/tools/replicate.py
REPLACE_PYTHON+=	couchdb/tools/replication_helper.py
REPLACE_PYTHON+=	couchdb/tools/replication_helper_test.py
REPLACE_PYTHON+=	couchdb/view.py
PY_PATCHPLIST=		yes

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/*.rst \
		${DESTDIR}${PREFIX}/share/doc/py-couchdb
	${MV} ${DESTDIR}${PREFIX}/bin/couchdb-dump \
		${DESTDIR}${PREFIX}/bin/couchdb-dump${PYVERSSUFFIX} || ${TRUE}
	${MV} ${DESTDIR}${PREFIX}/bin/couchdb-load \
		${DESTDIR}${PREFIX}/bin/couchdb-load${PYVERSSUFFIX} || ${TRUE}
	${MV} ${DESTDIR}${PREFIX}/bin/couchdb-replicate \
		${DESTDIR}${PREFIX}/bin/couchdb-replicate${PYVERSSUFFIX} || ${TRUE}
	${MV} ${DESTDIR}${PREFIX}/bin/couchpy \
		${DESTDIR}${PREFIX}/bin/couchpy${PYVERSSUFFIX} || ${TRUE}

.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"