commit: 86df01828b842feb017c063980641389dc5ab779
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 23 12:21:35 2025 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Dec 23 12:28:00 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86df0182
app-arch/unrar: add 7.2.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
app-arch/unrar/Manifest | 1 +
app-arch/unrar/unrar-7.2.3.ebuild | 79 +++++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest
index b1e6fee06623..7fe108abdec0 100644
--- a/app-arch/unrar/Manifest
+++ b/app-arch/unrar/Manifest
@@ -1,3 +1,4 @@
DIST unrar-7.1.10.tar.gz 268008 BLAKE2B
958dad50a84650e35a12d798b51519a2902cf6770bb6d65bdb11d07937d20190dc8e9a70073c0e3f999c071a5b749424faf6fcea3883957ecc5edab49cd724cd
SHA512
37c524578211798c02ed460bb39cdde3fadb97d6d34e93a9eb380e61e5b852480a0b3b2a10dde9f9c67b92331ba7784f8ced0c3da6e834e132b7f87f16e9adea
DIST unrar-7.2.1.tar.gz 269805 BLAKE2B
43a382f8dbb325194098ebadb0d1055c8a686b3a7b9ca6cbc0bf18ab1715ce039430e0d75a60b9e2b28c575d1ebcfde881d9bebd35d73376cd572216b5999b9b
SHA512
237c4e018e033c37b99ab7d91f6c4a9af21f5116cde3c2e182b4f351d6099db7b6be3a14bfdaefd1cb21f836805911edb9712dd0f0716508dad0b1ed930c5772
DIST unrar-7.2.2.tar.gz 269820 BLAKE2B
ce89fc47b88e8721ec51af5327111a96d92cfef5fbeb471c8f90715a8af29f08eb2f2bf742f817d014a2bd5a9fdf60dc4ed8cd1beb848af7c408cd5f84e4eded
SHA512
a2041925f1c4ba948edb07d2a3b8a97b3da3f0108748fb4e52fa89a9344a03b432ab00e83e2c69641974db225ba07548953764d053d62e95a953fe26014bdd3a
+DIST unrar-7.2.3.tar.gz 270056 BLAKE2B
7e1fdc58e9ddde6d12d4ba09cb114971540ad7ff78421aa6cda584d1d92222c6ac20b6104b75655bec88d2d7ebbb992df7e59c280cd072cb6424e28ebc78ee8a
SHA512
f981642ecc88bf8c85e615867870e37a33ee7eb91aca7111cbcb638cbc019d66bb8dbab9648cb3a0e4a1fb0553c6b5c23eda13eab686ccc547099630347c326f
diff --git a/app-arch/unrar/unrar-7.2.3.ebuild
b/app-arch/unrar/unrar-7.2.3.ebuild
new file mode 100644
index 000000000000..44905ea2ef0c
--- /dev/null
+++ b/app-arch/unrar/unrar-7.2.3.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 ~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
+}