[oe-commits] Enrico Scholz : ncurses: use ${PN} instead of hardcoded 'ncurses' in package names

git version control git at git.openembedded.org
Sun Aug 29 19:54:48 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: caa254da313862ba7d1a7093c7912604b5c58644
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=caa254da313862ba7d1a7093c7912604b5c58644

Author: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
Date:   Sun Aug 29 16:21:57 2010 +0200

ncurses: use ${PN} instead of hardcoded 'ncurses' in package names

Thanks to Eric Benard for noticing this.

Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>

---

 recipes/ncurses/ncurses_5.7.bb |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/recipes/ncurses/ncurses_5.7.bb b/recipes/ncurses/ncurses_5.7.bb
index 57374ec..8c5f78a 100644
--- a/recipes/ncurses/ncurses_5.7.bb
+++ b/recipes/ncurses/ncurses_5.7.bb
@@ -152,7 +152,8 @@ do_install() {
 
 python populate_packages_prepend () {
         libdir = bb.data.expand("${libdir}", d)
-        do_split_packages(d, libdir, '^lib(.*)\.so\..*', 'ncurses-lib%s', 'ncurses %s library', prepend=True, extra_depends = '', allow_links=True)
+        pnbase = bb.data.expand("${PN}-lib%s", d)
+        do_split_packages(d, libdir, '^lib(.*)\.so\..*', pnbase, 'ncurses %s library', prepend=True, extra_depends = '', allow_links=True)
 }
 
 
@@ -173,15 +174,15 @@ pkg_prerm_ncurses-tools () {
 BBCLASSEXTEND = "native sdk"
 
 PACKAGES = " \
-  ncurses-dbg \
-  ncurses-dev \
-  ncurses-doc \
-  ncurses-tools \
-  ncurses \
-  ncurses-static \
-  ncurses-terminfo \
+  ${PN}-dbg \
+  ${PN}-dev \
+  ${PN}-doc \
+  ${PN}-tools \
+  ${PN} \
+  ${PN}-static \
+  ${PN}-terminfo \
 "
-RSUGGESTS_${PN} = "ncurses-terminfo"
+RSUGGESTS_${PN} = "${PN}-terminfo"
 
 FILES_${PN} = "\
   ${bindir}/tput \
@@ -192,7 +193,7 @@ FILES_${PN} = "\
 
 # This keeps only tput/tset in ncurses
 # clear/reset are in already busybox
-FILES_ncurses-tools = "\
+FILES_${PN}-tools = "\
   ${bindir}/tic \
   ${bindir}/toe \
   ${bindir}/infotocap \
@@ -204,6 +205,6 @@ FILES_ncurses-tools = "\
   ${bindir}/tabs \
 "
 
-FILES_ncurses-terminfo = "\
+FILES_${PN}-terminfo = "\
   ${datadir}/terminfo \
 "





More information about the Openembedded-commits mailing list