blob: ce7c8af60beae9ceb5f83869f9c7bf45d841d183 (
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
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.2 2012/10/03 23:40:36 cheusov Exp $
#
DISTNAME= empy-3.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
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
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= bin share/doc
REPLACE_PYTHON+= em.py
USE_TOOLS+= pax
PYDISTUTILSPKG= # yes
PLIST_SUBST+= PYVERSSUFFIX="${PYVERSSUFFIX}"
PYTHON_SELF_CONFLICT= yes
# 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"
|