summaryrefslogtreecommitdiff
path: root/dev-libs/eb
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/eb')
-rw-r--r--dev-libs/eb/Manifest4
-rw-r--r--dev-libs/eb/eb-4.4.3.ebuild49
-rw-r--r--dev-libs/eb/files/eb-4.4-gcc14-iconv.patch13
-rw-r--r--dev-libs/eb/files/eb-4.4.3-fix-threads.patch13
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/eb/Manifest b/dev-libs/eb/Manifest
index 2c565d67f55f..bc9757db6f5a 100644
--- a/dev-libs/eb/Manifest
+++ b/dev-libs/eb/Manifest
@@ -1,3 +1,7 @@
+AUX eb-4.4-gcc14-iconv.patch 446 BLAKE2B 9d21df37676fd02cb12259b1664518abf3bbcbe5d6d9290f70b313afec971579973db1618a3418c85c434ce6849857976390eeda520bd73ef312bb6d41aaa3c0 SHA512 ea84c8b8603af79fbccb43eaf33d522e208e63ae8f84a96032713add8f375e93d8abadc9f89e0f56acb429025b4c0f17937ec839584d54ae953357045a9d493c
+AUX eb-4.4.3-fix-threads.patch 354 BLAKE2B 9650c76d47e1aaf019313481fec53f775556e0178a10afb354c9e3ba3a7b3656875211af954c0ba5078dc150b1bfb82fc70a3ca6c71cd17b29a67064a21b464d SHA512 e2232857d70e091d644df21aa6c8fefb07669c03ff086dad87318811ad36ff2e08fe1927281a22c17a6c6fcc0a6d779609f145bb30210797626a8704832cd96e
DIST eb-4.4.1.tar.lzma 438852 BLAKE2B 575d301605d014999b571c14fc639d8043bf32660180aeaa2386ca58c506c4ff03bbeae6166aededd0494c6609514ef9a6d8eb1d1cd94883739ca0522fc9fa72 SHA512 c65ffae78d4f3beb9b6bdffde2b265fdb3a7c9b4c7626ddb0ca279e4193d48cad5e9748793f3ead3786e8c7d340134edf4ff1b9d835542ff12639581793b80c6
+DIST eb-4.4.3.tar.bz2 505510 BLAKE2B cb7476331498cc70c47406aa89833fdc8dd71b3bfd4d72d2878e9bb773d4f16a35e3b7235a3a1bf426e0b021b07874d13d1e87affbb77b545f8797523fb1f30c SHA512 29578223e9bf0e8475cf0518c4e319d8440eb9dc2b819ea7de6e90d67824eb7ac9f5a29cf1baa9b6e947840de17ad2182d1ea6ee4816df84e7baf025149bbbf2
EBUILD eb-4.4.1-r1.ebuild 931 BLAKE2B b0aa385a44c1de0f105eedd0a3d8b1309eded3a733e9ec00b69ecb998e522a4b51f5ecb74d8e502705a393b84bee6d0021c499b854b71626321912429e77fa5d SHA512 5f56973c7cddb0569004d4c7e74726ab44bee2f0c7d214150423259509215fb6d4d0062b67c9763e84e56adb2077a8598947f69b7e19a3332f5a5334ecff1160
+EBUILD eb-4.4.3.ebuild 1118 BLAKE2B ed650a066ac8771c5e6f18e36f239bd4f6aeda2ba0b4233dc1b6aac76c2ff06ce51e45e060d9eacd0d4b7c4ec7d1af211d172d4187cff3aa127ed29b24cc7b97 SHA512 21fb6e62ee89d6ceae956ff24243090d825ddf62c3d9e102ca39114d854f1558218f8bf9b913ed4e28d519aac6c4546e63c3d2132093ff1f50ee262d624f2444
MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
diff --git a/dev-libs/eb/eb-4.4.3.ebuild b/dev-libs/eb/eb-4.4.3.ebuild
new file mode 100644
index 000000000000..21c8b4a69be1
--- /dev/null
+++ b/dev-libs/eb/eb-4.4.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="EB is a C library and utilities for accessing CD-ROM books"
+HOMEPAGE="https://web.archive.org/web/20120330123930/http://www.sra.co.jp/people/m-kasahr/eb/"
+SRC_URI="ftp://ftp.sra.co.jp/pub/misc/eb/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="nls threads"
+
+RDEPEND="
+ sys-libs/zlib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}"
+BDEPEND="nls? ( sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog{,.0,.1,.2} NEWS README )
+
+PATCHES=(
+ "${FILESDIR}/eb-4.4-gcc14-iconv.patch" #920641
+ "${FILESDIR}/eb-4.4.3-fix-threads.patch" #https://github.com/gentoo/gentoo/pull/37731#pullrequestreview-2218229971
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-ipv6
+ $(use_enable nls)
+ $(use_enable threads pthread)
+ --with-pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}/html
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/dev-libs/eb/files/eb-4.4-gcc14-iconv.patch b/dev-libs/eb/files/eb-4.4-gcc14-iconv.patch
new file mode 100644
index 000000000000..ac17c585e7d6
--- /dev/null
+++ b/dev-libs/eb/files/eb-4.4-gcc14-iconv.patch
@@ -0,0 +1,13 @@
+diff --git a/libebutils/puts_eucjp.c b/libebutils/puts_eucjp.c
+index 678b296..d4c41b6 100644
+--- a/libebutils/puts_eucjp.c
++++ b/libebutils/puts_eucjp.c
+@@ -94,7 +94,7 @@ fputs_eucjp_to_locale(const char *string, FILE *stream)
+ out_p = buffer;
+ out_left = buffer_size;
+
+- if (iconv(cd, &in_p, &in_left, &out_p, &out_left) != -1)
++ if (iconv(cd, (char **)&in_p, &in_left, &out_p, &out_left) != -1)
+ break;
+ if (errno == E2BIG) {
+ /*
diff --git a/dev-libs/eb/files/eb-4.4.3-fix-threads.patch b/dev-libs/eb/files/eb-4.4.3-fix-threads.patch
new file mode 100644
index 000000000000..7c1e15be2119
--- /dev/null
+++ b/dev-libs/eb/files/eb-4.4.3-fix-threads.patch
@@ -0,0 +1,13 @@
+diff --git a/eb/readtext.c b/eb/readtext.c
+index 6e3c218..e4dcf95 100644
+--- a/eb/readtext.c
++++ b/eb/readtext.c
+@@ -1560,7 +1560,7 @@ eb_is_text_stopped(EB_Book *book)
+ {
+ int is_stopped = 0;
+
+- eb_lock(book);
++ eb_lock(&book->lock);
+ LOG(("in: eb_is_text_stopped(book=%d)", (int)book->code));
+
+ if (book->subbook_current != NULL) {