From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4CCE915827B for ; Sun, 10 Aug 2025 22:38:27 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 2AFA8342195 for ; Sun, 10 Aug 2025 22:38:27 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 711FD110560; Sun, 10 Aug 2025 22:38:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 6C021110560 for ; Sun, 10 Aug 2025 22:38:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 252073420A3 for ; Sun, 10 Aug 2025 22:38:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C19632D9 for ; Sun, 10 Aug 2025 22:38:20 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1754861153.b3adf5b4f1a32b535d25724a00b3a0628bf8dc6a.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unrar/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/unrar/Manifest app-arch/unrar/unrar-7.1.10.ebuild X-VCS-Directories: app-arch/unrar/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: b3adf5b4f1a32b535d25724a00b3a0628bf8dc6a X-VCS-Branch: master Date: Sun, 10 Aug 2025 22:38:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6c60198c-2bed-4606-8d61-084dbb556639 X-Archives-Hash: 01dff9d4728982b9e2fbb1b449cb57bf commit: b3adf5b4f1a32b535d25724a00b3a0628bf8dc6a Author: Conrad Kostecki gentoo org> AuthorDate: Sun Aug 10 21:00:25 2025 +0000 Commit: Conrad Kostecki gentoo 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 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 +}