Contents of /branches/R11-stable/core/tzdata/tzdata-2014e-r1.smage2
Parent Directory | Revision Log
Revision 21665 -
(show annotations)
(download)
Mon Jul 21 09:28:28 2014 UTC (10 years, 2 months ago) by niro
File size: 1418 byte(s)
Mon Jul 21 09:28:28 2014 UTC (10 years, 2 months ago) by niro
File size: 1418 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="tzdata" |
4 | PVER="2014e" |
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 | # upstream says tar.gz, but really it's only a tar |
31 | install -d ${SRCDIR} || die |
32 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${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 | southamerica |
52 | systemv ) |
53 | |
54 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die |
55 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die |
56 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die |
57 | zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die |
58 | minstallfile iso3166.tab /usr/share/zoneinfo/ || die |
59 | minstallfile zone.tab /usr/share/zoneinfo/ || die |
60 | mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die |
61 | mchmod 0444 /usr/share/zoneinfo/zone.tab || die |
62 | } |