Gentoo Archives: gentoo-commits

From: "Mark Loeser (halcy0n)" <halcy0n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/timezone-data: ChangeLog timezone-data-2008e.ebuild
Date: Thu, 31 Jul 2008 01:03:03
Message-Id: E1KOMZI-0002TU-Mm@stork.gentoo.org
1 halcy0n 08/07/31 01:03:00
2
3 Modified: ChangeLog
4 Added: timezone-data-2008e.ebuild
5 Log:
6 Version bump; bug #233180
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.24.5 x86_64)
8
9 Revision Changes Path
10 1.142 sys-libs/timezone-data/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.142&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.142&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.141&r2=1.142
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v
19 retrieving revision 1.141
20 retrieving revision 1.142
21 diff -u -r1.141 -r1.142
22 --- ChangeLog 23 Jun 2008 16:45:03 -0000 1.141
23 +++ ChangeLog 31 Jul 2008 01:03:00 -0000 1.142
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-libs/timezone-data
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.141 2008/06/23 16:45:03 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.142 2008/07/31 01:03:00 halcy0n Exp $
29 +
30 +*timezone-data-2008e (31 Jul 2008)
31 +
32 + 31 Jul 2008; Mark Loeser <halcy0n@g.o> +timezone-data-2008e.ebuild:
33 + Version bump; bug #233180
34
35 23 Jun 2008; Jeroen Roovers <jer@g.o> timezone-data-2008c.ebuild:
36 Stable for HPPA (bug #228675).
37
38
39
40 1.1 sys-libs/timezone-data/timezone-data-2008e.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008e.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008e.ebuild?rev=1.1&content-type=text/plain
44
45 Index: timezone-data-2008e.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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-2008e.ebuild,v 1.1 2008/07/31 01:03:00 halcy0n Exp $
50
51 inherit eutils toolchain-funcs flag-o-matic
52
53 code_ver=${PV/c/a}
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="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
65 IUSE="nls elibc_FreeBSD elibc_glibc"
66
67 DEPEND=""
68
69 S=${WORKDIR}
70
71 src_unpack() {
72 unpack ${A}
73 epatch "${FILESDIR}"/${PN}-2005n-makefile.patch
74 tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
75 }
76
77 src_compile() {
78 tc-export CC
79 use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251
80 if use nls ; then
81 use elibc_glibc || append-ldflags -lintl #154181
82 export NLS=1
83 else
84 export NLS=0
85 fi
86 emake || die "emake failed"
87 if tc-is-cross-compiler ; then
88 emake -C "${S}"-native CC=$(tc-getBUILD_CC) CFLAGS="${BUILD_CFLAGS}" zic || die
89 fi
90 }
91
92 src_install() {
93 local zic=""
94 tc-is-cross-compiler && zic="zic=${S}-native/zic"
95 emake install ${zic} DESTDIR="${D}" || die
96 rm -rf "${D}"/usr/share/zoneinfo-leaps
97 dodoc README Theory
98 dohtml *.htm *.jpg
99 }
100
101 pkg_config() {
102 # make sure the /etc/localtime file does not get stale #127899
103 local tz src
104
105 if has_version '<sys-apps/baselayout-2' ; then
106 src="/etc/conf.d/clock"
107 tz=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE})
108 else
109 src="/etc/timezone"
110 if [[ -e ${ROOT}/etc/timezone ]] ; then
111 tz=$(<"${ROOT}"/etc/timezone)
112 else
113 tz="FOOKABLOIE"
114 fi
115 fi
116 [[ -z ${tz} ]] && return 0
117
118 if [[ ${tz} == "FOOKABLOIE" ]] ; then
119 elog "You do not have TIMEZONE set in ${src}."
120
121 if [[ ! -e ${ROOT}/etc/localtime ]] ; then
122 cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
123 elog "Setting /etc/localtime to Factory."
124 else
125 elog "Skipping auto-update of /etc/localtime."
126 fi
127 return 0
128 fi
129
130 if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
131 elog "You have an invalid TIMEZONE setting in ${src}"
132 elog "Your /etc/localtime has been reset to Factory; enjoy!"
133 tz="Factory"
134 fi
135 einfo "Updating /etc/localtime with /usr/share/zoneinfo/${tz}"
136 [[ -L ${ROOT}/etc/localtime ]] && rm -f "${ROOT}"/etc/localtime
137 cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime
138 }
139
140 pkg_postinst() {
141 pkg_config
142 }