Add user-destdir installation support.
This commit is contained in:
parent
47ea826cdc
commit
707a1071f6
1 changed files with 10 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue