public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unrar/
Date: Sun, 10 Aug 2025 22:38:20 +0000 (UTC)	[thread overview]
Message-ID: <1754861153.b3adf5b4f1a32b535d25724a00b3a0628bf8dc6a.conikost@gentoo> (raw)

commit:     b3adf5b4f1a32b535d25724a00b3a0628bf8dc6a
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 10 21:00:25 2025 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Aug 10 21:25:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3adf5b4

app-arch/unrar: add 7.1.10

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-arch/unrar/Manifest            |  1 +
 app-arch/unrar/unrar-7.1.10.ebuild | 79 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest
index fb5a975802df..d1f0959c6b64 100644
--- a/app-arch/unrar/Manifest
+++ b/app-arch/unrar/Manifest
@@ -1,2 +1,3 @@
+DIST unrar-7.1.10.tar.gz 268008 BLAKE2B 958dad50a84650e35a12d798b51519a2902cf6770bb6d65bdb11d07937d20190dc8e9a70073c0e3f999c071a5b749424faf6fcea3883957ecc5edab49cd724cd SHA512 37c524578211798c02ed460bb39cdde3fadb97d6d34e93a9eb380e61e5b852480a0b3b2a10dde9f9c67b92331ba7784f8ced0c3da6e834e132b7f87f16e9adea
 DIST unrar-7.1.6.tar.gz 267638 BLAKE2B 29940a5219b40ef6385c3dfb142c34c08560f42915e2fba91a9a61d0166fbfaf6048672c31755fb5e734b3cc609156e5b06712213334780e3b8a1d4e43dfd42d SHA512 b56213d7df87970da66170d1bae7baffc591169b80db06d2dfd0d07644f467b252d6623aa153684b360ce9a092e93a5560330f7b9c14dd3ff7269741b17bb90c
 DIST unrar-7.1.7.tar.gz 267949 BLAKE2B 43b3b51b90b45bcea6afa273476cabbff8cca46d191612d015f55a58d8abf03aa9361ba5114afd981adc1e03a026dbeca3745933ddbfde7ad65618bfac470521 SHA512 852be9336e64fe99e40b6bb332043356fc8f97eadccaa2f29169b69debd96d0effefbad3a707e7953d562f59ddffe7707ec546a98d118724670a9421bfc155a6

diff --git a/app-arch/unrar/unrar-7.1.10.ebuild b/app-arch/unrar/unrar-7.1.10.ebuild
new file mode 100644
index 000000000000..355f68e21b19
--- /dev/null
+++ b/app-arch/unrar/unrar-7.1.10.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib toolchain-funcs
+
+MY_PN="${PN}src"
+
+DESCRIPTION="Uncompress rar files"
+HOMEPAGE="https://www.rarlab.com/rar_add.htm"
+SRC_URI="https://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/unrar"
+
+LICENSE="unRAR"
+SLOT="0/7" # subslot = soname version
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+
+PATCHES=( "${FILESDIR}/${PN}-6.2.6-honor-flags.patch" )
+
+src_prepare() {
+	default
+
+	local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
+	if [[ ${CHOST} == *-darwin* ]] ; then
+		sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
+	else
+		sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
+	fi
+	sed -i "${sed_args[@]}" makefile || die
+}
+
+src_configure() {
+	mkdir -p build-{lib,bin} || die
+	printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
+	cp build-{lib,bin}/Makefile || die
+}
+
+src_compile() {
+	unrar_make() {
+		emake AR="$(tc-getAR)" CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
+	}
+
+	unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
+	ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
+	ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
+
+	unrar_make -C build-bin
+}
+
+src_install() {
+	dobin build-bin/unrar
+	dodoc readme.txt
+
+	dolib.so build-lib/libunrar*
+
+	# unrar doesn't officially install headers, but unofficially, software
+	# depends on it anyway. There is no standard for where to install them,
+	# but the most common location (shared by nearly all vendors) is "unrar".
+	# FreeBSD alone uses "libunrar". Gentoo formerly used "libunrar6" and
+	# had a compat symlink for FreeBSD, then passed the compat location in
+	# ./configure scripts e.g. for sys-fs/rar2fs. Software in the wild
+	# seems to expect either "unrar" or "libunrar".
+	# See: https://bugs.gentoo.org/916036
+	#
+	# We now use the "standard" (hah) location, and keep the compat symlink but
+	# change the destination. The version-suffixed location lacks utility, but
+	# we would keep it if we could, just in case -- unfortunately portage is
+	# buggy: https://bugs.gentoo.org/834600
+	#
+	# Hopefully, no one has ever actually used it and therefore this does not
+	# matter. The odds are on our side, since it periodically changed location
+	# arbitrarily.
+	insinto /usr/include/unrar
+	doins *.hpp
+	dosym unrar /usr/include/libunrar
+
+	find "${ED}" -type f -name "*.a" -delete || die
+}


             reply	other threads:[~2025-08-10 22:38 UTC|newest]

Thread overview: 279+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-10 22:38 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-14  3:06 [gentoo-commits] repo/gentoo:master commit in: app-arch/unrar/ Sam James
2025-09-12 21:01 Arthur Zamarin
2025-09-12 20:29 Arthur Zamarin
2025-09-12  8:18 Arthur Zamarin
2025-09-12  3:40 Sam James
2025-09-12  3:40 Sam James
2025-08-10 22:38 Conrad Kostecki
2025-08-05 19:14 Sam James
2025-08-05 19:14 Sam James
2025-08-05 19:14 Sam James
2025-08-05 19:14 Sam James
2025-08-05 19:14 Sam James
2025-08-05 19:14 Sam James
2025-06-26 20:07 Sam James
2025-05-01  7:35 Arthur Zamarin
2025-05-01  7:35 Arthur Zamarin
2025-05-01  7:35 Arthur Zamarin
2025-05-01  6:07 Sam James
2025-05-01  5:59 Sam James
2025-05-01  5:59 Sam James
2025-03-30 11:16 Conrad Kostecki
2025-03-29 14:21 Arthur Zamarin
2025-03-29 13:50 Arthur Zamarin
2025-03-29  7:41 Arthur Zamarin
2025-03-29  7:41 Arthur Zamarin
2025-03-29  7:41 Arthur Zamarin
2025-03-29  7:41 Arthur Zamarin
2025-03-29  0:56 Jakov Smolić
2025-03-28 20:48 Conrad Kostecki
2025-03-01  1:14 Conrad Kostecki
2025-03-01  1:14 Conrad Kostecki
2025-02-27  3:13 Sam James
2025-02-23 22:19 Conrad Kostecki
2025-02-23  5:11 Sam James
2025-02-23  0:04 Sam James
2025-02-23  0:04 Sam James
2025-02-23  0:04 Sam James
2025-02-21 23:26 Conrad Kostecki
2025-01-18 23:47 Conrad Kostecki
2025-01-09  1:17 Sam James
2025-01-09  1:17 Sam James
2025-01-09  1:17 Sam James
2025-01-09  1:17 Sam James
2025-01-09  1:17 Sam James
2025-01-09  1:17 Sam James
2024-12-06 23:43 Conrad Kostecki
2024-06-27 15:44 Conrad Kostecki
2024-06-24  1:16 Sam James
2024-06-17 23:37 Sam James
2024-06-17 23:37 Sam James
2024-06-17 23:37 Sam James
2024-06-17 23:37 Sam James
2024-06-17 23:34 Sam James
2024-05-26  0:41 Conrad Kostecki
2024-05-24 23:35 Conrad Kostecki
2024-04-20  7:04 Joonas Niilola
2023-12-15  4:44 Sam James
2023-12-15  4:44 Sam James
2023-12-15  4:44 Sam James
2023-12-15  4:44 Sam James
2023-12-15  4:44 Sam James
2023-10-24 18:37 Sam James
2023-10-08  3:11 Sam James
2023-09-24 18:26 Arthur Zamarin
2023-09-17  6:15 Sam James
2023-09-17  6:15 Sam James
2023-09-17  6:15 Sam James
2023-09-17  6:15 Sam James
2023-09-17  6:15 Sam James
2023-09-17  6:15 Sam James
2023-08-19 23:13 Conrad Kostecki
2023-07-28 11:09 Sam James
2023-07-28 11:08 Sam James
2023-07-16 21:52 Matt Turner
2023-06-04 18:12 Matt Turner
2023-06-01  3:34 Sam James
2023-06-01  3:29 Sam James
2023-06-01  3:29 Sam James
2023-06-01  3:29 Sam James
2023-04-16  7:33 Sam James
2023-04-16  7:33 Sam James
2023-03-10  7:49 Arthur Zamarin
2023-03-10  7:46 Sam James
2023-03-10  7:44 Arthur Zamarin
2023-03-10  7:44 Arthur Zamarin
2023-03-10  7:44 Arthur Zamarin
2023-03-10  7:44 Arthur Zamarin
2023-03-04 12:02 Arthur Zamarin
2023-03-04 11:18 Arthur Zamarin
2023-03-04  8:31 Arthur Zamarin
2023-03-04  7:47 Arthur Zamarin
2023-02-03  7:44 Sam James
2023-02-03  7:44 Sam James
2022-12-16  1:57 Sam James
2022-12-02 18:58 Arthur Zamarin
2022-12-02  3:38 Sam James
2022-12-01 22:28 Jakov Smolić
2022-12-01 22:24 Jakov Smolić
2022-12-01 20:50 Arthur Zamarin
2022-12-01 20:48 Arthur Zamarin
2022-10-27  5:08 Sam James
2022-06-02  6:06 Agostino Sarubbo
2022-06-02  4:43 Jakov Smolić
2022-06-02  4:20 Jakov Smolić
2022-06-02  2:23 Sam James
2022-06-02  2:03 Sam James
2022-06-02  2:03 Sam James
2022-05-31  3:10 Sam James
2022-05-25  9:10 WANG Xuerui
2022-01-26  2:31 Thomas Deutschmann
2021-11-16 17:57 Thomas Deutschmann
2021-10-03 11:28 David Seifert
2021-10-03 11:28 David Seifert
2021-09-23 22:47 Marek Szuba
2021-09-07  3:06 Sam James
2021-07-09  6:26 Agostino Sarubbo
2021-07-08  6:22 Agostino Sarubbo
2021-07-08  6:21 Agostino Sarubbo
2021-07-07  2:17 Sam James
2021-06-14 13:28 Thomas Deutschmann
2021-06-14 13:28 Thomas Deutschmann
2021-05-19  9:47 Agostino Sarubbo
2021-05-18 17:26 Sam James
2021-05-18 17:26 Sam James
2021-05-18 17:24 Sam James
2021-05-18 17:24 Sam James
2021-05-18 16:30 Thomas Deutschmann
2021-05-13 13:55 David Seifert
2021-04-25  9:16 David Seifert
2021-04-25  9:16 David Seifert
2021-04-25  5:14 Sam James
2021-04-12 18:14 Thomas Deutschmann
2021-04-07 22:45 Sam James
2021-04-06 19:53 Sam James
2021-04-06 19:53 Sam James
2021-04-06 12:14 Sergei Trofimovich
2021-04-05 19:01 Thomas Deutschmann
2021-03-06 10:27 Lars Wendler
2021-02-15 15:14 Thomas Deutschmann
2021-02-15  1:49 Sam James
2021-02-11  8:14 Sam James
2021-02-06  0:02 Sam James
2021-02-05 12:31 Sam James
2021-02-05 10:40 Sam James
2021-02-05  6:36 Sam James
2021-02-04 23:52 Sam James
2021-01-06 12:52 Fabian Groffen
2020-12-07 14:10 Thomas Deutschmann
2020-11-12 19:47 Thomas Deutschmann
2020-10-23  1:19 Thomas Deutschmann
2020-09-12  8:10 Sergei Trofimovich
2020-09-07 18:27 Sam James
2020-08-29 14:48 Thomas Deutschmann
2020-08-27 18:22 Sergei Trofimovich
2020-08-25 17:48 Sergei Trofimovich
2020-08-22  5:43 Agostino Sarubbo
2020-08-21 18:20 Agostino Sarubbo
2020-06-29 14:27 Lars Wendler
2020-04-18 18:55 Thomas Deutschmann
2020-04-03  9:28 Thomas Deutschmann
2020-04-03  9:28 Thomas Deutschmann
2020-03-30 16:44 Thomas Deutschmann
2020-01-31 14:00 Lars Wendler
2020-01-31 14:00 Lars Wendler
2019-12-25 20:50 Sergei Trofimovich
2019-12-25 20:39 Sergei Trofimovich
2019-12-25 20:24 Sergei Trofimovich
2019-12-24 14:13 Mikle Kolyada
2019-12-24  8:08 Agostino Sarubbo
2019-12-23 14:03 Agostino Sarubbo
2019-12-11 14:59 Thomas Deutschmann
2019-11-18  9:22 Lars Wendler
2019-11-17 20:21 Thomas Deutschmann
2019-10-20 18:00 Thomas Deutschmann
2019-09-27 15:48 Thomas Deutschmann
2019-09-15 21:59 Thomas Deutschmann
2019-09-15 21:59 Thomas Deutschmann
2019-09-02  8:05 Lars Wendler
2019-05-07  8:46 Tobias Klausmann
2019-04-29 19:50 Lars Wendler
2019-04-29 11:33 Thomas Deutschmann
2019-04-27 15:48 Sergei Trofimovich
2019-04-26 20:54 Mikle Kolyada
2019-04-26 20:35 Sergei Trofimovich
2019-04-20 18:47 Mikle Kolyada
2019-04-18 23:50 Aaron Bauman
2019-04-18 20:32 Thomas Deutschmann
2019-04-18 20:28 Sergei Trofimovich
2019-04-05 20:21 Thomas Deutschmann
2019-02-26 19:49 Thomas Deutschmann
2019-02-22 14:08 Thomas Deutschmann
2019-02-07 17:12 Mikle Kolyada
2019-02-07  7:24 Mikle Kolyada
2019-01-31 22:15 Thomas Deutschmann
2019-01-31 18:58 Tobias Klausmann
2019-01-29 10:53 Lars Wendler
2019-01-29 10:53 Lars Wendler
2019-01-27 14:14 Sergei Trofimovich
2019-01-27 12:13 Sergei Trofimovich
2019-01-27  9:49 Sergei Trofimovich
2018-10-20 11:26 Markus Meier
2018-10-14 12:23 Mikle Kolyada
2018-10-12 14:42 Thomas Deutschmann
2018-10-12 14:42 Thomas Deutschmann
2018-10-11 18:49 Tobias Klausmann
2018-10-06 23:47 Matt Turner
2018-10-06 23:47 Matt Turner
2018-10-01 15:17 Thomas Deutschmann
2018-09-30 21:38 Sergei Trofimovich
2018-09-25  6:35 Sergei Trofimovich
2018-09-24 21:26 Sergei Trofimovich
2018-09-24  1:50 Thomas Deutschmann
2018-09-23 15:24 Mikle Kolyada
2018-09-04  8:53 Lars Wendler
2018-09-04  8:53 Lars Wendler
2018-06-26 11:07 Thomas Deutschmann
2018-05-16 23:19 Thomas Deutschmann
2018-05-16 23:19 Thomas Deutschmann
2018-04-26 19:30 Thomas Deutschmann
2018-04-22  1:33 Aaron Bauman
2018-04-01 14:13 Lars Wendler
2018-03-12  9:38 Lars Wendler
2017-12-17 20:11 Sergei Trofimovich
2017-09-24 20:19 Sergei Trofimovich
2017-08-31  1:26 Matt Turner
2017-08-25 21:11 Mikle Kolyada
2017-08-25  4:44 Markus Meier
2017-08-18 21:44 Sergei Trofimovich
2017-08-18 20:45 Sergei Trofimovich
2017-08-18 19:13 Thomas Deutschmann
2017-08-14 12:44 Thomas Deutschmann
2017-07-25 11:26 Thomas Deutschmann
2017-07-10  7:37 Tim Harder
2017-07-07  6:16 Markus Meier
2017-06-30  7:48 Sergei Trofimovich
2017-06-26 20:18 Tobias Klausmann
2017-06-21 15:11 Thomas Deutschmann
2017-06-21 12:11 Agostino Sarubbo
2017-06-21 12:09 Agostino Sarubbo
2017-06-21 11:44 Thomas Deutschmann
2017-04-12 11:10 Tim Harder
2017-01-10  7:19 Jeroen Roovers
2016-12-24 10:26 Agostino Sarubbo
2016-12-22  9:34 Agostino Sarubbo
2016-12-20  9:44 Agostino Sarubbo
2016-12-19 15:12 Agostino Sarubbo
2016-12-19 14:35 Agostino Sarubbo
2016-12-18 15:57 Agostino Sarubbo
2016-12-17  9:32 Aaron Bauman
2016-12-14  9:14 Tobias Klausmann
2016-08-16 22:10 Lars Wendler
2016-08-16 22:10 Lars Wendler
2016-07-29  7:48 Lars Wendler
2016-07-29  7:48 Lars Wendler
2016-07-21 18:50 Lars Wendler
2016-07-21 18:50 Lars Wendler
2016-05-31  4:20 Lars Wendler
2016-05-26 13:34 Tobias Klausmann
2016-05-20  6:56 Jeroen Roovers
2016-05-10 21:57 Lars Wendler
2016-05-10 21:57 Lars Wendler
2016-03-25  9:44 Markus Meier
2016-03-20 11:53 Agostino Sarubbo
2016-03-19 11:35 Agostino Sarubbo
2016-03-16 11:51 Agostino Sarubbo
2016-03-15 15:27 Agostino Sarubbo
2016-03-05 15:15 Mikle Kolyada
2016-02-09  8:04 Lars Wendler
2016-02-09  8:04 Lars Wendler
2016-01-07  9:09 Lars Wendler
2016-01-07  9:09 Lars Wendler
2015-12-01  6:39 Tim Harder
2015-11-02 20:03 Mike Frysinger
2015-10-12  6:01 Lars Wendler
2015-10-12  6:01 Lars Wendler
2015-09-07  6:01 Mike Frysinger
2015-09-07  6:01 Mike Frysinger
2015-08-14  8:02 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1754861153.b3adf5b4f1a32b535d25724a00b3a0628bf8dc6a.conikost@gentoo \
    --to=conikost@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox