Diff lua-5.1.5-r4 with a lua-5.1.5-r100

/usr/portage/dev-lang/lua/lua-5.1.5-r100.ebuild 2019-01-26 00:09:00.000000000 +0300
10 10
SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
11 11

  
12 12
LICENSE="MIT"
13
SLOT="0"
14
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
13
SLOT="5.1"
14
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15 15
IUSE="+deprecated emacs readline static"
16 16

  
17
RDEPEND="readline? ( >=sys-libs/readline-6.2_p5-r1:0=[${MULTILIB_USEDEP}] )"
17
RDEPEND="readline? ( >=sys-libs/readline-6.2_p5-r1:0=[${MULTILIB_USEDEP}] )
18
	app-eselect/eselect-lua
19
	!dev-lang/lua:0"
18 20
DEPEND="${RDEPEND}
19 21
	sys-devel/libtool"
20 22
PDEPEND="emacs? ( app-emacs/lua-mode )"
21 23

  
24
SAN_SLOT="${SLOT//.}"
25

  
22 26
MULTILIB_WRAPPED_HEADERS=(
23
	/usr/include/luaconf.h
27
	/usr/include/lua${SLOT}/luaconf.h
24 28
)
25 29

  
26 30
src_prepare() {
27 31
	local PATCH_PV=$(get_version_component_range 1-2)
28 32

  
29
	epatch "${FILESDIR}/${P}-fix_vararg_calls.patch"
30

  
31
	epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.patch
33
	epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r2.patch
32 34
	epatch "${FILESDIR}"/${PN}-${PATCH_PV}-module_paths.patch
33 35

  
34 36
	# use glibtool on Darwin (versus Apple libtool)
......
40 42
	#EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
41 43

  
42 44
	# correct lua versioning
43
	sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:5:1/' src/Makefile || die
45
	sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:5:1/' src/Makefile
44 46

  
45
	sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html || die
47
	sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html
46 48

  
47 49
	if ! use deprecated ; then
48 50
		# patches from 5.1.4 still apply
......
94 96
			RPATH="${EPREFIX}/usr/$(get_libdir)/" \
95 97
			LUA_LIBS="${mylibs}" \
96 98
			LIB_LIBS="${liblibs}" \
97
			V=${PV} \
99
			V=$(get_version_component_range 1-2) \
98 100
			gentoo_all
99 101

  
100 102
	mv lua_test ../test/lua.static
......
102 104

  
103 105
multilib_src_install() {
104 106
	emake INSTALL_TOP="${ED}/usr" INSTALL_LIB="${ED}/usr/$(get_libdir)" \
105
			V=${PV} gentoo_install
107
			V=${SLOT} gentoo_install
106 108

  
107 109
	insinto /usr/$(get_libdir)/pkgconfig
108
	doins etc/lua.pc
110
	newins etc/lua.pc lua${SLOT}.pc
109 111
}
110 112

  
111 113
multilib_src_install_all() {
......
114 116

  
115 117
	doicon etc/lua.ico
116 118

  
117
	doman doc/lua.1 doc/luac.1
119
	newman doc/lua.1 lua${SLOT}.1
120
	newman doc/luac.1 luac${SLOT}.1
118 121
}
119 122

  
120 123
multilib_src_test() {
Thank you!