summaryrefslogtreecommitdiff
path: root/recipes/tzcode
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-09-18 17:11:45 -0700
committerKhem Raj <raj.khem@gmail.com>2009-09-18 17:13:53 -0700
commit82e740b54d24abc4a4b93d60d2d5b5e96432e128 (patch)
treef2d6fd5d29c38c8e87e72ab9bbdd752221445d82 /recipes/tzcode
parenta95c355af46bdc395cc8e1141682ab802ac48130 (diff)
tzcode-native_2009k.bb, tzdata_2009m.bb: New timezone data
* Add new recipes for latest zoneinfo data * Resort to INC_PR * Abstract out common parts into .inc files. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/tzcode')
-rw-r--r--recipes/tzcode/tzcode-native.inc17
-rw-r--r--recipes/tzcode/tzcode-native_2007k.bb22
-rw-r--r--recipes/tzcode/tzcode-native_2009k.bb5
3 files changed, 26 insertions, 18 deletions
diff --git a/recipes/tzcode/tzcode-native.inc b/recipes/tzcode/tzcode-native.inc
new file mode 100644
index 0000000000..8d3d6ddee7
--- /dev/null
+++ b/recipes/tzcode/tzcode-native.inc
@@ -0,0 +1,17 @@
+DESCRIPTION = "tzcode, timezone zoneinfo utils -- zic, zdump, tzselect"
+INC_PR = "r1"
+
+S = "${WORKDIR}"
+
+inherit native
+
+do_stage () {
+ install -d ${STAGING_BINDIR_NATIVE}
+ install -m 755 zic ${STAGING_BINDIR_NATIVE}/
+ install -m 755 zdump ${STAGING_BINDIR_NATIVE}/
+ install -m 755 tzselect ${STAGING_BINDIR_NATIVE}/
+}
+
+do_install () {
+ :
+}
diff --git a/recipes/tzcode/tzcode-native_2007k.bb b/recipes/tzcode/tzcode-native_2007k.bb
index 6593cc3a24..fe0fb87a9a 100644
--- a/recipes/tzcode/tzcode-native_2007k.bb
+++ b/recipes/tzcode/tzcode-native_2007k.bb
@@ -1,21 +1,7 @@
-DESCRIPTION = "tzcode, timezone zoneinfo utils -- zic, zdump, tzselect"
-PR = "r0"
-
+require tzcode-native.inc
SRC_URI = "\
- http://bent.latency.net/bent/darcs/zoneinfo-2007k/src/tzcode${PV}.tar.gz \
- http://bent.latency.net/bent/darcs/zoneinfo-2007k/src/tzdata${PV}.tar.gz \
+ http://bent.latency.net/bent/darcs/zoneinfo-${PV}/src/tzcode${PV}.tar.gz \
+ http://bent.latency.net/bent/darcs/zoneinfo-${PV}/src/tzdata${PV}.tar.gz \
"
-S = "${WORKDIR}"
-
-inherit native
-
-do_stage () {
- install -d ${STAGING_BINDIR_NATIVE}
- install -m 755 zic ${STAGING_BINDIR_NATIVE}/
- install -m 755 zdump ${STAGING_BINDIR_NATIVE}/
- install -m 755 tzselect ${STAGING_BINDIR_NATIVE}/
-}
-do_install () {
- :
-}
+PR = "${INC_PR}.0"
diff --git a/recipes/tzcode/tzcode-native_2009k.bb b/recipes/tzcode/tzcode-native_2009k.bb
new file mode 100644
index 0000000000..59babb4856
--- /dev/null
+++ b/recipes/tzcode/tzcode-native_2009k.bb
@@ -0,0 +1,5 @@
+require tzcode-native.inc
+SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzcode${PV}.tar.gz \
+ ftp://elsie.nci.nih.gov/pub/tzdata2009m.tar.gz \
+ "
+PR = "${INC_PR}.0"