diff options
author | Christoph Junghans <ottxor@gentoo.org> | 2014-05-09 00:10:05 +0000 |
---|---|---|
committer | Christoph Junghans <ottxor@gentoo.org> | 2014-05-09 00:10:05 +0000 |
commit | fe1b2723d4e719ca4cc95f0162ea37f51504a496 (patch) | |
tree | 3a16e389803a7e80a41707c15b701cebfeacfe73 /app-arch | |
parent | sync live ebuild (diff) | |
download | gentoo-2-fe1b2723d4e719ca4cc95f0162ea37f51504a496.tar.gz gentoo-2-fe1b2723d4e719ca4cc95f0162ea37f51504a496.tar.bz2 gentoo-2-fe1b2723d4e719ca4cc95f0162ea37f51504a496.zip |
added prefix support (bug #507936)
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key C2000586)
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/unrar/ChangeLog | 5 | ||||
-rw-r--r-- | app-arch/unrar/unrar-5.1.4.ebuild | 15 |
2 files changed, 13 insertions, 7 deletions
diff --git a/app-arch/unrar/ChangeLog b/app-arch/unrar/ChangeLog index eb7e27bb4d16..7d5caf7e9020 100644 --- a/app-arch/unrar/ChangeLog +++ b/app-arch/unrar/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-arch/unrar # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/ChangeLog,v 1.220 2014/05/06 02:40:46 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/ChangeLog,v 1.221 2014/05/09 00:10:05 ottxor Exp $ + + 09 May 2014; Christoph Junghans <ottxor@gentoo.org> unrar-5.1.4.ebuild: + added prefix support (bug #507936) *unrar-5.1.4 (06 May 2014) diff --git a/app-arch/unrar/unrar-5.1.4.ebuild b/app-arch/unrar/unrar-5.1.4.ebuild index e55b554cc295..ae1fd46027c4 100644 --- a/app-arch/unrar/unrar-5.1.4.ebuild +++ b/app-arch/unrar/unrar-5.1.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/unrar-5.1.4.ebuild,v 1.1 2014/05/06 02:40:46 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/unrar-5.1.4.ebuild,v 1.2 2014/05/09 00:10:05 ottxor Exp $ EAPI=5 inherit eutils flag-o-matic multilib toolchain-funcs @@ -13,7 +13,7 @@ SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz" LICENSE="unRAR" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~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" @@ -22,10 +22,13 @@ S=${WORKDIR}/unrar src_prepare() { epatch "${FILESDIR}"/${PN}-5.0.2-build.patch - sed -i \ - -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" \ - -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" \ - makefile || die + 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 } src_compile() { |