Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libyui-ncurses/files/, x11-libs/libyui-ncurses/
Date: Sun, 26 Aug 2018 08:52:00
Message-Id: 1535273488.09ac599f10b5ab7bdb537689068102e2df0af9c0.asturm@gentoo
1 commit: 09ac599f10b5ab7bdb537689068102e2df0af9c0
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 26 08:07:47 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 26 08:51:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09ac599f
7
8 x11-libs/libyui-ncurses: 2.48.3 version bump, EAPI-6, tinfo buildfix
9
10 Closes: https://bugs.gentoo.org/648542
11 Package-Manager: Portage-2.3.48, Repoman-2.3.10
12
13 x11-libs/libyui-ncurses/Manifest | 1 +
14 .../files/libyui-ncurses-2.46.4-tinfo.patch | 4 +-
15 .../files/libyui-ncurses-2.48.3-ncurses.patch | 29 ++++++++++++
16 .../libyui-ncurses/libyui-ncurses-2.48.3.ebuild | 51 ++++++++++++++++++++++
17 4 files changed, 83 insertions(+), 2 deletions(-)
18
19 diff --git a/x11-libs/libyui-ncurses/Manifest b/x11-libs/libyui-ncurses/Manifest
20 index 547a96c3e36..df0051fdc49 100644
21 --- a/x11-libs/libyui-ncurses/Manifest
22 +++ b/x11-libs/libyui-ncurses/Manifest
23 @@ -1 +1,2 @@
24 DIST libyui-ncurses-2.47.6.tar.gz 188365 BLAKE2B 47d13ba5109bba0d58b0ac34a6d5032328c63f1aed1fa2ffb10b9bccd3d4ba5cc7ad215e75cc14fd4089a0b4e4d4702e1409f798aae85febaacc2567454ce17e SHA512 c11b4ac6e7d2e5fce52e39abbea5c9c280128071802ee925c00560642cb03e734393b348dc57d3aaff29993b36cdbc371f5766839640162a6e1310810c66e343
25 +DIST libyui-ncurses-2.48.3.tar.gz 189621 BLAKE2B 360b12f40c6e7dace84e5e10edb32d9b75ec33cb0c796ce31697b90b17df3ac13096d7a3d715d4bf4963c487e705ab4031dbe682f99237331dad951d19c32979 SHA512 18f7cec47aba1fd33443d4154b358c7dd769ed79a5544b11d907f6de461c96fcf1f980ee602781bd3cf3242d692d02721fcf975728a0c00955b34844104419d0
26
27 diff --git a/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch b/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch
28 index b69aafe797b..9da76f19459 100644
29 --- a/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch
30 +++ b/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch
31 @@ -1,7 +1,7 @@
32 Fixes building with sys-libs/ncurses[tinfo]
33
34 ---- cmake/Modules/FindCurses6.cmake.orig 2014-09-25 16:32:20.000000000 +0400
35 -+++ cmake/Modules/FindCurses6.cmake 2014-09-25 16:33:16.000000000 +0400
36 +--- a/cmake/Modules/FindCurses6.cmake 2014-09-25 16:32:20.000000000 +0400
37 ++++ b/cmake/Modules/FindCurses6.cmake 2014-09-25 16:33:16.000000000 +0400
38 @@ -11,11 +11,12 @@
39 FIND_LIBRARY(CURSES6_TINFO_LIBRARY NAMES tinfo PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
40 ENDFOREACH()
41
42 diff --git a/x11-libs/libyui-ncurses/files/libyui-ncurses-2.48.3-ncurses.patch b/x11-libs/libyui-ncurses/files/libyui-ncurses-2.48.3-ncurses.patch
43 new file mode 100644
44 index 00000000000..7c58ce47ab6
45 --- /dev/null
46 +++ b/x11-libs/libyui-ncurses/files/libyui-ncurses-2.48.3-ncurses.patch
47 @@ -0,0 +1,29 @@
48 +From 6444e043b58bf7703e4fc9035f380f3817207525 Mon Sep 17 00:00:00 2001
49 +From: Stefan Hundhammer <shundhammer@××××.de>
50 +Date: Thu, 4 Jan 2018 17:21:56 +0100
51 +Subject: [PATCH] Removed function that conflicts with newer NCurses lib
52 + (bsc#1074600)
53 +
54 +---
55 + src/ncursesw.h | 8 --------
56 + 1 file changed, 8 deletions(-)
57 +
58 +diff --git a/src/ncursesw.h b/src/ncursesw.h
59 +index d25923a..c8b95bb 100644
60 +--- a/src/ncursesw.h
61 ++++ b/src/ncursesw.h
62 +@@ -1607,14 +1607,6 @@ class NCursesWindow
63 + return ::wtouchln( w, s, cnt, ( int )( changed ? 1 : 0 ) );
64 + }
65 +
66 +- /**
67 +- * Return TRUE if line is marked as changed, FALSE otherwise
68 +- */
69 +- bool is_linetouched( int line ) const
70 +- {
71 +- return ( ::is_linetouched( w, line ) ? TRUE : FALSE );
72 +- }
73 +-
74 + /**
75 + * Return TRUE if window is marked as changed, FALSE otherwise
76 + */
77
78 diff --git a/x11-libs/libyui-ncurses/libyui-ncurses-2.48.3.ebuild b/x11-libs/libyui-ncurses/libyui-ncurses-2.48.3.ebuild
79 new file mode 100644
80 index 00000000000..7567d80afdf
81 --- /dev/null
82 +++ b/x11-libs/libyui-ncurses/libyui-ncurses-2.48.3.ebuild
83 @@ -0,0 +1,51 @@
84 +# Copyright 1999-2018 Gentoo Foundation
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +EAPI=6
88 +
89 +inherit cmake-utils
90 +
91 +DESCRIPTION="UI abstraction library - ncurses plugin"
92 +HOMEPAGE="https://github.com/libyui/libyui-ncurses"
93 +SRC_URI="https://github.com/libyui/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
94 +
95 +LICENSE="GPL-3"
96 +SLOT="0/6"
97 +KEYWORDS="~amd64 ~x86"
98 +
99 +IUSE="static-libs"
100 +
101 +RDEPEND="
102 + sys-libs/ncurses:0=
103 + x11-libs/libyui:${SLOT}
104 +"
105 +# Only Boost headers are needed
106 +DEPEND="${RDEPEND}
107 + dev-libs/boost
108 +"
109 +
110 +PATCHES=(
111 + "${FILESDIR}/${PN}-2.46.4-tinfo.patch"
112 + "${FILESDIR}/${P}-ncurses.patch"
113 +)
114 +
115 +src_prepare() {
116 + cp "${EPREFIX}/usr/share/libyui/buildtools/CMakeLists.common" CMakeLists.txt || die
117 +
118 + # TODO: set proper docs deps and USE flag for building them
119 + sed -i -e '/SET_AUTODOCS/d' CMakeLists.txt || die 'sed on CMakeLists.txt failed'
120 + sed -i -e 's/src examples/src/' PROJECTINFO.cmake || die 'sed on PROJECTINFO.cmake failed'
121 +
122 + cmake-utils_src_prepare
123 +}
124 +
125 +src_configure() {
126 + local mycmakeargs=(
127 + -DENABLE_EXAMPLES=OFF
128 + -DENABLE_WERROR=OFF
129 + -DDOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
130 + -DRESPECT_FLAGS=ON
131 + -DENABLE_STATIC=$(usex static-libs)
132 + )
133 + cmake-utils_src_configure
134 +}