1 |
commit: eea80ffce789ad84a09c964047c6148fad23c672 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 1 14:13:19 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 1 14:13:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea80ffc |
7 |
|
8 |
app-arch/unrar: Bump to version 5.6.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
11 |
|
12 |
app-arch/unrar/Manifest | 1 + |
13 |
app-arch/unrar/unrar-5.6.2.ebuild | 68 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest |
17 |
index 8a2c2e9cca3..5bab2711785 100644 |
18 |
--- a/app-arch/unrar/Manifest |
19 |
+++ b/app-arch/unrar/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST unrar-5.5.8.tar.gz 222285 BLAKE2B ec6317fc95674a3f282f92762ee89d2fd21d162a96b7b1ea29de9f4ab0ebf0bdb9c3e7141c7146d4bd2e570620db7d7850bc9a8c45a42ef745af1d75d4df5a71 SHA512 9eac83707fa47a03925e5f3e8adf47889064d748304b732d12a2d379ab525b441f1aa33216377d4ef445f45c4e8ad73d2cd0b560601ceac344c60571b77fd6aa |
22 |
DIST unrar-5.6.1.tar.gz 225408 BLAKE2B 1b4cef7b55dec0658d4eca09e9dc933ed1ad10d87dabe3626a01974bddb51dabf89c39f2db200cbe4388a682c0a756c720d116b9654e4539bfca1658396d0768 SHA512 62f37f9e3deb86651c92832190fa27a8e4490084c6a95f42e8a5f5668fbc7aafd9c273a2c60683c3534b614e0ca44b20d18598296f67edb0812850a50b807e77 |
23 |
+DIST unrar-5.6.2.tar.gz 225677 BLAKE2B a8eaf1ca3262caedb1f1a44109d26e688208d62c2424b476e40b90406be8d6274073bae4f1963b0f7eec4e978a25347b36be8561e74143c6a6ce84e2c4956130 SHA512 67f958330bc58fecc2fde3a16073bb44b61b5fd4a0ff19c5e345ce830a1ff3f00f3fb2507455912b7b3252804b9d27a92c4469f31513337569fed298d6af7655 |
24 |
|
25 |
diff --git a/app-arch/unrar/unrar-5.6.2.ebuild b/app-arch/unrar/unrar-5.6.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a5e2977fed6 |
28 |
--- /dev/null |
29 |
+++ b/app-arch/unrar/unrar-5.6.2.ebuild |
30 |
@@ -0,0 +1,68 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="6" |
35 |
+ |
36 |
+inherit eutils flag-o-matic multilib toolchain-funcs |
37 |
+ |
38 |
+MY_PN=${PN}src |
39 |
+ |
40 |
+DESCRIPTION="Uncompress rar files" |
41 |
+HOMEPAGE="http://www.rarlab.com/rar_add.htm" |
42 |
+SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="unRAR" |
45 |
+# subslot = soname version |
46 |
+SLOT="0/5" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
48 |
+IUSE="" |
49 |
+ |
50 |
+RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417" |
51 |
+ |
52 |
+S=${WORKDIR}/unrar |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-5.5.5-build.patch |
56 |
+ "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch |
57 |
+) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" ) |
63 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
64 |
+ sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" ) |
65 |
+ else |
66 |
+ sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" ) |
67 |
+ fi |
68 |
+ sed -i "${sed_args[@]}" makefile || die |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ mkdir -p build-{lib,bin} |
73 |
+ printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die |
74 |
+ cp build-{lib,bin}/Makefile || die |
75 |
+} |
76 |
+ |
77 |
+src_compile() { |
78 |
+ unrar_make() { |
79 |
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@" |
80 |
+ } |
81 |
+ |
82 |
+ unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib |
83 |
+ ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die |
84 |
+ ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die |
85 |
+ |
86 |
+ unrar_make -C build-bin |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ dobin build-bin/unrar |
91 |
+ dodoc readme.txt |
92 |
+ |
93 |
+ dolib.so build-lib/libunrar* |
94 |
+ |
95 |
+ insinto /usr/include/libunrar${PV%.*.*} |
96 |
+ doins *.hpp |
97 |
+ dosym libunrar${PV%.*.*} /usr/include/libunrar |
98 |
+} |