blob: 8886e01c1a9d36d25056adc86a44b33b3bf0f6d8 (
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
|
# $NetBSD: Makefile,v 1.4 2015/04/11 03:12:51 rodent Exp $
DISTNAME= qrcode-5.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= graphics
MASTER_SITES= https://pypi.python.org/packages/source/q/qrcode/
MAINTAINER= rodent@NetBSD.org
HOMEPAGE= ${MASTER_SITE_GITHUB:=lincolnloop/python-qrcode}
COMMENT= Python QR Code image generator
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml # XXX for py26
DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
USE_LANGUAGES= # none
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
REPLACE_PYTHON+= qrcode/console_scripts.py
SUBST_CLASSES+= pkgmandir
SUBST_FILES.pkgmandir= setup.py
SUBST_MESSAGE.pkgmandir= Fixing PKGMANDIR path.
SUBST_SED.pkgmandir= -e "s|share/man|${PKGMANDIR}|1"
SUBST_STAGE.pkgmandir= post-patch
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/qr \
${DESTDIR}${PREFIX}/bin/qr${PYVERSSUFFIX}
${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/qr.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/qr${PYVERSSUFFIX}.1
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|