diff options
author | Maciej Borzecki <maciej.borzecki@open-rnd.pl> | 2016-02-11 11:12:50 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-25 17:45:46 +0100 |
commit | 4047e5ca84c9b61fed0512b804aded0288679cf1 (patch) | |
tree | 566fb2ee5f6931948d29cf9815000da52a1f58c8 /meta-oe/recipes-devtools/lua | |
parent | 21a983bc3358ded6cf514c704bad18d36b453b35 (diff) | |
download | meta-openembedded-4047e5ca84c9b61fed0512b804aded0288679cf1.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-devtools/lua')
-rw-r--r-- | meta-oe/recipes-devtools/lua/lua/lua.pc.in (renamed from meta-oe/recipes-devtools/lua/lua/lua.pc) | 2 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/lua/lua_5.3.2.bb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/lua/lua/lua.pc b/meta-oe/recipes-devtools/lua/lua/lua.pc.in index e6f8b6f09..fe2201603 100644 --- a/meta-oe/recipes-devtools/lua/lua/lua.pc +++ b/meta-oe/recipes-devtools/lua/lua/lua.pc.in | |||
@@ -4,7 +4,7 @@ includedir=${prefix}/include | |||
4 | 4 | ||
5 | Name: Lua | 5 | Name: Lua |
6 | Description: Lua language engine | 6 | Description: Lua language engine |
7 | Version: 5.2.2 | 7 | Version: @VERSION@ |
8 | Requires: | 8 | Requires: |
9 | Libs: -L${libdir} -llua | 9 | Libs: -L${libdir} -llua |
10 | Libs.private: -lm | 10 | Libs.private: -lm |
diff --git a/meta-oe/recipes-devtools/lua/lua_5.3.2.bb b/meta-oe/recipes-devtools/lua/lua_5.3.2.bb index 0cc882df2..f97ed509f 100644 --- a/meta-oe/recipes-devtools/lua/lua_5.3.2.bb +++ b/meta-oe/recipes-devtools/lua/lua_5.3.2.bb | |||
@@ -8,7 +8,7 @@ PR = "r0" | |||
8 | 8 | ||
9 | DEPENDS = "readline" | 9 | DEPENDS = "readline" |
10 | SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ | 10 | SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ |
11 | file://lua.pc \ | 11 | file://lua.pc.in \ |
12 | " | 12 | " |
13 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', \ | 13 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', \ |
14 | 'http://www.lua.org/tests/lua-${PV}-tests.tar.gz;name=tarballtest \ | 14 | 'http://www.lua.org/tests/lua-${PV}-tests.tar.gz;name=tarballtest \ |
@@ -47,6 +47,8 @@ do_install () { | |||
47 | 'INSTALL_CMOD=${D}${libdir}/lua/5.3' \ | 47 | 'INSTALL_CMOD=${D}${libdir}/lua/5.3' \ |
48 | install | 48 | install |
49 | install -d ${D}${libdir}/pkgconfig | 49 | install -d ${D}${libdir}/pkgconfig |
50 | |||
51 | sed -e s/@VERSION@/${PV}/ ${WORKDIR}/lua.pc.in > ${WORKDIR}/lua.pc | ||
50 | install -m 0644 ${WORKDIR}/lua.pc ${D}${libdir}/pkgconfig/ | 52 | install -m 0644 ${WORKDIR}/lua.pc ${D}${libdir}/pkgconfig/ |
51 | rmdir ${D}${datadir}/lua/5.3 | 53 | rmdir ${D}${datadir}/lua/5.3 |
52 | rmdir ${D}${datadir}/lua | 54 | rmdir ${D}${datadir}/lua |