# Created by: Bernhard Froehlich <decke@FreeBSD.org>
# $FreeBSD: tags/RELEASE_12_1_0/print/cloudprint/Makefile 498530 2019-04-10 06:18:31Z antoine $

PORTNAME=	cloudprint
PORTVERSION=	0.14.0.20170128
PORTREVISION=	1
CATEGORIES=	print

MAINTAINER=	decke@FreeBSD.org
COMMENT=	Google Cloud Print proxy for local CUPS printers

LICENSE=	GPLv3

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycups>=0:print/py-pycups@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}configargparse>=0.9.3:devel/py-configargparse@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}daemon>0:devel/py-daemon@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}requests>=2.7.0:www/py-requests@${PY_FLAVOR}

USE_GITHUB=	yes
GH_ACCOUNT=	armooo
GH_TAGNAME=	108b9f0

NO_ARCH=	yes
USES=		python
USE_PYTHON=	autoplist concurrent distutils optsuffix
USE_RC_SUBR=	${PORTNAME}

USERS=		cups
GROUPS=		cups

SUB_LIST+=	PYTHON_CMD="${PYTHON_CMD}" \
		CPUSER="${USERS}" \
		CPGROUP="${GROUPS}"

.include <bsd.port.mk>
