From 529577aeea71cfe7bf5fc2c62e00b152c9c25fd0 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 22 Apr 2022 21:36:56 +0100 Subject: dev-tcltk/expect: use subslot dep on tcl Signed-off-by: Sam James --- dev-tcltk/expect/expect-5.45.4-r1.ebuild | 84 -------------------------------- dev-tcltk/expect/expect-5.45.4-r2.ebuild | 84 ++++++++++++++++++++++++++++++++ dev-tcltk/expect/expect-5.45.4-r3.ebuild | 84 ++++++++++++++++++++++++++++++++ dev-tcltk/expect/expect-5.45.4.ebuild | 84 -------------------------------- 4 files changed, 168 insertions(+), 168 deletions(-) delete mode 100644 dev-tcltk/expect/expect-5.45.4-r1.ebuild create mode 100644 dev-tcltk/expect/expect-5.45.4-r2.ebuild create mode 100644 dev-tcltk/expect/expect-5.45.4-r3.ebuild delete mode 100644 dev-tcltk/expect/expect-5.45.4.ebuild (limited to 'dev-tcltk/expect') diff --git a/dev-tcltk/expect/expect-5.45.4-r1.ebuild b/dev-tcltk/expect/expect-5.45.4-r1.ebuild deleted file mode 100644 index fa02fd421cbb..000000000000 --- a/dev-tcltk/expect/expect-5.45.4-r1.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# 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 -} diff --git a/dev-tcltk/expect/expect-5.45.4-r2.ebuild b/dev-tcltk/expect/expect-5.45.4-r2.ebuild new file mode 100644 index 000000000000..0b1f85dbef2f --- /dev/null +++ b/dev-tcltk/expect/expect-5.45.4-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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:=[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 +} diff --git a/dev-tcltk/expect/expect-5.45.4-r3.ebuild b/dev-tcltk/expect/expect-5.45.4-r3.ebuild new file mode 100644 index 000000000000..6cda0a2c2c7b --- /dev/null +++ b/dev-tcltk/expect/expect-5.45.4-r3.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:=[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 +} diff --git a/dev-tcltk/expect/expect-5.45.4.ebuild b/dev-tcltk/expect/expect-5.45.4.ebuild deleted file mode 100644 index 6062b7449ecb..000000000000 --- a/dev-tcltk/expect/expect-5.45.4.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -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 -} -- cgit v1.2.3-65-gdbad