Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/edbrowse/, app-accessibility/edbrowse/files/
Date: Fri, 06 May 2022 16:25:54
Message-Id: 1651854194.07be3fee9291d14d24c36c3c5215ef90331b18f5.williamh@gentoo
1 commit: 07be3fee9291d14d24c36c3c5215ef90331b18f5
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 6 16:22:41 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 16:23:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07be3fee
7
8 app-accessibility/edbrowse: add 3.8.2.1
9
10 Closes: https://bugs.gentoo.org/732616
11 Closes: https://bugs.gentoo.org/838001
12 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
13
14 app-accessibility/edbrowse/Manifest | 2 +
15 app-accessibility/edbrowse/edbrowse-3.8.2.1.ebuild | 50 ++++++++++++++++++++++
16 .../files/edbrowse-3.8.2.1-respect-ldflags.patch | 13 ++++++
17 3 files changed, 65 insertions(+)
18
19 diff --git a/app-accessibility/edbrowse/Manifest b/app-accessibility/edbrowse/Manifest
20 index 383cdd368c26..85a299692e6d 100644
21 --- a/app-accessibility/edbrowse/Manifest
22 +++ b/app-accessibility/edbrowse/Manifest
23 @@ -1 +1,3 @@
24 DIST edbrowse-3.7.5.1.tar.gz 790742 BLAKE2B 7047cc2b1c7bc51aaa88f7a6aa981020ae80b6498bcb97f670646267dab94bab565b9ecc23c36f75d2653175917720dbb9e40a0f9bfd44251716669155e8de9e SHA512 ec217bf98334e8b493a1a80082cebfb11da9fa84d20d8b5f3f3286a78ae1dc6a2731c578d000f9f0f19d3dcbec9aa2c3e2a6b5b35f7ea7672840b9bcd1c5c67a
25 +DIST edbrowse-3.8.2.1.tar.gz 909574 BLAKE2B e5358861f6747dfe12498403b2d4761ab16dabc513fe94455d88c44e07793fb1128b0c1b7ebdf9ef922e371148182f8127f67f11eb123877e804858cb7e6378b SHA512 b5774a836efe96aae77052b02f6fcc85920b5f86a6ab8436a6dc363d81531b30e7f9c7555aacb20af27e59565042bdd685eed2acd4dfde8b99e2ad0358f19927
26 +DIST quickjs-2788d71.tar.gz 599260 BLAKE2B 67618f491c3efd1aa15a8906557983dd7123a3cfb2584f2f499f005667ccac4ded1c77934d2807cfce9e042572c6c41d63982b3df7afab5b2c67f4ce9f357879 SHA512 4493d11bc60855711955e0159e9f568d7e3db59c9843ef3aae00846f82c5e33f501372f7f5861b431353355f400f77720f3265963ea7bc0e38635ab5b89a27a0
27
28 diff --git a/app-accessibility/edbrowse/edbrowse-3.8.2.1.ebuild b/app-accessibility/edbrowse/edbrowse-3.8.2.1.ebuild
29 new file mode 100644
30 index 000000000000..53a246557d29
31 --- /dev/null
32 +++ b/app-accessibility/edbrowse/edbrowse-3.8.2.1.ebuild
33 @@ -0,0 +1,50 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +QUICKJS_HASH=2788d71e823b522b178db3b3660ce93689534e6d
39 +QUICKJS_SHORT=2788d71
40 +QUICKJS_S="${WORKDIR}/quickjs-${QUICKJS_HASH}"
41 +QUICKJS_P="quickjs-${QUICKJS_SHORT}"
42 +
43 +DESCRIPTION="Combination editor, browser, and mail client that is 100% text based"
44 +HOMEPAGE="https://edbrowse.org"
45 +SRC_URI="https://github.com/CMB/edbrowse/archive/v${PV}.tar.gz -> ${P}.tar.gz
46 + https://github.com/bellard/quickjs/archive/${QUICKJS_HASH}.tar.gz -> ${QUICKJS_P}.tar.gz"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="odbc"
52 +
53 +RDEPEND="
54 + >=app-text/htmltidy-5.0.0:=
55 + dev-libs/libpcre:=
56 + net-misc/curl
57 + sys-libs/readline:=
58 + odbc? ( dev-db/unixODBC )"
59 +DEPEND="${RDEPEND}"
60 +BDEPEND="
61 + dev-lang/perl
62 + sys-apps/ed
63 + virtual/pkgconfig"
64 +
65 + PATCHES=(
66 + "${FILESDIR}/${P}"-respect-ldflags.patch
67 + )
68 +
69 +src_compile() {
70 + # First build quickjs so we can link to its static library.
71 + # Also, quickjs doesn't appear to tag releases.
72 + tools/quickjobfixup "${QUICKJS_S}" || die
73 + emake -C "${QUICKJS_S}"
74 + emake -C src QUICKJS_DIR="${QUICKJS_S}" STRIP=
75 +}
76 +
77 +src_install() {
78 + dobin src/edbrowse
79 + newman doc/man-edbrowse-debian.1 edbrowse.1
80 + DOCS="doc/sample*"
81 + HTML_DOCS="doc/*.html"
82 + einstalldocs
83 +}
84
85 diff --git a/app-accessibility/edbrowse/files/edbrowse-3.8.2.1-respect-ldflags.patch b/app-accessibility/edbrowse/files/edbrowse-3.8.2.1-respect-ldflags.patch
86 new file mode 100644
87 index 000000000000..3b511e1d2b38
88 --- /dev/null
89 +++ b/app-accessibility/edbrowse/files/edbrowse-3.8.2.1-respect-ldflags.patch
90 @@ -0,0 +1,13 @@
91 +diff --git a/src/makefile b/src/makefile
92 +index d65369a3..410d3e9d 100644
93 +--- a/src/makefile
94 ++++ b/src/makefile
95 +@@ -31,7 +31,7 @@ endif
96 + CFLAGS += $(DEBUGFLAGS)
97 +
98 + # Libraries and linker flags for edbrowse.
99 +-LDFLAGS = $(STRIP) $(LINKER_LIBS) -lpthread -lm
100 ++LDFLAGS += $(STRIP) $(LINKER_LIBS) -lpthread -lm
101 +
102 + # LDFLAGS for quickjs loading.
103 + QUICKJS_LDFLAGS = $(QUICKJS_DIR)/libquickjs.a -ldl