Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/timezone-data: timezone-data-2013a.ebuild ChangeLog
Date: Sun, 03 Mar 2013 01:54:28
Message-Id: 20130303015425.69FE52171E@flycatcher.gentoo.org
1 vapier 13/03/03 01:54:25
2
3 Modified: ChangeLog
4 Added: timezone-data-2013a.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.279 sys-libs/timezone-data/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.279&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.279&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.278&r2=1.279
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v
20 retrieving revision 1.278
21 retrieving revision 1.279
22 diff -u -r1.278 -r1.279
23 --- ChangeLog 3 Mar 2013 01:53:59 -0000 1.278
24 +++ ChangeLog 3 Mar 2013 01:54:25 -0000 1.279
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-libs/timezone-data
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.278 2013/03/03 01:53:59 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.279 2013/03/03 01:54:25 vapier Exp $
30 +
31 +*timezone-data-2013a (03 Mar 2013)
32 +
33 + 03 Mar 2013; Mike Frysinger <vapier@g.o>
34 + +files/timezone-data-2013a-makefile.patch, +timezone-data-2013a.ebuild:
35 + Version bump.
36
37 03 Mar 2013; Mike Frysinger <vapier@g.o> timezone-data-2012j.ebuild:
38 Stabilize for everyone.
39
40
41
42 1.1 sys-libs/timezone-data/timezone-data-2013a.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/timezone-data-2013a.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/timezone-data-2013a.ebuild?rev=1.1&content-type=text/plain
46
47 Index: timezone-data-2013a.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2013a.ebuild,v 1.1 2013/03/03 01:54:25 vapier Exp $
52
53 inherit eutils toolchain-funcs flag-o-matic
54
55 code_ver=${PV}
56 data_ver=${PV}
57 DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
58 HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
59 SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
60 http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz
61 ftp://munnari.oz.au/pub/tzdata${data_ver}.tar.gz
62 ftp://munnari.oz.au/pub/tzcode${code_ver}.tar.gz"
63
64 LICENSE="BSD public-domain"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
67 IUSE="nls elibc_FreeBSD elibc_glibc"
68
69 RDEPEND="!<sys-libs/glibc-2.3.5"
70
71 S=${WORKDIR}
72
73 src_unpack() {
74 unpack ${A}
75 epatch "${FILESDIR}"/${PN}-2013a-makefile.patch
76 tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
77 }
78
79 src_compile() {
80 local LDLIBS
81 tc-export CC
82 use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251
83 export NLS=$(usex nls 1 0)
84 if use nls && ! use elibc_glibc ; then
85 LDLIBS+=" -lintl" #154181
86 fi
87 emake \
88 CFLAGS="${CPPFLAGS} ${CFLAGS} -std=gnu99" \
89 LDFLAGS="${LDFLAGS}" \
90 LDLIBS="${LDLIBS}" \
91 || die "emake failed"
92 if tc-is-cross-compiler ; then
93 emake -C "${S}"-native \
94 CC=$(tc-getBUILD_CC) \
95 CFLAGS="${BUILD_CFLAGS}" \
96 LDFLAGS="${BUILD_LDFLAGS}" \
97 LDLIBS="${LDLIBS}" \
98 zic || die
99 fi
100 }
101
102 src_install() {
103 local zic=""
104 tc-is-cross-compiler && zic="zic=${S}-native/zic"
105 emake install ${zic} DESTDIR="${D}" || die
106 rm -rf "${D}"/usr/share/zoneinfo-leaps
107 dodoc README Theory
108 dohtml *.htm
109 }
110
111 pkg_config() {
112 # make sure the /etc/localtime file does not get stale #127899
113 local tz src etc_lt="${ROOT}etc/localtime"
114
115 if has_version '<sys-apps/baselayout-2' ; then
116 src="${ROOT}etc/conf.d/clock"
117 tz=$(unset TIMEZONE ; source "${src}" ; echo ${TIMEZONE-FOOKABLOIE})
118 else
119 src="${ROOT}etc/timezone"
120 if [[ -e ${src} ]] ; then
121 tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
122 else
123 tz="FOOKABLOIE"
124 fi
125 fi
126 [[ -z ${tz} ]] && return 0
127
128 if [[ ${tz} == "FOOKABLOIE" ]] ; then
129 elog "You do not have TIMEZONE set in ${src}."
130
131 if [[ ! -e ${etc_lt} ]] ; then
132 # if /etc/localtime is a symlink somewhere, assume they
133 # know what they're doing and they're managing it themselves
134 if [[ ! -L ${etc_lt} ]] ; then
135 cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
136 elog "Setting ${etc_lt} to Factory."
137 else
138 elog "Assuming your ${etc_lt} symlink is what you want; skipping update."
139 fi
140 else
141 elog "Skipping auto-update of ${etc_lt}."
142 fi
143 return 0
144 fi
145
146 if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
147 elog "You have an invalid TIMEZONE setting in ${src}"
148 elog "Your ${etc_lt} has been reset to Factory; enjoy!"
149 tz="Factory"
150 fi
151 einfo "Updating ${etc_lt} with ${ROOT}usr/share/zoneinfo/${tz}"
152 [[ -L ${etc_lt} ]] && rm -f "${etc_lt}"
153 cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
154 }
155
156 pkg_postinst() {
157 pkg_config
158 }