Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 507936 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-arch/unrar/unrar-5.1.2.ebuild (-4 / +7 lines)
Lines 22-31 Link Here
22
22
23
src_prepare() {
23
src_prepare() {
24
	epatch "${FILESDIR}"/${PN}-5.0.2-build.patch
24
	epatch "${FILESDIR}"/${PN}-5.0.2-build.patch
25
	sed -i \
25
	local sed_args=( -e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" )
26
		-e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" \
26
	if [[ ${CHOST} == *-darwin* ]] ; then
27
		-e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" \
27
		sed_args+=( -e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/libunrar$(get_libname ${PV%.*.*}):" )
28
		makefile || die
28
	else
29
		sed_args+=( -e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" )
30
	fi
31
	sed -i "${sed_args[@]}" makefile
29
}
32
}
30
33
31
src_compile() {
34
src_compile() {

Return to bug 507936