[oe-commits] woglinde : gettext: finer granularity of the libs

GIT User account git at amethyst.openembedded.net
Tue Dec 9 23:23:40 UTC 2008


Module: openembedded.git
Branch: woglinde/gettext
Commit: ae3b89b882f85bbd614e359da8e2cbd119fe3793
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ae3b89b882f85bbd614e359da8e2cbd119fe3793

Author: woglinde <heinold at inf.fu-berlin.de>
Date:   Wed Dec 10 00:16:32 2008 +0100

gettext: finer granularity of the libs
* in most cases only libintl is needed without the binaries
  working on the .po files
* put libintl in the new gettext-libintl package
* bump PR

---

 packages/gettext/gettext_0.17.bb |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/packages/gettext/gettext_0.17.bb b/packages/gettext/gettext_0.17.bb
index 55ffb7d..515a26f 100644
--- a/packages/gettext/gettext_0.17.bb
+++ b/packages/gettext/gettext_0.17.bb
@@ -2,9 +2,11 @@ DESCRIPTION = "The GNU internationalization library."
 HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html"
 SECTION = "libs"
 LICENSE = "GPL"
-PR = "r2"
+PR = "r3"
 DEPENDS = "gettext-native virtual/libiconv ncurses expat"
+RCONFLICTS_gettext-libintl = "proxy-libintl"
 PROVIDES = "virtual/libintl"
+RPROVIDES_gettext-libintl = "virtual/libintl"
 
 SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
 	   file://autotools.patch;patch=1 \
@@ -44,10 +46,35 @@ acpaths = '-I ${S}/autoconf-lib-link/m4/ \
 # 140     KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk
 # 4       KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk
 
-PACKAGES =+ "libgettextlib libgettextsrc"
+PACKAGES =+ "gettext-libintl libgettextlib libgettextsrc"
+FILES_gettext-libintl = "${libdir}/libintl*.so.*"
 FILES_libgettextlib = "${libdir}/libgettextlib-*.so*"
 FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*"
 
+FILES_${PN}-dev += "${bindir}/autopoint \
+                    ${bindir}/gettextize \
+                    ${datadir}/gettext/intl/* \
+                    ${datadir}/gettext/intl/gettext.h \
+                    ${datadir}/gettext/config.rpath \
+                    ${datadir}/gettext/po/* \
+                    ${datadir}/gettext/projects/* \
+                   "
+
+
 do_stage () {
 	autotools_stage_all
 }
+
+pkg_postinst_${PN}-dev () {
+       for i in `ls -d /usr/share/automake*`
+       do
+                cp /usr/share/gettext/config.rpath ${i}
+       done
+}
+
+pkg_postrm_${PN}-dev () {
+        for i in `ls -d /usr/share/automake*`
+        do
+                rm ${i}/config.rpath
+        done
+}





More information about the Openembedded-commits mailing list