From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/expect/
Date: Fri, 4 Feb 2022 19:58:32 +0000 (UTC) [thread overview]
Message-ID: <1644004696.e99a9879e975b22f39078c217b3a4aeb39360a55.tupone@gentoo> (raw)
commit: e99a9879e975b22f39078c217b3a4aeb39360a55
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 4 19:58:16 2022 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Feb 4 19:58:16 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e99a9879
dev-tcltk/expect: EAPI 7
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-tcltk/expect/expect-5.45.4-r1.ebuild | 84 ++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/dev-tcltk/expect/expect-5.45.4-r1.ebuild b/dev-tcltk/expect/expect-5.45.4-r1.ebuild
new file mode 100644
index 000000000000..fa02fd421cbb
--- /dev/null
+++ b/dev-tcltk/expect/expect-5.45.4-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+MY_P="${PN}${PV}"
+DESCRIPTION="tool for automating interactive applications"
+HOMEPAGE="https://core.tcl-lang.org/expect/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris ~x86-solaris"
+IUSE="debug doc threads"
+
+# We need dejagnu for src_test, but dejagnu needs expect
+# to compile/run, so we cant add dejagnu to DEPEND :/
+DEPEND=">=dev-lang/tcl-8.2:0[threads?]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-examples.patch )
+
+src_prepare() {
+ default
+ sed -i "s:/usr/local/bin:${EPREFIX}/usr/bin:" expect.man || die
+
+ eapply "${FILESDIR}"/${PN}-5.45-gfbsd.patch
+ eapply "${FILESDIR}"/${PN}-5.44.1.15-ldflags.patch
+ eapply "${FILESDIR}"/${PN}-5.45-headers.patch #337943
+ eapply "${FILESDIR}"/${PN}-5.45-format-security.patch
+ sed -i 's:ifdef HAVE_SYS_WAIT_H:ifndef NO_SYS_WAIT_H:' *.c
+
+ # fix install_name on darwin
+ [[ ${CHOST} == *-darwin* ]] && \
+ eapply "${FILESDIR}"/${P}-darwin-install_name.patch
+
+ mv configure.{in,ac} || die
+
+ eautoconf
+}
+
+src_configure() {
+ # the 64bit flag is useless ... it only adds 64bit compiler flags
+ # (like -m64) which the target toolchain should already handle
+ econf \
+ --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
+ --disable-64bit \
+ --enable-shared \
+ $(use_enable threads) \
+ $(use_enable debug symbols mem)
+}
+
+src_test() {
+ # we need dejagnu to do tests ... but dejagnu needs
+ # expect ... so don't do tests unless we have dejagnu
+ type -p runtest || return 0
+ emake test
+}
+
+expect_make_var() {
+ touch pkgIndex.tcl-hand
+ printf 'all:;echo $('$1')\ninclude Makefile' | emake --no-print-directory -s -f -
+ rm -f pkgIndex.tcl-hand || die
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ docinto examples
+ echo dodoc \
+ example/README \
+ $(printf 'example/%s ' $(expect_make_var _SCRIPTS)) \
+ $(printf 'example/%s.man ' $(expect_make_var _SCRIPTS_MANPAGES))
+ dodoc \
+ example/README \
+ $(printf 'example/%s ' $(expect_make_var _SCRIPTS)) \
+ $(printf 'example/%s.man ' $(expect_make_var _SCRIPTS_MANPAGES))
+ fi
+}
next reply other threads:[~2022-02-04 19:58 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-04 19:58 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-29 19:13 [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/expect/ Alfredo Tupone
2024-07-23 4:30 Sam James
2024-05-19 23:10 Ionen Wolkens
2024-04-20 13:20 Sam James
2024-04-20 12:00 Sam James
2024-04-20 12:00 Sam James
2024-04-20 12:00 Sam James
2024-04-20 12:00 Sam James
2024-04-20 12:00 Sam James
2024-04-20 12:00 Sam James
2024-03-11 11:34 Alfredo Tupone
2023-11-18 16:46 Sam James
2023-01-18 22:09 Sam James
2022-11-23 21:18 Andreas Sturmlechner
2022-10-29 14:18 Sam James
2022-10-29 14:18 Sam James
2022-10-29 13:24 Arthur Zamarin
2022-10-29 13:24 Arthur Zamarin
2022-10-29 13:24 Arthur Zamarin
2022-10-29 13:24 Arthur Zamarin
2022-10-29 12:42 Arthur Zamarin
2022-10-29 12:32 Arthur Zamarin
2022-04-22 20:40 Sam James
2022-02-04 20:00 Alfredo Tupone
2021-01-06 22:33 Fabian Groffen
2020-12-27 16:32 Fabian Groffen
2019-11-13 14:08 Alfredo Tupone
2019-11-01 11:27 Mikle Kolyada
2019-09-23 7:38 Agostino Sarubbo
2019-09-21 13:50 Sergei Trofimovich
2019-09-21 2:48 Aaron Bauman
2019-09-21 1:04 Matt Turner
2019-09-20 12:10 Agostino Sarubbo
2019-09-20 12:08 Agostino Sarubbo
2019-09-20 12:06 Agostino Sarubbo
2019-09-18 18:09 Jeroen Roovers
2019-09-18 11:15 Agostino Sarubbo
2019-09-18 10:21 Agostino Sarubbo
2019-09-17 12:46 Alfredo Tupone
2019-05-04 19:25 Andreas K. Hüttel
2018-06-08 12:01 Mikle Kolyada
2018-04-03 10:58 Fabian Groffen
2018-03-04 11:39 Mart Raudsepp
2017-05-15 21:35 Manuel Rüger
2017-03-08 18:28 Matt Turner
2017-02-10 1:56 Michael Weber
2017-02-05 5:20 Michael Palimaka
2016-12-22 5:03 Aaron Bauman
2016-06-08 20:14 Markus Meier
2016-05-23 8:28 Tobias Klausmann
2016-05-19 14:22 Jeroen Roovers
2016-05-19 10:51 Jeroen Roovers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1644004696.e99a9879e975b22f39078c217b3a4aeb39360a55.tupone@gentoo \
--to=tupone@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox