summaryrefslogtreecommitdiff
path: root/devel/eric3
diff options
context:
space:
mode:
authorobache <obache>2011-03-11 12:02:50 +0000
committerobache <obache>2011-03-11 12:02:50 +0000
commit727ffb452124237d334e80d93ee47dbc8a61c088 (patch)
treec91f6be3f31bcecc6480114c5ddfed06adf00182 /devel/eric3
parent7402118819c5cfbc068165b88a25dc003f1f46f8 (diff)
downloadpkgsrc-727ffb452124237d334e80d93ee47dbc8a61c088.tar.gz
Add user-destdir installation support.
Diffstat (limited to 'devel/eric3')
-rw-r--r--devel/eric3/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/devel/eric3/Makefile b/devel/eric3/Makefile
index 2d526a52829..f6b7844f96d 100644
--- a/devel/eric3/Makefile
+++ b/devel/eric3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2010/02/10 19:17:35 joerg Exp $
+# $NetBSD: Makefile,v 1.22 2011/03/11 12:02:50 obache Exp $
#
DISTNAME= eric-3.8.1
@@ -13,18 +13,26 @@ COMMENT= Python IDE
DEPENDS+= ${PYPKGPREFIX}-qt3-modules>=3.11:../../x11/py-qt3-modules
DEPENDS+= ${PYPKGPREFIX}-qt3-qscintilla>=3.11:../../x11/py-qt3-qscintilla
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_BUILD= yes
USE_LANGUAGES=
PY_PATCHPLIST= yes
+.include "../../mk/bsd.prefs.mk"
+
CONFIGURE_ARGS+= -b ${PREFIX:Q}/bin
CONFIGURE_ARGS+= -d ${PREFIX:Q}/${PYSITELIB:Q}
+.if ${_USE_DESTDIR} != "no"
+CONFIGURE_ARGS+= -i ${DESTDIR:Q}
+.endif
do-install:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} install.py ${CONFIGURE_ARGS})
- ${PYTHONBIN} -c "import sitecustomize"
+ (cd ${DESTDIR}${PREFIX}/${PYSITELIB} && \
+ ${PYTHONBIN} -c "import py_compile; py_compile.compile('sitecustomize.py')")
.include "../../lang/python/extension.mk"
.include "../../textproc/py-xml/buildlink3.mk"