1 |
commit: 08233f3ced0f2f02cdd575baac834871ca9ecbcf |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 26 17:07:27 2018 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 26 17:07:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08233f3c |
7 |
|
8 |
dev-tcltk/expect: Version bump to 5.45.4 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/607106 |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
12 |
|
13 |
dev-tcltk/expect/Manifest | 1 + |
14 |
dev-tcltk/expect/expect-5.45.4.ebuild | 80 ++++++++++++++++++++++ |
15 |
.../expect/files/expect-5.45.4-examples.patch | 21 ++++++ |
16 |
3 files changed, 102 insertions(+) |
17 |
|
18 |
diff --git a/dev-tcltk/expect/Manifest b/dev-tcltk/expect/Manifest |
19 |
index 12480be8f29..5334acf4f51 100644 |
20 |
--- a/dev-tcltk/expect/Manifest |
21 |
+++ b/dev-tcltk/expect/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
+DIST expect5.45.4.tar.gz 632363 BLAKE2B a3a936e7644c922fdd474fa08c45926396ccce9a63e5f65f4d5e157f5160cfe4de47688734b39d13281d9548aac492810f19236e06563903d3d8081e4661048d SHA512 a8dc25e8175f67e029e15cbcfca1705165c1c4cb2dd37eaaaebffb61e3ba132d9519cd73ca5add4c3358a2b0b7a91e878279e8d0b72143ff2c287fce07e4659a |
24 |
DIST expect5.45.tar.gz 628808 BLAKE2B d7260d3b2ce1bcd72deef121e1f994f45bfa5397291692d794c9b8ad627d7ac183689ba00ba22f728853ac03b6b083fb6f283dc5c453aa991e04263c217be552 SHA512 be991c68241e607b3a689eae7e7966056dbfb577e857331d54a4911bd178c1816425217603b43918ad1b6d2e966271a0f01e79d7028a22e223562d59d10c8c51 |
25 |
|
26 |
diff --git a/dev-tcltk/expect/expect-5.45.4.ebuild b/dev-tcltk/expect/expect-5.45.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..7f540266356 |
29 |
--- /dev/null |
30 |
+++ b/dev-tcltk/expect/expect-5.45.4.ebuild |
31 |
@@ -0,0 +1,80 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit autotools eutils |
38 |
+ |
39 |
+MY_P="${PN}${PV}" |
40 |
+DESCRIPTION="tool for automating interactive applications" |
41 |
+HOMEPAGE="http://expect.nist.gov/" |
42 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~m68k-mint ~x64-solaris ~x86-solaris" |
47 |
+IUSE="debug doc threads" |
48 |
+ |
49 |
+# We need dejagnu for src_test, but dejagnu needs expect |
50 |
+# to compile/run, so we cant add dejagnu to DEPEND :/ |
51 |
+DEPEND=">=dev-lang/tcl-8.2:0[threads?]" |
52 |
+RDEPEND="${DEPEND}" |
53 |
+ |
54 |
+S=${WORKDIR}/${MY_P} |
55 |
+ |
56 |
+PATCHES=( "${FILESDIR}"/${P}-examples.patch ) |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ sed -i "s:/usr/local/bin:${EPREFIX}/usr/bin:" expect.man || die |
61 |
+ |
62 |
+ epatch "${FILESDIR}"/${PN}-5.45-gfbsd.patch |
63 |
+ epatch "${FILESDIR}"/${PN}-5.44.1.15-ldflags.patch |
64 |
+ epatch "${FILESDIR}"/${PN}-5.45-headers.patch #337943 |
65 |
+ epatch "${FILESDIR}"/${PN}-5.45-format-security.patch |
66 |
+ sed -i 's:ifdef HAVE_SYS_WAIT_H:ifndef NO_SYS_WAIT_H:' *.c |
67 |
+ |
68 |
+ # fix install_name on darwin |
69 |
+ [[ ${CHOST} == *-darwin* ]] && \ |
70 |
+ epatch "${FILESDIR}"/${P}-darwin-install_name.patch |
71 |
+ |
72 |
+ mv configure.{in,ac} || die |
73 |
+ |
74 |
+ eautoconf |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ # the 64bit flag is useless ... it only adds 64bit compiler flags |
79 |
+ # (like -m64) which the target toolchain should already handle |
80 |
+ econf \ |
81 |
+ --with-tcl="${EPREFIX}/usr/$(get_libdir)" \ |
82 |
+ --disable-64bit \ |
83 |
+ --enable-shared \ |
84 |
+ $(use_enable threads) \ |
85 |
+ $(use_enable debug symbols mem) |
86 |
+} |
87 |
+ |
88 |
+src_test() { |
89 |
+ # we need dejagnu to do tests ... but dejagnu needs |
90 |
+ # expect ... so don't do tests unless we have dejagnu |
91 |
+ type -p runtest || return 0 |
92 |
+ emake test |
93 |
+} |
94 |
+ |
95 |
+expect_make_var() { |
96 |
+ touch pkgIndex.tcl-hand |
97 |
+ printf 'all:;echo $('$1')\ninclude Makefile' | emake --no-print-directory -s -f - |
98 |
+ rm -f pkgIndex.tcl-hand || die |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ default |
103 |
+ |
104 |
+ if use doc ; then |
105 |
+ docinto examples |
106 |
+ dodoc \ |
107 |
+ example/README \ |
108 |
+ $(printf 'example/%s ' $(expect_make_var _SCRIPTS)) \ |
109 |
+ $(printf 'example/%s.man ' $(expect_make_var _SCRIPTS_MANPAGES)) |
110 |
+ fi |
111 |
+} |
112 |
|
113 |
diff --git a/dev-tcltk/expect/files/expect-5.45.4-examples.patch b/dev-tcltk/expect/files/expect-5.45.4-examples.patch |
114 |
new file mode 100644 |
115 |
index 00000000000..10de8821a01 |
116 |
--- /dev/null |
117 |
+++ b/dev-tcltk/expect/files/expect-5.45.4-examples.patch |
118 |
@@ -0,0 +1,21 @@ |
119 |
+--- a/Makefile.in 2018-09-26 15:59:09.049279363 +0200 |
120 |
++++ b/Makefile.in 2018-09-26 16:00:00.514427553 +0200 |
121 |
+@@ -32,16 +32,12 @@ |
122 |
+ # SCRIPTS is a target. If this is a problem, just comment out the |
123 |
+ # SCRIPTS target itself. |
124 |
+ |
125 |
+-SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \ |
126 |
+- passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \ |
127 |
+- tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect \ |
128 |
+- multixterm |
129 |
++SCRIPTS = unbuffer |
130 |
+ |
131 |
+ # A couple of the scripts have man pages of their own. |
132 |
+ # You can delete these too if you don't want'em. |
133 |
+ |
134 |
+-SCRIPTS_MANPAGES = kibitz dislocate xkibitz tknewsbiff unbuffer mkpasswd \ |
135 |
+- passmass cryptdir decryptdir autoexpect multixterm |
136 |
++SCRIPTS_MANPAGES = unbuffer |
137 |
+ |
138 |
+ |
139 |
+ # allow us to handle null list gracefully, "end_of_list" should not exist |