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 / +11 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
	if [[ ${CHOST} == *-darwin* ]] ; then
26
		-e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" \
26
		sed -i \
27
		-e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" \
27
			-e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" \
28
		makefile || die
28
			-e "s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/lib/libunrar$(get_libname ${PV%.*.*}):" \
29
			makefile || die
30
	else
31
		sed -i \
32
			-e "/libunrar/s:.so:$(get_libname ${PV%.*.*}):" \
33
			-e "s:-shared:& -Wl,-soname -Wl,libunrar$(get_libname ${PV%.*.*}):" \
34
			makefile || die
35
	fi
29
}
36
}
30
37
31
src_compile() {
38
src_compile() {

Return to bug 507936