diff options
author | jwise <jwise@pkgsrc.org> | 2001-03-21 23:36:07 +0000 |
---|---|---|
committer | jwise <jwise@pkgsrc.org> | 2001-03-21 23:36:07 +0000 |
commit | 377592b94d6d3a12d90fa1e6978510e46e3cec3a (patch) | |
tree | 88dad0bd508d0219d57970afb7b0466e95e37987 /devel/py-expect | |
parent | d9a20699a742a067a72145c28f1016a38f3b7d1f (diff) | |
download | pkgsrc-377592b94d6d3a12d90fa1e6978510e46e3cec3a.tar.gz |
Initial import of py-expect-1.9b1, an interface to expect from python.
Diffstat (limited to 'devel/py-expect')
-rw-r--r-- | devel/py-expect/Makefile | 31 | ||||
-rw-r--r-- | devel/py-expect/files/md5 | 3 | ||||
-rw-r--r-- | devel/py-expect/files/patch-sum | 7 | ||||
-rw-r--r-- | devel/py-expect/patches/patch-aa | 12 | ||||
-rw-r--r-- | devel/py-expect/patches/patch-ab | 21 | ||||
-rw-r--r-- | devel/py-expect/patches/patch-ac | 24 | ||||
-rw-r--r-- | devel/py-expect/patches/patch-ad | 42 | ||||
-rw-r--r-- | devel/py-expect/patches/patch-ae | 17 | ||||
-rw-r--r-- | devel/py-expect/pkg/DESCR | 1 | ||||
-rw-r--r-- | devel/py-expect/pkg/PLIST | 8 |
10 files changed, 166 insertions, 0 deletions
diff --git a/devel/py-expect/Makefile b/devel/py-expect/Makefile new file mode 100644 index 00000000000..3988b7aa359 --- /dev/null +++ b/devel/py-expect/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ +# + +DISTNAME= ExpectPy-1.9b1 +PKGNAME= py-expect-1.9b1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pub/sourceforge/expectpy/} + +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 +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-python=${LOCALBASE} \ + --with-expect=${LOCALBASE} \ + --with-tcl --enable-shared +INSTALL_TARGET= installshared + +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 + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-expect/files/md5 b/devel/py-expect/files/md5 new file mode 100644 index 00000000000..0c9f4f0df19 --- /dev/null +++ b/devel/py-expect/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ + +SHA1 (ExpectPy-1.9b1.tar.gz) = f43fcd53901f327dc8acf0650dbfe45b274a8d7d diff --git a/devel/py-expect/files/patch-sum b/devel/py-expect/files/patch-sum new file mode 100644 index 00000000000..f8b0c8a24d5 --- /dev/null +++ b/devel/py-expect/files/patch-sum @@ -0,0 +1,7 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ + +SHA1 (patch-aa) = eff544e7290736bebb81b8391848369d630f7b03 +SHA1 (patch-ab) = 751f56a7a71822dbb93530dd9396bc92f9def05b +SHA1 (patch-ac) = 0ff7162129a84fbc913a8b1240209387b922c2a8 +SHA1 (patch-ad) = 267c2e93f89f786b415c7fa2645913c40541bc38 +SHA1 (patch-ae) = 349abc99878b3df93cf122f57cc996602ac10368 diff --git a/devel/py-expect/patches/patch-aa b/devel/py-expect/patches/patch-aa new file mode 100644 index 00000000000..ead50bfbb04 --- /dev/null +++ b/devel/py-expect/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ +--- expvers.py.orig Wed Mar 21 00:41:18 2001 ++++ expvers.py Wed Mar 21 00:42:04 2001 +@@ -105,7 +105,7 @@ + raise SystemExit, "Cannot find expect interpreter" + del d + basevers, fullvers = get_version(expect_prog) +- libdir = pathjoin(basedir, pathjoin('lib', 'expect' + basevers)) ++ libdir = pathjoin(basedir, pathjoin('lib', pathjoin('tcl', 'expect' + basevers))) + del f + + else: diff --git a/devel/py-expect/patches/patch-ab b/devel/py-expect/patches/patch-ab new file mode 100644 index 00000000000..a73bfe46f15 --- /dev/null +++ b/devel/py-expect/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ +--- configure.orig Sun Nov 5 10:07:38 2000 ++++ configure Wed Mar 21 11:54:56 2001 +@@ -1407,7 +1407,7 @@ + fi + fi + else +- EXP_LIB="expect${EXP_VERS}" ++ EXP_LIB="expect`echo ${EXP_VERS} | sed -e 's,\.,,'`" + fi + echo "$ac_t""$EXP_LIB" 1>&6 + +@@ -1542,7 +1542,7 @@ + esac + case ${EXP_VERS} in + 5.31*|5.32*) +- if ! -f $with_expect/expect_cf.h ; then ++ if [ ! -f $with_expect/include/expect.h ] ; then + { echo "configure: error: Must build with Expect's source tree" 1>&2; exit 1; } + fi + ;; diff --git a/devel/py-expect/patches/patch-ac b/devel/py-expect/patches/patch-ac new file mode 100644 index 00000000000..61fc83d5597 --- /dev/null +++ b/devel/py-expect/patches/patch-ac @@ -0,0 +1,24 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ +--- explib/exp_clib.c.orig Wed Mar 21 12:00:27 2001 ++++ explib/exp_clib.c Wed Mar 21 11:59:49 2001 +@@ -7,7 +7,10 @@ + would appreciate credit if this program or parts of it are used. + */ + +-#include "expect_cf.h" ++#define TRUE 1 ++#define FALSE 0 ++ ++/* #include "expect_cf.h" */ + #include <stdio.h> + #include <setjmp.h> + #ifdef HAVE_INTTYPES_H +@@ -634,7 +637,7 @@ + */ + + #include "expect.h" +-#include "exp_int.h" ++/* #include "exp_int.h" */ + + /* exp_glob.c - expect functions for doing glob + * diff --git a/devel/py-expect/patches/patch-ad b/devel/py-expect/patches/patch-ad new file mode 100644 index 00000000000..c50193f4e62 --- /dev/null +++ b/devel/py-expect/patches/patch-ad @@ -0,0 +1,42 @@ +$NetBSD: patch-ad,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ +--- Makefile.in.orig Fri Oct 20 05:06:30 2000 ++++ Makefile.in Wed Mar 21 15:10:52 2001 +@@ -29,8 +29,8 @@ + PYTHCNFG = @PYTH_CONFIG@ + PYCNF = @PYCNF@ + +-CC = @CC@ +-LD = $(CC) ++CC = ${LIBTOOL} --mode=compile @CC@ ++LD = ${LIBTOOL} --mode=link @CC@ + RANLIB = @RANLIB@ + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ +@@ -39,13 +39,13 @@ + LDEXE = @LDEXE@ + + SO = @SO@ +-LDSHARED = @LDSHARED@ +-CCSHARED = @CCSHARED@ ++LDSHARED = ${LIBTOOL} --mode=link @CC@ ++CCSHARED = ${LIBTOOL} --mode=compile @CC@ + + FRC = + CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@ + CFLAGS = @CFLAGS@ +-LDFLAGS = @LDFLAGS@ ++LDFLAGS = @LDFLAGS@ -shared + LIBS = $(EXPLIB) @LIBS@ + INSTLIBDIR = @PYTH_SHLIBDIR@ + +@@ -109,8 +109,8 @@ + $(LDEXE) $(LDFLAGS) -o $@ $(PYTH_OBJS) pyconfig.o \ + $(MODNAME)module.a $(EXPSUBLIB).a $(LIBS) + +-$(MODNAME)module$(SO): $(OBJS:.o=.os) $(EXPSUBLIB).as +- $(LDSHARED) $(LDFLAGS) -o $@ $(OBJS:.o=.os) $(EXPSUBLIB).as $(LIBS) ++$(MODNAME)module$(SO): $(OBJS) $(EXPSUBLIB).a ++ $(LDSHARED) $(LDFLAGS) -o $@ $(OBJS:.o=.lo) $(EXPSUBLIB).la $(LIBS) + $(MODNAME)module.a: $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + $(RANLIB) $@ diff --git a/devel/py-expect/patches/patch-ae b/devel/py-expect/patches/patch-ae new file mode 100644 index 00000000000..6165f7d0ffc --- /dev/null +++ b/devel/py-expect/patches/patch-ae @@ -0,0 +1,17 @@ +$NetBSD: patch-ae,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ +--- explib/Makefile.in.orig Sat Nov 4 05:27:16 2000 ++++ explib/Makefile.in Wed Mar 21 15:01:18 2001 +@@ -13,11 +13,11 @@ + OBJS = exp_clib.o $(EXPLIB_REGEXP) + DUMMYOBJS= dummy.o + +-TARGET = libexplib.a libexplib.as ++TARGET = libexplib.a + all: $(TARGET) + + libexplib.a: $(OBJS) +- ar r $@ $(OBJS) ++ ${LD} -o libexplib.la $(OBJS:.o=.lo) + libexplib.as: $(OBJS:.o=.os) + ar r $@ $(OBJS:.o=.os) + libdummy.a: $(DUMMYOBJS) diff --git a/devel/py-expect/pkg/DESCR b/devel/py-expect/pkg/DESCR new file mode 100644 index 00000000000..0ee23c68496 --- /dev/null +++ b/devel/py-expect/pkg/DESCR @@ -0,0 +1 @@ +python module providing access to the expect toolkit for program automation diff --git a/devel/py-expect/pkg/PLIST b/devel/py-expect/pkg/PLIST new file mode 100644 index 00000000000..fb1ff0478b2 --- /dev/null +++ b/devel/py-expect/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/21 23:36:07 jwise Exp $ +lib/python2.0/lib-dynload/ExpectPymodule.so +share/examples/python/py-expect/ask.py +share/examples/python/py-expect/glob.py +share/examples/python/py-expect/ping.py +share/examples/python/py-expect/telnet.py +share/examples/python/py-expect/xping.py +@dirrm share/examples/python/py-expect |