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

Collapse All | Expand All

(-)lua-5.2.3-r1.ebuild (-7 / +5 lines)
Lines 3-9 Link Here
3
3
4
EAPI=5
4
EAPI=5
5
5
6
inherit eutils autotools multilib multilib-minimal portability toolchain-funcs versionator
6
inherit eutils autotools multilib multilib-minimal portability toolchain-funcs
7
7
8
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
8
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
9
HOMEPAGE="http://www.lua.org/"
9
HOMEPAGE="http://www.lua.org/"
Lines 26-34 Link Here
26
)
26
)
27
27
28
src_prepare() {
28
src_prepare() {
29
	local PATCH_PV=$(get_version_component_range 1-2)
29
	epatch "${FILESDIR}"/${PN}-${SLOT}-make-r1.patch
30
31
	epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.patch
32
30
33
	# use glibtool on Darwin (versus Apple libtool)
31
	# use glibtool on Darwin (versus Apple libtool)
34
	if [[ ${CHOST} == *-darwin* ]] ; then
32
	if [[ ${CHOST} == *-darwin* ]] ; then
Lines 102-108 Link Here
102
			RPATH="${EPREFIX}/usr/$(get_libdir)/" \
100
			RPATH="${EPREFIX}/usr/$(get_libdir)/" \
103
			LUA_LIBS="${mylibs}" \
101
			LUA_LIBS="${mylibs}" \
104
			LIB_LIBS="${liblibs}" \
102
			LIB_LIBS="${liblibs}" \
105
			V=$(get_version_component_range 1-2) \
103
			V="${SLOT}" \
106
			gentoo_all
104
			gentoo_all
107
}
105
}
108
106
Lines 111-120 Link Here
111
			V=${SLOT} gentoo_install
109
			V=${SLOT} gentoo_install
112
110
113
	# We want packages to find our things...
111
	# We want packages to find our things...
114
	cp "${FILESDIR}/lua.pc" "${WORKDIR}"
112
	cp "${FILESDIR}/lua.pc" "${WORKDIR}/lua.pc"
115
	sed -i \
113
	sed -i \
116
		-e "s:^prefix= :prefix= ${EPREFIX}:" \
114
		-e "s:^prefix= :prefix= ${EPREFIX}:" \
117
		-e "s:^V=.*:V= ${PATCH_PV}:" \
115
		-e "s:^V=.*:V= ${SLOT}:" \
118
		-e "s:^R=.*:R= ${PV}:" \
116
		-e "s:^R=.*:R= ${PV}:" \
119
		-e "s:/,lib,:/$(get_libdir):g" \
117
		-e "s:/,lib,:/$(get_libdir):g" \
120
		"${WORKDIR}/lua.pc"
118
		"${WORKDIR}/lua.pc"

Return to bug 602476