Skip to contentSkip to conversation

gettext: move autopoint to gettext-minimal-native

PATCH New Ross Burton 1 participant 1 message Jan 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gettext: move autopoint to gettext-minimal-native

Some recipes actually need autopoint to configure, so move it to gettext-minimal-native so that it's always available instead of only available if NLS is enabled (at which point, gettext-native is available).

---
 .../gettext-minimal-0.19.8.1/archive.dir.tar.bz2   | Bin 0 -> 4270972 bytes
 .../gettext/gettext-minimal-0.19.8.1/autopoint     | 811 +++++++++++++++++++++
 .../gettext/gettext-minimal-native_0.19.8.1.bb     |   8 +-
 meta/recipes-core/gettext/gettext_0.19.8.1.bb      |   8 +-
 4 files changed, 822 insertions(+), 5 deletions(-)
 create mode 100644 meta/recipes-core/gettext/gettext-minimal-0.19.8.1/archive.dir.tar.bz2
 create mode 100755 meta/recipes-core/gettext/gettext-minimal-0.19.8.1/autopoint
meta/recipes-core/gettext/gettext-minimal-0.19.8.1/archive.dir.tar.bz2 new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..606fb5706498ffbca640705a25498165d4e9b739
GIT binary patch
meta/recipes-core/gettext/gettext-minimal-0.19.8.1/autopoint new file +811 -0

811 lines not on this page · raw message

meta/recipes-core/gettext/gettext-minimal-native_0.19.8.1.bb +6 -2
index 26ff19975d2..64130612ed7 100644
@@ -9,6 +9,8 @@ SRC_URI = "file://aclocal.tgz \
            file://remove-potcdate.sin \
            file://COPYING \
            file://0001-PATCH-Disable-the-test-to-convert-euc-jp.patch \
+           file://autopoint \
+           file://archive.dir.tar.bz2;unpack=0 \
 "
 
 INHIBIT_DEFAULT_DEPS = "1"
@@ -22,10 +24,12 @@ inherit native
 S = "${WORKDIR}"
 
 do_install () {
-	install -d ${D}${datadir}/aclocal/
+	install -d ${D}${datadir}/aclocal/ ${D}${bindir} ${D}${datadir}/gettext/po/
+	sed -e "s|FIXMESTAGINGDIRHOST|${STAGING_DIR_NATIVE}|g" <${WORKDIR}/autopoint >${D}${bindir}/autopoint
+	chmod +x ${D}${bindir}/autopoint
 	cp ${WORKDIR}/*.m4 ${D}${datadir}/aclocal/
-	install -d ${D}${datadir}/gettext/po/
 	cp ${WORKDIR}/config.rpath ${D}${datadir}/gettext/
+	cp ${WORKDIR}/archive.dir.tar.bz2 ${D}${datadir}/gettext/
 	cp ${WORKDIR}/Makefile.in.in ${D}${datadir}/gettext/po/
 	cp ${WORKDIR}/remove-potcdate.sin ${D}${datadir}/gettext/po/
 }
meta/recipes-core/gettext/gettext_0.19.8.1.bb +5 -3
index c2059e608b1..46ea68ff5b5 100644
@@ -107,14 +107,16 @@ do_install_append() {
 }
 
 do_install_append_class-native () {
+	# These files are provided by gettext-minimal-native
+	rm ${D}${bindir}/autopoint
 	rm ${D}${datadir}/aclocal/*
 	rm ${D}${datadir}/gettext/config.rpath
+	rm ${D}${datadir}/gettext/archive.dir.tar.bz2
 	rm ${D}${datadir}/gettext/po/Makefile.in.in
 	rm ${D}${datadir}/gettext/po/remove-potcdate.sin
 
-        create_wrapper ${D}${bindir}/msgfmt \
-                GETTEXTDATADIR="${STAGING_DATADIR_NATIVE}/gettext-0.19.8/"
-
+	create_wrapper ${D}${bindir}/msgfmt \
+		GETTEXTDATADIR="${STAGING_DATADIR_NATIVE}/gettext-0.19.8/"
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.11.0