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-2010j.ebuild ChangeLog
Date: Mon, 10 May 2010 19:18:57
Message-Id: 20100510191842.ADD162C5BA@corvid.gentoo.org
1 vapier 10/05/10 19:18:42
2
3 Modified: ChangeLog
4 Added: timezone-data-2010j.ebuild
5 Log:
6 Version bump #319145 by Rodrigo Severo.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.233 sys-libs/timezone-data/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.233&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.233&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.232&r2=1.233
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v
19 retrieving revision 1.232
20 retrieving revision 1.233
21 diff -u -r1.232 -r1.233
22 --- ChangeLog 10 May 2010 19:17:49 -0000 1.232
23 +++ ChangeLog 10 May 2010 19:18:42 -0000 1.233
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-libs/timezone-data
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.232 2010/05/10 19:17:49 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.233 2010/05/10 19:18:42 vapier Exp $
29 +
30 +*timezone-data-2010j (10 May 2010)
31 +
32 + 10 May 2010; Mike Frysinger <vapier@g.o> +timezone-data-2010j.ebuild:
33 + Version bump #319145 by Rodrigo Severo.
34
35 10 May 2010; Mike Frysinger <vapier@g.o> timezone-data-2010i.ebuild:
36 Stabilize for everyone #319169 by Arfrever Frehtes Taifersar Arahesis.
37
38
39
40 1.1 sys-libs/timezone-data/timezone-data-2010j.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/timezone-data-2010j.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/timezone-data-2010j.ebuild?rev=1.1&content-type=text/plain
44
45 Index: timezone-data-2010j.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2010j.ebuild,v 1.1 2010/05/10 19:18:42 vapier Exp $
50
51 inherit eutils toolchain-funcs flag-o-matic
52
53 code_ver=${PV}
54 data_ver=${PV}
55 DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
56 HOMEPAGE="ftp://elsie.nci.nih.gov/pub/"
57 SRC_URI="ftp://elsie.nci.nih.gov/pub/tzdata${data_ver}.tar.gz
58 ftp://elsie.nci.nih.gov/pub/tzcode${code_ver}.tar.gz
59 mirror://gentoo/tzdata${data_ver}.tar.gz
60 mirror://gentoo/tzcode${code_ver}.tar.gz"
61
62 LICENSE="BSD public-domain"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
65 IUSE="nls elibc_FreeBSD elibc_glibc"
66
67 RDEPEND="!<sys-libs/glibc-2.3.5"
68
69 S=${WORKDIR}
70
71 src_unpack() {
72 unpack ${A}
73 epatch "${FILESDIR}"/${PN}-2008h-makefile.patch
74 tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
75 }
76
77 src_compile() {
78 local LDLIBS
79 tc-export CC
80 use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251
81 if use nls ; then
82 use elibc_glibc || LDLIBS="${LDLIBS} -lintl" #154181
83 export NLS=1
84 else
85 export NLS=0
86 fi
87 # Makefile uses LBLIBS for the libs (which defaults to LDFLAGS)
88 # But it also uses LFLAGS where it expects the real LDFLAGS
89 emake \
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 *.jpg
109 }
110
111 pkg_config() {
112 # make sure the /etc/localtime file does not get stale #127899
113 local tz src
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 ${ROOT}/etc/localtime ]] ; then
132 cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
133 elog "Setting ${ROOT}etc/localtime to Factory."
134 else
135 elog "Skipping auto-update of ${ROOT}etc/localtime."
136 fi
137 return 0
138 fi
139
140 if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
141 elog "You have an invalid TIMEZONE setting in ${src}"
142 elog "Your ${ROOT}etc/localtime has been reset to Factory; enjoy!"
143 tz="Factory"
144 fi
145 einfo "Updating ${ROOT}etc/localtime with ${ROOT}usr/share/zoneinfo/${tz}"
146 [[ -L ${ROOT}/etc/localtime ]] && rm -f "${ROOT}"/etc/localtime
147 cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime
148 }
149
150 pkg_postinst() {
151 pkg_config
152 }