diff options
author | obache <obache@pkgsrc.org> | 2011-03-11 12:02:50 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-03-11 12:02:50 +0000 |
commit | 462f4e41b16d594cd6a61054bf5563aadfa5efc6 (patch) | |
tree | c91f6be3f31bcecc6480114c5ddfed06adf00182 | |
parent | ece04c7173e1bd95812c009a61f28dc9631c1b3e (diff) | |
download | pkgsrc-462f4e41b16d594cd6a61054bf5563aadfa5efc6.tar.gz |
Add user-destdir installation support.
-rw-r--r-- | devel/eric3/Makefile | 12 |
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" |