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

Collapse All | Expand All

(-)gentoo/dev-lang/lua/lua-5.2.3-r1.ebuild (-7 / +5 lines)
Lines 27-35 Link Here
27
)
27
)
28
28
29
src_prepare() {
29
src_prepare() {
30
	local PATCH_PV=$(get_version_component_range 1-2)
30
	epatch "${FILESDIR}"/${PN}-${SLOT}-make-r1.patch
31
32
	epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.patch
33
31
34
	[ -d "${FILESDIR}/${PV}" ] && \
32
	[ -d "${FILESDIR}/${PV}" ] && \
35
		EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
33
		EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
Lines 106-120 Link Here
106
			V=${SLOT} gentoo_install
104
			V=${SLOT} gentoo_install
107
105
108
	# We want packages to find our things...
106
	# We want packages to find our things...
109
	cp "${FILESDIR}/lua.pc" "${WORKDIR}"
107
	cp "${FILESDIR}/lua-r1.pc" "${WORKDIR}/lua${SLOT}.pc"
110
	sed -i \
108
	sed -i \
111
		-e "s:^V=.*:V= ${PATCH_PV}:" \
109
		-e "s:^V=.*:V= ${SLOT}:" \
112
		-e "s:^R=.*:R= ${PV}:" \
110
		-e "s:^R=.*:R= ${PV}:" \
113
		-e "s:/,lib,:/$(get_libdir):g" \
111
		-e "s:/,lib,:/$(get_libdir):g" \
114
		"${WORKDIR}/lua.pc"
112
		"${WORKDIR}/lua${SLOT}.pc"
115
113
116
	insinto "/usr/$(get_libdir)/pkgconfig"
114
	insinto "/usr/$(get_libdir)/pkgconfig"
117
	newins "${WORKDIR}/lua.pc" "lua${SLOT}.pc"
115
	newins "${WORKDIR}/lua${SLOT}.pc"
118
}
116
}
119
117
120
multilib_src_install_all() {
118
multilib_src_install_all() {

Return to bug 524460