From 462f4e41b16d594cd6a61054bf5563aadfa5efc6 Mon Sep 17 00:00:00 2001 From: obache Date: Fri, 11 Mar 2011 12:02:50 +0000 Subject: Add user-destdir installation support. --- devel/eric3/Makefile | 12 ++++++++++-- 1 file 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" -- cgit v1.2.3