Contents of /branches/R11-stable/core/tzdata/tzdata-2013c-r1.smage2
Parent Directory | Revision Log
Revision 17729 -
(show annotations)
(download)
Wed Jun 26 12:07:55 2013 UTC (11 years, 3 months ago) by niro
File size: 1342 byte(s)
Wed Jun 26 12:07:55 2013 UTC (11 years, 3 months ago) by niro
File size: 1342 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="tzdata" |
4 | PVER="2013c" |
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 | SRCFILE="${PNAME}${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | http://www.iana.org/time-zones/repository/releases/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2SEPERATOR="a" |
26 | UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME} | lasttarball gz" |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} ${SRCDIR} || die |
31 | chmod +x ${SRCDIR}/yearistype.sh || die |
32 | } |
33 | |
34 | src_install() |
35 | { |
36 | cd ${SRCDIR} |
37 | |
38 | local zones |
39 | zones=( africa |
40 | antarctica |
41 | asia |
42 | australasia |
43 | backward |
44 | etcetera |
45 | europe |
46 | factory |
47 | northamerica |
48 | pacificnew |
49 | solar87 |
50 | solar88 |
51 | solar89 |
52 | southamerica |
53 | systemv ) |
54 | |
55 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die |
56 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die |
57 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die |
58 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die |
59 | minstallfile iso3166.tab /usr/share/zoneinfo/ || die |
60 | minstallfile zone.tab /usr/share/zoneinfo/ || die |
61 | mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die |
62 | mchmod 0444 /usr/share/zoneinfo/zone.tab || die |
63 | } |