Annotation of /branches/R11-stable/core/tzdata/tzdata-2013d-r1.smage2
Parent Directory
|
Revision Log
Revision 18308 -
(hide annotations)
(download)
Mon Jul 8 06:37:38 2013 UTC (10 years, 11 months ago) by niro
Original Path: trunk/core/tzdata/tzdata-2013d-r1.smage2
File size: 1433 byte(s)
Mon Jul 8 06:37:38 2013 UTC (10 years, 11 months ago) by niro
Original Path: trunk/core/tzdata/tzdata-2013d-r1.smage2
File size: 1433 byte(s)
-upstream says tar.gz, but really it's only a tar
1 | niro | 18307 | # $Id$ |
2 | |||
3 | PNAME="tzdata" | ||
4 | PVER="2013d" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="sys-libs" | ||
8 | |||
9 | DESCRIPTION="Timezone and daylight saving time data." | ||
10 | HOMEPAGE="http://www.iana.org/time-zones/" | ||
11 | |||
12 | DEPEND="" | ||
13 | SDEPEND=">= virtual/glibc" | ||
14 | |||
15 | niro | 18308 | # upstream says tar.gz, but really it's only a tar |
16 | SRCFILE="${PNAME}${PVER}.tar" | ||
17 | DL_SRCFILE="${SRCFILE}.gz" | ||
18 | niro | 18307 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |||
20 | sminclude mtools | ||
21 | |||
22 | SRC_URI=( | ||
23 | niro | 18308 | "http://www.iana.org/time-zones/repository/releases/${DL_SRCFILE} ${SRCFILE}" |
24 | niro | 18307 | mirror://${PNAME}/${SRCFILE} |
25 | ) | ||
26 | |||
27 | UP2SEPERATOR="a" | ||
28 | UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME} | lasttarball gz" | ||
29 | |||
30 | src_prepare() | ||
31 | { | ||
32 | munpack ${SRCFILE} ${SRCDIR} || die | ||
33 | chmod +x ${SRCDIR}/yearistype.sh || die | ||
34 | } | ||
35 | |||
36 | src_install() | ||
37 | { | ||
38 | cd ${SRCDIR} | ||
39 | |||
40 | local zones | ||
41 | zones=( africa | ||
42 | antarctica | ||
43 | asia | ||
44 | australasia | ||
45 | backward | ||
46 | etcetera | ||
47 | europe | ||
48 | factory | ||
49 | northamerica | ||
50 | pacificnew | ||
51 | solar87 | ||
52 | solar88 | ||
53 | solar89 | ||
54 | southamerica | ||
55 | systemv ) | ||
56 | |||
57 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die | ||
58 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die | ||
59 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die | ||
60 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die | ||
61 | minstallfile iso3166.tab /usr/share/zoneinfo/ || die | ||
62 | minstallfile zone.tab /usr/share/zoneinfo/ || die | ||
63 | mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die | ||
64 | mchmod 0444 /usr/share/zoneinfo/zone.tab || die | ||
65 | } |