mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
lua: use PV for generating Version in lua.pc
Lua was updated to 5.3.2, however lua.pc still has 5.2.2 listed as
Version in pkg-config metadata file. Instead of bumping the Version
field in lua.pc make sure that we are future proof and update the field
automatically with value of ${PV}.
Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
21a983bc33
commit
4047e5ca84
@@ -4,7 +4,7 @@ includedir=${prefix}/include
|
||||
|
||||
Name: Lua
|
||||
Description: Lua language engine
|
||||
Version: 5.2.2
|
||||
Version: @VERSION@
|
||||
Requires:
|
||||
Libs: -L${libdir} -llua
|
||||
Libs.private: -lm
|
||||
@@ -8,7 +8,7 @@ PR = "r0"
|
||||
|
||||
DEPENDS = "readline"
|
||||
SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \
|
||||
file://lua.pc \
|
||||
file://lua.pc.in \
|
||||
"
|
||||
SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', \
|
||||
'http://www.lua.org/tests/lua-${PV}-tests.tar.gz;name=tarballtest \
|
||||
@@ -47,6 +47,8 @@ do_install () {
|
||||
'INSTALL_CMOD=${D}${libdir}/lua/5.3' \
|
||||
install
|
||||
install -d ${D}${libdir}/pkgconfig
|
||||
|
||||
sed -e s/@VERSION@/${PV}/ ${WORKDIR}/lua.pc.in > ${WORKDIR}/lua.pc
|
||||
install -m 0644 ${WORKDIR}/lua.pc ${D}${libdir}/pkgconfig/
|
||||
rmdir ${D}${datadir}/lua/5.3
|
||||
rmdir ${D}${datadir}/lua
|
||||
|
||||
Reference in New Issue
Block a user