Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unrar/
Date: Fri, 27 Sep 2019 15:48:06
Message-Id: 1569599250.a2557ef4e3f8d93dd43c40cc6b5e604c9620c2e3.whissi@gentoo
1 commit: a2557ef4e3f8d93dd43c40cc6b5e604c9620c2e3
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 27 15:46:10 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 27 15:47:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2557ef4
7
8 app-arch/unrar: bump to v5.8.2
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-arch/unrar/Manifest | 1 +
14 app-arch/unrar/unrar-5.8.2.ebuild | 70 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest
18 index 95454257b87..883727fb0a7 100644
19 --- a/app-arch/unrar/Manifest
20 +++ b/app-arch/unrar/Manifest
21 @@ -1,2 +1,3 @@
22 DIST unrar-5.7.5.tar.gz 228818 BLAKE2B 2bd9cfaed07802147af9a3457cea3f78f464cc26e2e20ef2c15817fffb7dc275fd326fd96b089257a8044982c0ae130ca3dc42126356d973ee6a8afd43e28df0 SHA512 101a21a20d8e30ca2cccc1605e332579064d362feacb36e9d4a7cd5218585298dcb48ec2805ff9523ae9b25e8e3d3e7557b73ea457702c6cb6d8c50d324ea1f4
23 DIST unrar-5.8.1.tar.gz 228917 BLAKE2B 4b34fd35a371ea2784af0968a95270b04afbefd4968c74c44e88d7b79598fe05b01c331ce730cbfd2535d5a713049e7f4dfbd38d28266e957ae9995cf8ce54b3 SHA512 31303df575e8a5ed9fc03e20d0482306536c3496894a39788052c5c9dfde61eb7f5ca29b8c48354581622a020aa446f108af956ab43024a48731a12233155612
24 +DIST unrar-5.8.2.tar.gz 229116 BLAKE2B 88bcc90e36d231dd35b066495967a116571ce25b6cc6ee73e84ded5a56fd74662e0c9da10a7e7025d2cecbdd1e47d84f303207b6a466c1488168f523e7fb23fd SHA512 09f12f141925aa99d74d4a0a0f3bacdd5b53d174473346de317cf95c1f560ef4bad445f14d81d313f8a34e8400df6a76709d068b9cd23433d1f638935185ab0d
25
26 diff --git a/app-arch/unrar/unrar-5.8.2.ebuild b/app-arch/unrar/unrar-5.8.2.ebuild
27 new file mode 100644
28 index 00000000000..76112ad11f7
29 --- /dev/null
30 +++ b/app-arch/unrar/unrar-5.8.2.ebuild
31 @@ -0,0 +1,70 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic multilib toolchain-funcs
38 +
39 +MY_PN="${PN}src"
40 +
41 +DESCRIPTION="Uncompress rar files"
42 +HOMEPAGE="https://www.rarlab.com/rar_add.htm"
43 +SRC_URI="https://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="unRAR"
46 +# subslot = soname version
47 +SLOT="0/5"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
49 +IUSE=""
50 +
51 +RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
52 +
53 +S="${WORKDIR}/unrar"
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${PN}-5.5.5-build.patch
57 + "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch
58 +)
59 +
60 +src_prepare() {
61 + default
62 +
63 + local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
64 + if [[ ${CHOST} == *-darwin* ]] ; then
65 + sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
66 + else
67 + sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
68 + fi
69 + sed -i "${sed_args[@]}" makefile || die
70 +}
71 +
72 +src_configure() {
73 + mkdir -p build-{lib,bin}
74 + printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die
75 + cp build-{lib,bin}/Makefile || die
76 +}
77 +
78 +src_compile() {
79 + unrar_make() {
80 + emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@"
81 + }
82 +
83 + unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib
84 + ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die
85 + ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die
86 +
87 + unrar_make -C build-bin
88 +}
89 +
90 +src_install() {
91 + dobin build-bin/unrar
92 + dodoc readme.txt
93 +
94 + dolib.so build-lib/libunrar*
95 +
96 + insinto /usr/include/libunrar${PV%.*.*}
97 + doins *.hpp
98 + dosym libunrar${PV%.*.*} /usr/include/libunrar
99 +
100 + find "${ED}" -type f -name "*.a" -delete || die
101 +}