1 |
commit: f2eb24da54d74d2c5ec19b08c43ae34ddc344dc7 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 1 15:16:51 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 1 15:17:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2eb24da |
7 |
|
8 |
app-arch/unrar: bump to v5.6.7 |
9 |
|
10 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
12 |
|
13 |
app-arch/unrar/Manifest | 1 + |
14 |
app-arch/unrar/unrar-5.6.7.ebuild | 68 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest |
18 |
index f2dd6831ad5..40a19f214f8 100644 |
19 |
--- a/app-arch/unrar/Manifest |
20 |
+++ b/app-arch/unrar/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST unrar-5.5.8.tar.gz 222285 BLAKE2B ec6317fc95674a3f282f92762ee89d2fd21d162a96b7b1ea29de9f4ab0ebf0bdb9c3e7141c7146d4bd2e570620db7d7850bc9a8c45a42ef745af1d75d4df5a71 SHA512 9eac83707fa47a03925e5f3e8adf47889064d748304b732d12a2d379ab525b441f1aa33216377d4ef445f45c4e8ad73d2cd0b560601ceac344c60571b77fd6aa |
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 |
+DIST unrar-5.6.7.tar.gz 226579 BLAKE2B 32b6e70539e4ba0a09bac5eaf880ce555a1012516ba6f439060e6604b5274b17e3f5c8dfa721999243eda64fa9b1b53eda95f7b9df11320ade1873bf665ee3c0 SHA512 2c102fdc2f1a924a57c5492b966b0e1d0035bc3de2a78a46733f300d412ff9983fc5c717856faeb21e71c4bd090296e57e5b87888190867eb3c41f62550647e9 |
26 |
|
27 |
diff --git a/app-arch/unrar/unrar-5.6.7.ebuild b/app-arch/unrar/unrar-5.6.7.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..38403309066 |
30 |
--- /dev/null |
31 |
+++ b/app-arch/unrar/unrar-5.6.7.ebuild |
32 |
@@ -0,0 +1,68 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+ |
38 |
+inherit flag-o-matic multilib toolchain-funcs |
39 |
+ |
40 |
+MY_PN="${PN}src" |
41 |
+ |
42 |
+DESCRIPTION="Uncompress rar files" |
43 |
+HOMEPAGE="https://www.rarlab.com/rar_add.htm" |
44 |
+SRC_URI="https://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="unRAR" |
47 |
+# subslot = soname version |
48 |
+SLOT="0/5" |
49 |
+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" |
50 |
+IUSE="" |
51 |
+ |
52 |
+RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417" |
53 |
+ |
54 |
+S=${WORKDIR}/unrar |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${PN}-5.5.5-build.patch |
58 |
+ "${FILESDIR}"/${PN}-5.5.5-honor-flags.patch |
59 |
+) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ |
64 |
+ local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" ) |
65 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
66 |
+ sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" ) |
67 |
+ else |
68 |
+ sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" ) |
69 |
+ fi |
70 |
+ sed -i "${sed_args[@]}" makefile || die |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ mkdir -p build-{lib,bin} |
75 |
+ printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die |
76 |
+ cp build-{lib,bin}/Makefile || die |
77 |
+} |
78 |
+ |
79 |
+src_compile() { |
80 |
+ unrar_make() { |
81 |
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" STRIP=true "$@" |
82 |
+ } |
83 |
+ |
84 |
+ unrar_make CXXFLAGS+=" -fPIC" -C build-lib lib |
85 |
+ ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname) || die |
86 |
+ ln -s libunrar$(get_libname ${PV%.*.*}) build-lib/libunrar$(get_libname ${PV}) || die |
87 |
+ |
88 |
+ unrar_make -C build-bin |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ dobin build-bin/unrar |
93 |
+ dodoc readme.txt |
94 |
+ |
95 |
+ dolib.so build-lib/libunrar* |
96 |
+ |
97 |
+ insinto /usr/include/libunrar${PV%.*.*} |
98 |
+ doins *.hpp |
99 |
+ dosym libunrar${PV%.*.*} /usr/include/libunrar |
100 |
+} |