summaryrefslogtreecommitdiff
path: root/misc/py-carddav/Makefile
blob: db739d843f4d8cedf123c70eaac7c455205fd235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $NetBSD: Makefile,v 1.4 2012/03/01 12:30:11 wiz Exp $
#

DISTNAME=	pycarddav0.3.3
PKGNAME=	${DISTNAME:S/pycarddav/${PYPKGPREFIX}-carddav-/}
CATEGORIES=	misc
MASTER_SITES=	http://pycarddav.lostpackets.de/download/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://pycarddav.lostpackets.de/
COMMENT=	Simple way of accessing a CardDAV resource
LICENSE=	beer-ware

PKG_DESTDIR_SUPPORT=	user-destdir

PYTHON_VERSIONS_ACCEPTED=	27 26 25

DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
DEPENDS+=	${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
DEPENDS+=	${PYPKGPREFIX}-vobject-[0-9]*:../../textproc/py-vobject
DEPENDS+=	${PYPKGPREFIX}-curl-[0-9]*:../../www/py-curl

USE_LANGUAGES=	# none

SUBST_CLASSES=		env
SUBST_MESSAGE.env=	Fixing path to python interpreter.
SUBST_FILES.env=	pc_query pycardsyncer
SUBST_SED.env+=		-e "s,/usr/bin/env python,${PYTHONBIN},"
SUBST_STAGE.env=	pre-build

INSTALLATION_DIRS= bin share/doc/py-carddav share/examples/py-carddav

do-build:

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/pc_query ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/pycardsyncer ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README* ${DESTDIR}${PREFIX}/share/doc/py-carddav
	${INSTALL_DATA} ${WRKSRC}/pycard.conf.sample ${DESTDIR}${PREFIX}/share/examples/py-carddav

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