tar: inherit gettext & use a .inc to avoid duplicated metadata.
authorChris Larson <clarson@mvista.com>
Tue, 11 Aug 2009 18:16:09 +0000 (11:16 -0700)
committerChris Larson <clarson@mvista.com>
Thu, 20 Aug 2009 19:25:01 +0000 (12:25 -0700)
Signed-off-by: Chris Larson <clarson@mvista.com>
recipes/tar/tar-native_1.13.93.bb
recipes/tar/tar.inc [new file with mode: 0644]
recipes/tar/tar_1.13.93.bb
recipes/tar/tar_1.18.bb
recipes/tar/tar_1.20.bb

index 4a7aae3..ea9c328 100644 (file)
@@ -1,7 +1,5 @@
-SECTION = "base"
 require tar_${PV}.bb
 inherit native
-S = "${WORKDIR}/tar-${PV}"
 
 do_stage() {
        install -m 755 src/tar ${STAGING_BINDIR}
diff --git a/recipes/tar/tar.inc b/recipes/tar/tar.inc
new file mode 100644 (file)
index 0000000..8fbc2f8
--- /dev/null
@@ -0,0 +1,25 @@
+DESCRIPTION = "GNU tar saves many files together into a single tape \
+or disk archive, and can restore individual files from the archive."
+SECTION = "base"
+LICENSE = "GPLv3"
+
+SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2"
+
+inherit autotools gettext
+
+do_install () {
+       autotools_do_install
+       install -d ${D}${base_bindir}
+       mv ${D}${bindir}/tar ${D}${base_bindir}/tar.${PN}
+       mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
+}
+
+pkg_postinst_${PN} () {
+       update-alternatives --install ${base_bindir}/tar tar tar.${PN} 100
+       update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+       update-alternatives --remove tar tar.${PN}
+       update-alternatives --remove rmt rmt.${PN}
+}
index 6c71395..ea56c0d 100644 (file)
@@ -1,28 +1,8 @@
-SECTION = "base"
-DESCRIPTION = "GNU tar saves many files together into a single tape \
-or disk archive, and can restore individual files from the archive."
-LICENSE = "GPL"
+require tar.inc
+
+LICENSE = "GPLv2"
 PR = "r1"
 
 SRC_URI = "ftp://alpha.gnu.org/gnu/tar/tar-${PV}.tar.gz \
-          file://configure.patch;patch=1 \
-          file://m4.patch;patch=1"
-
-inherit autotools
-
-do_install () {
-       autotools_do_install
-       install -d ${D}${base_bindir}
-       mv ${D}${bindir}/tar ${D}${base_bindir}/tar.${PN}
-       mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
-}
-
-pkg_postinst_${PN} () {
-       update-alternatives --install ${base_bindir}/tar tar tar.${PN} 100
-       update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 100
-}
-
-pkg_prerm_${PN} () {
-       update-alternatives --remove tar tar.${PN}
-       update-alternatives --remove rmt rmt.${PN}
-}
+           file://configure.patch;patch=1 \
+           file://m4.patch;patch=1"
index 701c0b7..25163ac 100644 (file)
@@ -1,25 +1 @@
-DESCRIPTION = "GNU tar saves many files together into a single tape \
-or disk archive, and can restore individual files from the archive."
-SECTION = "base"
-LICENSE = "GPLv3"
-
-SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2"
-
-inherit autotools
-
-do_install () {
-       autotools_do_install
-       install -d ${D}${base_bindir}
-       mv ${D}${bindir}/tar ${D}${base_bindir}/tar.${PN}
-       mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
-}
-
-pkg_postinst_${PN} () {
-       update-alternatives --install ${base_bindir}/tar tar tar.${PN} 100
-       update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 100
-}
-
-pkg_prerm_${PN} () {
-       update-alternatives --remove tar tar.${PN}
-       update-alternatives --remove rmt rmt.${PN}
-}
+require tar.inc
index 701c0b7..25163ac 100644 (file)
@@ -1,25 +1 @@
-DESCRIPTION = "GNU tar saves many files together into a single tape \
-or disk archive, and can restore individual files from the archive."
-SECTION = "base"
-LICENSE = "GPLv3"
-
-SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2"
-
-inherit autotools
-
-do_install () {
-       autotools_do_install
-       install -d ${D}${base_bindir}
-       mv ${D}${bindir}/tar ${D}${base_bindir}/tar.${PN}
-       mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
-}
-
-pkg_postinst_${PN} () {
-       update-alternatives --install ${base_bindir}/tar tar tar.${PN} 100
-       update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 100
-}
-
-pkg_prerm_${PN} () {
-       update-alternatives --remove tar tar.${PN}
-       update-alternatives --remove rmt rmt.${PN}
-}
+require tar.inc