pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/tcl-expect-git: import tcl-expect-5.45.5



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryoon%NetBSD.org@localhost>
Pushed By:	ryoon
Date:		Tue Aug 11 02:02:21 2026 +0900
Changeset:	10392168a6315634efc85213bcab7bd36b78b646

Added Files:
	tcl-expect-git/DESCR
	tcl-expect-git/Makefile
	tcl-expect-git/Makefile.common
	tcl-expect-git/PLIST
	tcl-expect-git/buildlink3.mk
	tcl-expect-git/distinfo

Log Message:
wip/tcl-expect-git: import tcl-expect-5.45.5

Expect is a program that performs programmed dialogue with other
interactive programs.  It is briefly described by its man page, expect(1).

It uses pseudo-tty's to control the child processes, so it is not affected
by programs that refuse to read from stdin or pipes. (eg: passwd(1) etc).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=10392168a6315634efc85213bcab7bd36b78b646

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tcl-expect-git/DESCR           |  5 +++++
 tcl-expect-git/Makefile        | 32 ++++++++++++++++++++++++++++++
 tcl-expect-git/Makefile.common | 43 ++++++++++++++++++++++++++++++++++++++++
 tcl-expect-git/PLIST           | 45 ++++++++++++++++++++++++++++++++++++++++++
 tcl-expect-git/buildlink3.mk   | 15 ++++++++++++++
 tcl-expect-git/distinfo        |  5 +++++
 6 files changed, 145 insertions(+)

diffs:
diff --git a/tcl-expect-git/DESCR b/tcl-expect-git/DESCR
new file mode 100644
index 0000000000..ed772c3264
--- /dev/null
+++ b/tcl-expect-git/DESCR
@@ -0,0 +1,5 @@
+Expect is a program that performs programmed dialogue with other
+interactive programs.  It is briefly described by its man page, expect(1).
+
+It uses pseudo-tty's to control the child processes, so it is not affected
+by programs that refuse to read from stdin or pipes. (eg: passwd(1) etc).
diff --git a/tcl-expect-git/Makefile b/tcl-expect-git/Makefile
new file mode 100644
index 0000000000..afc3ee3266
--- /dev/null
+++ b/tcl-expect-git/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.35 2022/05/15 01:56:24 dholland Exp $
+
+.include "Makefile.common"
+
+PKGNAME=	tcl-expect-${EXPECT_VERSION}
+CATEGORIES=	lang
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+COMMENT=	Extensions to Tcl to support scripting of interactive programs
+LICENSE=	public-domain
+
+USE_GCC_RUNTIME=	yes
+
+CONFIGURE_ARGS+=	--enable-shared
+CONFIGURE_ARGS+=	--with-tclconfig=${BUILDLINK_PREFIX.tcl}/lib
+CONFIGURE_ARGS+=	--without-x
+
+INSTALL_MAKE_FLAGS+=	INSTALL_ROOT=${DESTDIR}
+
+.include "../../mk/bsd.prefs.mk"
+
+# XXX: libexpect should have .dylib suffix
+.if ${OPSYS} == "Darwin"
+post-build:
+	install_name_tool -id ${PREFIX}/lib/libexpect${EXPECT_SONUM}.so \
+		${WRKSRC}/libexpect${EXPECT_SONUM}.so
+	install_name_tool -change libexpect${EXPECT_SONUM}.so \
+		${PREFIX}/lib/libexpect${EXPECT_SONUM}.so ${WRKSRC}/expect
+.endif
+
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/tcl-expect-git/Makefile.common b/tcl-expect-git/Makefile.common
new file mode 100644
index 0000000000..35a0fe4bc7
--- /dev/null
+++ b/tcl-expect-git/Makefile.common
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile.common,v 1.15 2022/06/19 14:43:28 gdt Exp $
+
+# used by lang/tcl-expect/Makefile
+# \todo Explain why there is only one user, or fold into Makefile.
+
+# expect appears unmaintained upstream:
+#   https://sourceforge.net/p/expect/bugs/107/
+DISTNAME=	expect-${EXPECT_FNAME}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ryoon/}
+HOMEPAGE=	https://core.tcl-lang.org/expect/index
+GITHUB_PROJECT=	tcl-expect
+GITHUB_TAG=	5.45.5
+
+EXPECT_FNAME=	5.45.5
+EXPECT_VERSION=	5.45.5
+EXPECT_SONUM=	5455
+
+GNU_CONFIGURE=		yes
+TEST_TARGET=		test
+
+PRINT_PLIST_AWK+=	/libexpect${EXPECT_SONUM}/ \
+			{ sub(/libexpect${EXPECT_SONUM}/, "libexpect$${SONUM}"); }
+#PRINT_PLIST_AWK+=	/expect${EXPECT_FNAME}/ \
+#			{ sub(/expect${EXPECT_VERSION}/, "expect$${BASEVER}"); }
+
+PLIST_SUBST+=		SONUM=${EXPECT_SONUM}
+PLIST_SUBST+=		BASEVER=${EXPECT_VERSION}
+
+.include "../../mk/bsd.prefs.mk"
+
+# NetBSD 5.99 strip complains it doesn't recognized the format of
+# the utility scripts and didn't install any of them as a result.
+# Just in case there are other platforms like this, don't install
+# stripped binaries on any platform.
+INSTALL_UNSTRIPPED=	yes
+
+# on IRIX 5.3 inttypes.h and sys/types.h are known to conflict
+.if ${OPSYS} == "IRIX" && ${OS_VERSION} == "5.3"
+CONFIGURE_ENV+=		ac_cv_header_inttypes_h="no"
+.endif
+
+DISTINFO_FILE=	${.CURDIR}/../../wip/tcl-expect-git/distinfo
+PATCHDIR=	${.CURDIR}/../../wip/tcl-expect-git/patches
diff --git a/tcl-expect-git/PLIST b/tcl-expect-git/PLIST
new file mode 100644
index 0000000000..4beb91b611
--- /dev/null
+++ b/tcl-expect-git/PLIST
@@ -0,0 +1,45 @@
+@comment $NetBSD$
+bin/autoexpect
+bin/autopasswd
+bin/cryptdir
+bin/decryptdir
+bin/dislocate
+bin/expect
+bin/ftp-rfc
+bin/kibitz
+bin/lpunlock
+bin/mkpasswd
+bin/multixterm
+bin/passmass
+bin/rftp
+bin/rlogin-cwd
+bin/timed-read
+bin/timed-run
+bin/tknewsbiff
+bin/tkpasswd
+bin/unbuffer
+bin/weather
+bin/xkibitz
+bin/xpstat
+include/expect.h
+include/expect_comm.h
+include/expect_tcl.h
+include/tcldbg.h
+lib/libexpect${SONUM}.a
+lib/libexpect${SONUM}.so
+lib/libexpect${SONUM}.so.1.0
+lib/tcl/expect${BASEVER}/libexpect${SONUM}.so
+lib/tcl/expect${BASEVER}/pkgIndex.tcl
+man/man1/autoexpect.1
+man/man1/cryptdir.1
+man/man1/decryptdir.1
+man/man1/dislocate.1
+man/man1/expect.1
+man/man1/kibitz.1
+man/man1/mkpasswd.1
+man/man1/multixterm.1
+man/man1/passmass.1
+man/man1/tknewsbiff.1
+man/man1/unbuffer.1
+man/man1/xkibitz.1
+man/man3/libexpect.3
diff --git a/tcl-expect-git/buildlink3.mk b/tcl-expect-git/buildlink3.mk
new file mode 100644
index 0000000000..33742e1807
--- /dev/null
+++ b/tcl-expect-git/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.9 2014/01/11 14:42:00 adam Exp $
+
+BUILDLINK_TREE+=	tcl-expect
+
+.if !defined(TCL_EXPECT_BUILDLINK3_MK)
+TCL_EXPECT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.tcl-expect+=	tcl-expect>=5.38.0nb1
+BUILDLINK_ABI_DEPENDS.tcl-expect+=	tcl-expect>=5.45.4nb1
+BUILDLINK_PKGSRCDIR.tcl-expect?=	../../wip/tcl-expect-git
+
+.include "../../lang/tcl/buildlink3.mk"
+.endif # TCL_EXPECT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-tcl-expect
diff --git a/tcl-expect-git/distinfo b/tcl-expect-git/distinfo
new file mode 100644
index 0000000000..b55ffaf785
--- /dev/null
+++ b/tcl-expect-git/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (expect-5.45.5.tar.gz) = 9780e20c0ce87ca5cc4e91390e35315400b6abe1d7361e99c403d258a30d572f
+SHA512 (expect-5.45.5.tar.gz) = 13f40796ab2f3a62b9683fe56a5b0052df16d1f139468f71cb8d866755a388ae007011a9b32fed6718ddcd843902b9f7afac21545ff0a1aae52c0095dfba0a42
+Size (expect-5.45.5.tar.gz) = 626036 bytes


Home | Main Index | Thread Index | Old Index