diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2016-01-07 10:08:31 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2016-01-07 10:08:31 +0100 |
commit | 17ae9468dea3f3acab18a9310958c74bc6d65d64 (patch) | |
tree | 9369b914380a148c9d4dd14ea185812921ea68ff /app-arch | |
parent | sys-block/di: Bump to version 4.38 (diff) | |
download | gentoo-17ae9468dea3f3acab18a9310958c74bc6d65d64.tar.gz gentoo-17ae9468dea3f3acab18a9310958c74bc6d65d64.tar.bz2 gentoo-17ae9468dea3f3acab18a9310958c74bc6d65d64.zip |
app-arch/unrar: Bump to version 5.3.9
Package-Manager: portage-2.2.26
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/unrar/Manifest | 1 | ||||
-rw-r--r-- | app-arch/unrar/unrar-5.3.9.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/app-arch/unrar/Manifest b/app-arch/unrar/Manifest index c1b0109c58a5..eb9f199d4186 100644 --- a/app-arch/unrar/Manifest +++ b/app-arch/unrar/Manifest @@ -4,3 +4,4 @@ DIST unrarsrc-5.3.3.tar.gz 221930 SHA256 099c67a2fdb76e55386e4496d28cf6fd1ffd9ac DIST unrarsrc-5.3.6.tar.gz 223184 SHA256 b917f2c5258ff2012008f9aa46984ad22dce21702eb264623b256bb8c2577c1b SHA512 b596f69a7d1b5f6a1e3dc0f060018589dc415463c2a9f403a365e10f8e362c09de4d295df04939f2a33c8daf88de7fbe32395043b978636ea7eaa1c1d2ad80fc WHIRLPOOL 6016b9ead3c2ef573e28ff05809c56e8037c23c01ee05fca0ef46eccbcc7e673b5fa57a0a6839ac2670cce928234c290e82a21a83471818e9a56eeff7984fb3e DIST unrarsrc-5.3.7.tar.gz 223455 SHA256 10b49c416df3ef38ad1d289b06d642c76f7cc44902adfc5bbed76096ef70d154 SHA512 ca07935e1febc471d770a992a50bdd2b3fa60f70b4a97a8b76e3eef6038644a2dcfa9726c2d630a35704762a5d69496ac00a700018831779ec1e4fc08b90919e WHIRLPOOL 3aee2f87bb7f09a78cbb45b86fb83565207dd72760ecbea6e2279f42f6b486651bd36bd972b032a75f49ae164ea698703914bd4e6bfb78d07cd1adbe6ac10ef6 DIST unrarsrc-5.3.8.tar.gz 223502 SHA256 52386ee592150f009a5438829dffc91c1e0006935e8ef701f3c8d8785b8eeb99 SHA512 0619a124fb84b64ba6944fdc9bcd8cd4821558fe54da89d9e84d6ce918ddb8176415d9290c72dbdd8455c9da48f3027e7a0fbc41531aac0e58cbcb6a095135e5 WHIRLPOOL feb11a472355dbedcf2d9837c7b9db3346e82f79a90503561674810324c21d045a260fdbba91d880ed6fac338671d563e783f7e1b99507c52636749f5d527cc6 +DIST unrarsrc-5.3.9.tar.gz 223514 SHA256 ff593728aed0ac865908b8ea52cff449a4c298f095db2f3d27438ffbc3e35d5b SHA512 7c53918b5e153040db49bc638c96fb74457a017d06401927acdafc3589c50938f21a242b4d381eb976be15b74d50464a075ccb032b46a898391419248705a935 WHIRLPOOL 08ea2bfaf7a06fbaa3ecdfb94764570245bcb64c1a657a2822b2acad5bf335341d2106de7db09de0449b649852de7d21522c2ee75d3a5cb5c86b16457bc9f803 diff --git a/app-arch/unrar/unrar-5.3.9.ebuild b/app-arch/unrar/unrar-5.3.9.ebuild new file mode 100644 index 000000000000..1f580235b731 --- /dev/null +++ b/app-arch/unrar/unrar-5.3.9.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils flag-o-matic multilib toolchain-funcs + +MY_PN=${PN}src + +DESCRIPTION="Uncompress rar files" +HOMEPAGE="http://www.rarlab.com/rar_add.htm" +SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz" + +LICENSE="unRAR" +SLOT="0" +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" +IUSE="" + +RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417" + +S=${WORKDIR}/unrar + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5.0.2-build.patch + epatch "${FILESDIR}"/${PN}-5.2.2-no-auto-clean.patch #528218 + 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} + printf 'VPATH = ..\ninclude ../makefile' > build-lib/Makefile || die + cp build-{lib,bin}/Makefile || die +} + +src_compile() { + unrar_make() { + emake 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* + + insinto /usr/include/libunrar${PV%.*.*} + doins *.hpp + dosym libunrar${PV%.*.*} /usr/include/libunrar +} |