1 |
commit: 6fb3e39de002aee93e9b48d4ba90245c4a220055 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 4 08:50:19 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 4 08:53:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb3e39d |
7 |
|
8 |
app-arch/unrar: Bump to version 5.6.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
app-arch/unrar/Manifest | 1 + |
13 |
app-arch/unrar/unrar-5.6.6.ebuild | 68 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest |
17 |
index 6faa866a356..b057484dbf0 100644 |
18 |
--- a/app-arch/unrar/Manifest |
19 |
+++ b/app-arch/unrar/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST unrar-5.5.8.tar.gz 222285 BLAKE2B ec6317fc95674a3f282f92762ee89d2fd21d162a9 |
21 |
DIST unrar-5.6.3.tar.gz 225788 BLAKE2B 8baf99ef85052a395fe0f2daed41803587e7d839949488eb3430e3d3a3dbca30ef894530d5ef40757f7ea2ffdfb2d493e8e13d7322e65885cf03f8fa0859b804 SHA512 cd3c97d357242a91917cdd9ee6898527829bff73dd187e58d7490d0d0ed5ffd8f8db651ce63d4bd8307c6a085fa95d72faa7b0cf1348bba191086136232a98fc |
22 |
DIST unrar-5.6.4.tar.gz 225849 BLAKE2B 56257ab9482841a1a27e5afd5b00b19e7319eef250168f08826e3cb63eefa063ece8198133d8439fca8d8905d303715751e24ed36a5018f03982c03cda27a53b SHA512 0ff55a82f8593c59c9773ffa7dec00386b762c504a08497bc1a50de5502c52e1c1d1043cb8ba353291aa61a3ebc9f5f0a21d313d89639f400e5fc45f01d62cca |
23 |
DIST unrar-5.6.5.tar.gz 226296 BLAKE2B c35dfdc10976ee2a7827f9386021f79af6712ae3a6641e83934ef7223e1202c46c59e12d2b78abe230c3f929f2228fe8c0664f05275b905ea06806a02cd685aa SHA512 984340935671913b4d2a765db5c4edc0d08d859fc43f3ae0e97e681c4ea302a51808fefa8c11c3aeecad1c2681541f363c5051813d978b5b14959c2e55f71281 |
24 |
+DIST unrar-5.6.6.tar.gz 226484 BLAKE2B f5facddd5c326c039c02b31ac28ba86d5417a51d00a463da1c6fbb714856ffb275defbe400a0d56a21850c754f06eda615fcab983a206f335422503d76f11427 SHA512 1e1e9dc2ed104ab7819d11ad2249780a4320cb30f3c427ea1669c3769fa3a8369841711a2d46d918049659bc67b2cd7dc7560a12127d810a57614293c24fe25a |
25 |
|
26 |
diff --git a/app-arch/unrar/unrar-5.6.6.ebuild b/app-arch/unrar/unrar-5.6.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2ebe5d1cc2c |
29 |
--- /dev/null |
30 |
+++ b/app-arch/unrar/unrar-5.6.6.ebuild |
31 |
@@ -0,0 +1,68 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
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 |
+} |