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