36ce27c713
- Add to the man page the versioned suffix (previously it was not added leading to an accidental PLIST mismatch and installation failure) - ALTERNATIVES/pkg_alternatives(8) generate wrappers for executables/scripts, remove the man page entry in it
31 lines
935 B
Makefile
31 lines
935 B
Makefile
# $NetBSD: Makefile,v 1.3 2019/01/27 10:37:33 leot Exp $
|
|
|
|
DISTNAME= asciinema-2.0.2
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= misc 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
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
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.py
|
|
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/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|