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

Collapse All | Expand All

(-)/usr/portage/dev-lang/lua/lua-5.1.5-r100.ebuild (-5 / +14 lines)
Lines 13-22 Link Here
13
LICENSE="MIT"
13
LICENSE="MIT"
14
SLOT="5.1"
14
SLOT="5.1"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
16
IUSE="+deprecated emacs readline static"
16
IUSE="+deprecated emacs readline static crosshosted"
17
17
18
RDEPEND="readline? ( >=sys-libs/readline-6.2_p5-r1[${MULTILIB_USEDEP}] )
18
RDEPEND="readline? ( >=sys-libs/readline-6.2_p5-r1[${MULTILIB_USEDEP}] )
19
	app-admin/eselect-lua
19
	!crosshosted? ( app-admin/eselect-lua )
20
	!dev-lang/lua:0"
20
	!dev-lang/lua:0"
21
DEPEND="${RDEPEND}
21
DEPEND="${RDEPEND}
22
	sys-devel/libtool"
22
	sys-devel/libtool"
Lines 70-76 Link Here
70
	sed -i \
70
	sed -i \
71
		-e 's:/usr/local:'${EPREFIX}'/usr:' \
71
		-e 's:/usr/local:'${EPREFIX}'/usr:' \
72
		-e "s:\([/\"]\)\<lib\>:\1$(get_libdir):g" \
72
		-e "s:\([/\"]\)\<lib\>:\1$(get_libdir):g" \
73
		etc/lua.pc src/luaconf.h || die
73
		src/luaconf.h || die
74
}
74
}
75
75
76
multilib_src_compile() {
76
multilib_src_compile() {
Lines 101-108 Link Here
101
	emake INSTALL_TOP="${ED}/usr" INSTALL_LIB="${ED}/usr/$(get_libdir)" \
101
	emake INSTALL_TOP="${ED}/usr" INSTALL_LIB="${ED}/usr/$(get_libdir)" \
102
			V=${SLOT} gentoo_install
102
			V=${SLOT} gentoo_install
103
103
104
	insinto /usr/$(get_libdir)/pkgconfig
104
	# We want packages to find our things...
105
	newins etc/lua.pc lua${SLOT}.pc
105
	local PATCH_PV=$(get_version_component_range 1-2)
106
	cp "${FILESDIR}/luav.pc" "${WORKDIR}/lua.pc"
107
	sed -i \
108
		-e "s:^V=.*:V= ${PATCH_PV}:" \
109
		-e "s:^R=.*:R= ${PV}:" \
110
		-e "s:/,lib,:/$(get_libdir):g" \
111
		"${WORKDIR}/lua.pc"
112
113
	insinto "/usr/$(get_libdir)/pkgconfig"
114
	newins "${WORKDIR}/lua.pc" "lua${SLOT}.pc"
106
}
115
}
107
116
108
multilib_src_install_all() {
117
multilib_src_install_all() {

Return to bug 539826