Add user-destdir installation support.

This commit is contained in:
obache 2011-03-11 12:02:50 +00:00
parent 47ea826cdc
commit 707a1071f6

View file

@ -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"