summaryrefslogtreecommitdiff
path: root/devel/py-expect/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-expect/Makefile')
-rw-r--r--devel/py-expect/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/devel/py-expect/Makefile b/devel/py-expect/Makefile
index 3988b7aa359..edac13a5d0f 100644
--- a/devel/py-expect/Makefile
+++ b/devel/py-expect/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $
+# $NetBSD: Makefile,v 1.2 2002/01/19 15:03:35 drochner Exp $
#
DISTNAME= ExpectPy-1.9b1
-PKGNAME= py-expect-1.9b1
+PKGNAME= ${PYPKGPREFIX}-expect-1.9b1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pub/sourceforge/expectpy/}
@@ -10,7 +10,6 @@ MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://www.sourceforge.net/projects/expectpy/
COMMENT= Expect module for Python
-DEPENDS+= python>=2.0:../../lang/python
DEPENDS+= tcl-expect>=5.32.1:../../lang/tcl-expect
USE_LIBTOOL= yes
@@ -18,14 +17,19 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-python=${LOCALBASE} \
--with-expect=${LOCALBASE} \
--with-tcl --enable-shared
+CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
INSTALL_TARGET= installshared
+PY_PATCHPLIST= yes
+PLIST_SUBST+= PYLIB=${PYLIB} PYPKGPREFIX=${PYPKGPREFIX}
-pre-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/python/py-expect
- ${INSTALL_DATA} ${WRKSRC}/examples/ask.py ${PREFIX}/share/examples/python/py-expect
- ${INSTALL_DATA} ${WRKSRC}/examples/glob.py ${PREFIX}/share/examples/python/py-expect
- ${INSTALL_DATA} ${WRKSRC}/examples/ping.py ${PREFIX}/share/examples/python/py-expect
- ${INSTALL_DATA} ${WRKSRC}/examples/telnet.py ${PREFIX}/share/examples/python/py-expect
- ${INSTALL_DATA} ${WRKSRC}/examples/xping.py ${PREFIX}/share/examples/python/py-expect
+EXAMPLESDIR= ${PREFIX}/share/examples/${PYPKGPREFIX}-expect
+EXAMPLESFILES= ask.py glob.py ping.py telnet.py xping.py
+post-install:
+ ${INSTALL_DATA_DIR} ${EXAMPLESDIR}
+.for f in ${EXAMPLESFILES}
+ ${INSTALL_DATA} ${WRKSRC}/examples/$f ${EXAMPLESDIR}
+.endfor
+
+.include "../../lang/python/extension.buildlink.mk"
.include "../../mk/bsd.pkg.mk"