1 |
commit: 45a96dfad92d10a438656a79f1e7a54abcb108bb |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Dec 28 14:15:29 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 14:15:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a96dfa |
7 |
|
8 |
app-accessibility/edbrowse: Fix build with gcc-10 |
9 |
|
10 |
* Thanks to Sam James for providing the patch link |
11 |
* Port to cmake eclass |
12 |
* Additional minor cleanup |
13 |
|
14 |
Closes: https://bugs.gentoo.org/707500 |
15 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
16 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
17 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
18 |
|
19 |
.../edbrowse/edbrowse-3.7.5.1-r1.ebuild | 23 ++++++++++++++-------- |
20 |
.../files/edbrowse-3.7.5.1-fno-common.patch | 11 +++++++++++ |
21 |
.../edbrowse/files/edbrowse-3.7.5.1-manpage.patch | 23 ++++++++++++++++++++++ |
22 |
3 files changed, 49 insertions(+), 8 deletions(-) |
23 |
|
24 |
diff --git a/app-accessibility/edbrowse/edbrowse-3.7.5.1-r1.ebuild b/app-accessibility/edbrowse/edbrowse-3.7.5.1-r1.ebuild |
25 |
index 1f0f66a9bb1..fe983eda819 100644 |
26 |
--- a/app-accessibility/edbrowse/edbrowse-3.7.5.1-r1.ebuild |
27 |
+++ b/app-accessibility/edbrowse/edbrowse-3.7.5.1-r1.ebuild |
28 |
@@ -2,7 +2,8 @@ |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
EAPI=7 |
32 |
-inherit cmake-utils |
33 |
+ |
34 |
+inherit cmake |
35 |
|
36 |
DESCRIPTION="Combination editor, browser, and mail client that is 100% text based" |
37 |
HOMEPAGE="http://edbrowse.org" |
38 |
@@ -15,24 +16,30 @@ IUSE="odbc" |
39 |
|
40 |
RDEPEND=" |
41 |
app-text/tidy-html5 |
42 |
- >=net-misc/curl-7.36.0 |
43 |
- >=dev-libs/libpcre-7.8 |
44 |
- >=sys-libs/readline-6.0 |
45 |
dev-lang/duktape:= |
46 |
+ dev-libs/libpcre |
47 |
+ net-misc/curl |
48 |
+ sys-libs/readline:= |
49 |
odbc? ( dev-db/unixODBC )" |
50 |
DEPEND="${RDEPEND}" |
51 |
-BDEPEND="${RDEPEND} |
52 |
+BDEPEND=" |
53 |
dev-lang/perl |
54 |
virtual/pkgconfig" |
55 |
|
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${P}-fno-common.patch |
58 |
+ "${FILESDIR}"/${P}-manpage.patch |
59 |
+) |
60 |
+ |
61 |
src_prepare() { |
62 |
- sed -i -e "s:/usr/share/doc/edbrowse:/usr/share/doc/${P}:" CMakeLists.txt |
63 |
- cmake-utils_src_prepare |
64 |
+ cmake_src_prepare |
65 |
+ |
66 |
+ sed -i -e "s:/usr/share/doc/edbrowse:/usr/share/doc/${PF}:" CMakeLists.txt || die |
67 |
} |
68 |
|
69 |
src_configure() { |
70 |
local mycmakeargs=( |
71 |
-DBUILD_EDBR_ODBC=$(usex odbc) |
72 |
) |
73 |
- cmake-utils_src_configure |
74 |
+ cmake_src_configure |
75 |
} |
76 |
|
77 |
diff --git a/app-accessibility/edbrowse/files/edbrowse-3.7.5.1-fno-common.patch b/app-accessibility/edbrowse/files/edbrowse-3.7.5.1-fno-common.patch |
78 |
new file mode 100644 |
79 |
index 00000000000..bf9fa08245d |
80 |
--- /dev/null |
81 |
+++ b/app-accessibility/edbrowse/files/edbrowse-3.7.5.1-fno-common.patch |
82 |
@@ -0,0 +1,11 @@ |
83 |
+--- a/src/eb.h |
84 |
++++ b/src/eb.h |
85 |
+@@ -287,7 +287,7 @@ extern char *sslCerts; /* ssl certificates to validate the secure server */ |
86 |
+ extern int verifyCertificates; /* is a certificate required for the ssl connection? */ |
87 |
+ extern int displayLength; // when printing a line |
88 |
+ extern int formatLineLength; // when formatting html |
89 |
+-bool formatOverflow; |
90 |
++extern bool formatOverflow; |
91 |
+ extern int webTimeout, mailTimeout; |
92 |
+ extern uchar browseLocal; |
93 |
+ extern bool sqlPresent; /* Was edbrowse compiled with SQL built in? */ |
94 |
|
95 |
diff --git a/app-accessibility/edbrowse/files/edbrowse-3.7.5.1-manpage.patch b/app-accessibility/edbrowse/files/edbrowse-3.7.5.1-manpage.patch |
96 |
new file mode 100644 |
97 |
index 00000000000..f0d66766911 |
98 |
--- /dev/null |
99 |
+++ b/app-accessibility/edbrowse/files/edbrowse-3.7.5.1-manpage.patch |
100 |
@@ -0,0 +1,23 @@ |
101 |
+--- a/CMakeLists.txt |
102 |
++++ b/CMakeLists.txt |
103 |
+@@ -249,19 +249,7 @@ if (UNIX) |
104 |
+ endif() |
105 |
+ # copy to build dir |
106 |
+ configure_file( ${UnixManFile} ${CMAKE_BINARY_DIR}/edbrowse.1 ) |
107 |
+- # find 'gzip' - warn if not... |
108 |
+- find_program(GZIP_EXE gzip PATHS /bin ) |
109 |
+- if (GZIP_EXE) |
110 |
+- # gzip it in place |
111 |
+- execute_process(COMMAND ${GZIP_EXE} -f "edbrowse.1" |
112 |
+- WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
113 |
+- INPUT_FILE edbrowse.1 |
114 |
+- OUTPUT_FILE edbrowse.1.gz ) |
115 |
+- # install it |
116 |
+- install(FILES ${CMAKE_BINARY_DIR}/edbrowse.1.gz DESTINATION ${UnixManDir}) |
117 |
+- else () |
118 |
+- message(WARNING "Unable to locate 'gzip'! No man page...") |
119 |
+- endif () |
120 |
++ install(FILES ${CMAKE_BINARY_DIR}/edbrowse.1 DESTINATION ${UnixManDir}) |
121 |
+ # install user guide |
122 |
+ install(FILES doc/usersguide.html doc/usersguide_fr.html doc/sample.ebrc doc/sample_fr.ebrc doc/sample_it.ebrc DESTINATION ${UnixDocDir}) |
123 |
+ endif () |