diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest index d974592a35aa0..18ffdf3507133 100644 --- a/app-arch/unrar/Manifest +++ b/app-arch/unrar/Manifest @@ -1,3 +1 @@ -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.1.ebuild b/app-arch/unrar/unrar-7.2.1.ebuild deleted file mode 100644 index 7567d3604bfa5..0000000000000 --- a/app-arch/unrar/unrar-7.2.1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# 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 -} diff --git a/app-arch/unrar/unrar-7.2.2.ebuild b/app-arch/unrar/unrar-7.2.2.ebuild deleted file mode 100644 index 3cd2280e524c6..0000000000000 --- a/app-arch/unrar/unrar-7.2.2.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2026 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 -}