Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 337550
Collapse All | Expand All

(-)jusb-0.4.4-r1.ebuild (-3 / +3 lines)
Lines 42-52 Link Here
42
	# to make jusb compile on 2.6 kernels
42
	# to make jusb compile on 2.6 kernels
43
	! kernel_is 2 4 && epatch ${FILESDIR}/${P}-native.patch
43
	! kernel_is 2 4 && epatch ${FILESDIR}/${P}-native.patch
44
44
45
	epatch ${FILESDIR}/${P}-makefile.patch
46
47
	sed -i \
45
	sed -i \
48
		-e 's#-shared#-shared -Wl,-soname=libjusb.so#' \
46
		-e 's#-shared#-shared -Wl,-soname=libjusb.so#' \
49
		-e 's#javac#javac $(JAVACFLAGS)#' \
47
		-e 's#javac#javac $(JAVACFLAGS)#' \
48
		-e 's#$(CC)#$(CC) $(LDFLAGS)#' \
49
		-e 's#^CFLAGS.*#CFLAGS := $(CFLAGS) $(RPM_OPT_FLAGS)#' \
50
		"${S}/Makefile" || die "sed failed"
50
		"${S}/Makefile" || die "sed failed"
51
}
51
}
52
52
Lines 58-64 Link Here
58
	append-flags -fPIC
58
	append-flags -fPIC
59
59
60
	# bug #279088
60
	# bug #279088
61
	emake -j1 || die "Failed to compile"
61
	emake -j1 CC="$(tc-getCC)" || die "Failed to compile"
62
	use doc && make javadoc
62
	use doc && make javadoc
63
}
63
}
64
64

Return to bug 337550