blob: 8f0c46ac0fe6e2dd39e2c4cbf058461faa7aca88 (
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
|
# $NetBSD: Makefile,v 1.7 2022/05/10 17:22:50 adam Exp $
DISTNAME= asciinema-2.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= misc multimedia python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/asciinema/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://asciinema.org/
COMMENT= Terminal session recorder
LICENSE= gnu-gpl-v3
BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel>0:../../devel/py-wheel
USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
PYTHON_VERSIONS_INCOMPATIBLE= 27
SUBST_CLASSES+= fix-path
SUBST_STAGE.fix-path= pre-configure
SUBST_MESSAGE.fix-path= Fixing paths.
SUBST_FILES.fix-path= setup.cfg
SUBST_SED.fix-path= -e 's,share/doc/asciinema,share/doc/asciinema-${PYVERSSUFFIX},g'
SUBST_SED.fix-path+= -e 's,share/man/man1,${PKGMANDIR}/man1,g'
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} asciinema asciinema-${PYVERSSUFFIX} || ${TRUE}
cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && \
${MV} asciinema.1 asciinema-${PYVERSSUFFIX}.1 || ${TRUE}
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
|