1 |
commit: 2ee9d26b29e4b530359ed0cd793334f5fd0bab0f |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 2 10:49:00 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 2 10:49:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ee9d26b |
7 |
|
8 |
net-misc/tn5250: Fix building against sys-libs/ncurses[tinfo] (bug #596314). |
9 |
|
10 |
- Drop USE=X (configure: WARNING: unrecognized options: --with-x) |
11 |
- Drop weird build-time only dependency on x11-libs/libXt |
12 |
- Name patches properly. |
13 |
- Add IUSE=static-libs instead of --disable-static |
14 |
- Add linux/Makefile.am patch instead of sedding Makefile.in |
15 |
- Use ltprune.eclass instead of eutils.eclass |
16 |
|
17 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
18 |
|
19 |
...=> tn5250-0.17.4-disable-sslv2-and-sslv3.patch} | 0 |
20 |
...250-0.17.4-fix-Wformat-security-warnings.patch} | 0 |
21 |
net-misc/tn5250/files/tn5250-0.17.4-tinfo.patch | 10 +++++++ |
22 |
net-misc/tn5250/files/tn5250-0.17.4-whoami.patch | 13 +++++++++ |
23 |
net-misc/tn5250/tn5250-0.17.4-r2.ebuild | 31 +++++++++------------- |
24 |
5 files changed, 36 insertions(+), 18 deletions(-) |
25 |
|
26 |
diff --git a/net-misc/tn5250/files/disable-sslv2-and-sslv3.patch b/net-misc/tn5250/files/tn5250-0.17.4-disable-sslv2-and-sslv3.patch |
27 |
similarity index 100% |
28 |
rename from net-misc/tn5250/files/disable-sslv2-and-sslv3.patch |
29 |
rename to net-misc/tn5250/files/tn5250-0.17.4-disable-sslv2-and-sslv3.patch |
30 |
|
31 |
diff --git a/net-misc/tn5250/files/fix-Wformat-security-warnings.patch b/net-misc/tn5250/files/tn5250-0.17.4-fix-Wformat-security-warnings.patch |
32 |
similarity index 100% |
33 |
rename from net-misc/tn5250/files/fix-Wformat-security-warnings.patch |
34 |
rename to net-misc/tn5250/files/tn5250-0.17.4-fix-Wformat-security-warnings.patch |
35 |
|
36 |
diff --git a/net-misc/tn5250/files/tn5250-0.17.4-tinfo.patch b/net-misc/tn5250/files/tn5250-0.17.4-tinfo.patch |
37 |
new file mode 100644 |
38 |
index 00000000000..46469c4def8 |
39 |
--- /dev/null |
40 |
+++ b/net-misc/tn5250/files/tn5250-0.17.4-tinfo.patch |
41 |
@@ -0,0 +1,10 @@ |
42 |
+--- a/configure.ac |
43 |
++++ b/configure.ac |
44 |
+@@ -64,6 +64,7 @@ |
45 |
+ AC_MSG_ERROR([** You need a curses-compatible library installed.]) |
46 |
+ fi |
47 |
+ fi |
48 |
++ AC_SEARCH_LIBS(stdscr, tinfo, [CURSES_LIB="$CURSES_LIB -ltinfo"]) |
49 |
+ AC_SUBST([CURSES_LIB]) |
50 |
+ if test "$ac_cv_use_old_keys" != "yes"; |
51 |
+ then |
52 |
|
53 |
diff --git a/net-misc/tn5250/files/tn5250-0.17.4-whoami.patch b/net-misc/tn5250/files/tn5250-0.17.4-whoami.patch |
54 |
new file mode 100644 |
55 |
index 00000000000..fbcece25af2 |
56 |
--- /dev/null |
57 |
+++ b/net-misc/tn5250/files/tn5250-0.17.4-whoami.patch |
58 |
@@ -0,0 +1,13 @@ |
59 |
+--- a/linux/Makefile.am |
60 |
++++ b/linux/Makefile.am |
61 |
+@@ -18,10 +18,6 @@ |
62 |
+ if [ "$$(uname -s)" = "Linux" ]; then \ |
63 |
+ if which tic >/dev/null 2>&1 ; then \ |
64 |
+ if [ "`whoami`" = "root" ]; then \ |
65 |
+- rm -f /usr/share/terminfo/x/xterm-5250 ; \ |
66 |
+- rm -f /usr/share/terminfo/5/5250 ; \ |
67 |
+- rm -f /usr/lib/terminfo/x/xterm-5250 ; \ |
68 |
+- rm -f /usr/lib/terminfo/5/5250 ; \ |
69 |
+ good=yes ; \ |
70 |
+ tic $(srcdir)/5250.terminfo || good=no ; \ |
71 |
+ else \ |
72 |
|
73 |
diff --git a/net-misc/tn5250/tn5250-0.17.4-r2.ebuild b/net-misc/tn5250/tn5250-0.17.4-r2.ebuild |
74 |
index 3bcbdbd72cb..f3cfbf0f617 100644 |
75 |
--- a/net-misc/tn5250/tn5250-0.17.4-r2.ebuild |
76 |
+++ b/net-misc/tn5250/tn5250-0.17.4-r2.ebuild |
77 |
@@ -1,8 +1,8 @@ |
78 |
-# Copyright 1999-2016 Gentoo Foundation |
79 |
+# Copyright 1999-2018 Gentoo Foundation |
80 |
# Distributed under the terms of the GNU General Public License v2 |
81 |
|
82 |
EAPI=6 |
83 |
-inherit eutils |
84 |
+inherit autotools ltprune |
85 |
|
86 |
DESCRIPTION="IBM AS/400 telnet client which emulates 5250 terminals/printers" |
87 |
HOMEPAGE="http://tn5250.sourceforge.net/" |
88 |
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
89 |
LICENSE="LGPL-2.1" |
90 |
SLOT="0" |
91 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
92 |
-IUSE="X libressl ssl" |
93 |
+IUSE="libressl ssl static-libs" |
94 |
|
95 |
RDEPEND=" |
96 |
sys-libs/ncurses:= |
97 |
@@ -21,32 +21,27 @@ RDEPEND=" |
98 |
) |
99 |
" |
100 |
|
101 |
-DEPEND="${RDEPEND} |
102 |
- X? ( x11-libs/libXt ) |
103 |
+DEPEND=" |
104 |
+ ${RDEPEND} |
105 |
" |
106 |
|
107 |
PATCHES=( |
108 |
- "${FILESDIR}/disable-sslv2-and-sslv3.patch" |
109 |
- "${FILESDIR}/fix-Wformat-security-warnings.patch" |
110 |
+ "${FILESDIR}"/${PN}-0.17.4-disable-sslv2-and-sslv3.patch |
111 |
+ "${FILESDIR}"/${PN}-0.17.4-fix-Wformat-security-warnings.patch |
112 |
+ "${FILESDIR}"/${PN}-0.17.4-tinfo.patch |
113 |
+ "${FILESDIR}"/${PN}-0.17.4-whoami.patch |
114 |
) |
115 |
|
116 |
src_prepare() { |
117 |
default |
118 |
- |
119 |
- # Next, the Makefile for the terminfo settings tries to remove |
120 |
- # some files it doesn't have access to. We can just remove those |
121 |
- # lines. |
122 |
- sed -i \ |
123 |
- -e "/rm -f \/usr\/.*\/terminfo.*5250/d" linux/Makefile.in \ |
124 |
- || die "sed Makefile.in failed" |
125 |
+ eautoreconf |
126 |
} |
127 |
|
128 |
src_configure() { |
129 |
econf \ |
130 |
- --disable-static \ |
131 |
- --without-python \ |
132 |
- $(use_with X x) \ |
133 |
- $(use_with ssl) |
134 |
+ $(use_enable static-libs static) \ |
135 |
+ $(use_with ssl) \ |
136 |
+ --without-python |
137 |
} |
138 |
|
139 |
src_install() { |