[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-empy

File: [cvs.NetBSD.org] / pkgsrc / textproc / py-empy / Makefile (download)

Revision 1.12, Tue Jul 3 05:03:36 2018 UTC (5 years, 8 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.11: +2 -2 lines

extend PYTHON_VERSIONS_ for Python 3.7

# $NetBSD: Makefile,v 1.12 2018/07/03 05:03:36 adam Exp $

DISTNAME=	empy-3.3
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	textproc python
MASTER_SITES=	http://www.alcyone.com/software/empy/

MAINTAINER=	anthony.mallet@laas.fr
HOMEPAGE=	http://www.alcyone.com/software/empy/
COMMENT=	Powerful and robust templating system for Python
LICENSE=	gnu-lgpl-v2.1

INSTALLATION_DIRS=	bin share/doc/empy
REPLACE_PYTHON+=        em.py

USE_TOOLS+=		pax
PYDISTUTILSPKG=		# yes

PYTHON_SELF_CONFLICT=	yes
PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37

# Fix html path in documentation
SUBST_CLASSES+=		doc
SUBST_STAGE.doc=	post-configure
SUBST_FILES.doc=	doc/index.html
SUBST_FILES.doc+=	doc/home/max/projects/empy/doc/em.html
SUBST_SED.doc=		-e "s|home/max/projects/empy/doc/||g"
SUBST_SED.doc+=		-e "s|../../../../../||g"
SUBST_MESSAGE.doc=	Fixing paths in documentation

post-install: install-wrapper install-doc

.PHONY: install-wrapper
install-wrapper:
	${INSTALL_SCRIPT} ${WRKSRC}/em.py \
		${DESTDIR}${PREFIX}/bin/empy-${PYVERSSUFFIX}
	cd ${DESTDIR}${PREFIX}/bin && ${LN} -sf empy-${PYVERSSUFFIX} empy

.PHONY: install-doc
install-doc:
	cd ${WRKSRC}/doc/home/max/projects/empy/doc/ && \
	${PAX} -rw . ${DESTDIR}${PREFIX}/share/doc/empy
	${CP} ${WRKSRC}/doc/index.html ${DESTDIR}${PREFIX}/share/doc/empy/

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