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-2008c.ebuild
Date: Sat, 31 May 2008 10:24:04
Message-Id: E1K2OFi-0006yB-6g@stork.gentoo.org
1 vapier 08/05/31 10:23:58
2
3 Modified: ChangeLog
4 Added: timezone-data-2008c.ebuild
5 Log:
6 Version bump #223827 by Rodrigo Severo.
7 (Portage version: 2.2_pre5.spank.spunk)
8
9 Revision Changes Path
10 1.128 sys-libs/timezone-data/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.128&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.128&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.127&r2=1.128
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v
19 retrieving revision 1.127
20 retrieving revision 1.128
21 diff -u -r1.127 -r1.128
22 --- ChangeLog 29 May 2008 17:53:50 -0000 1.127
23 +++ ChangeLog 31 May 2008 10:23:57 -0000 1.128
24 @@ -1,6 +1,12 @@
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.127 2008/05/29 17:53:50 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.128 2008/05/31 10:23:57 vapier Exp $
29 +
30 +*timezone-data-2008c (31 May 2008)
31 +
32 + 31 May 2008; Mike Frysinger <vapier@g.o>
33 + +timezone-data-2008c.ebuild:
34 + Version bump #223827 by Rodrigo Severo.
35
36 29 May 2008; Raúl Porcel <armin76@g.o> timezone-data-2008b.ebuild:
37 alpha/ia64/sparc/x86 stable
38
39
40
41 1.1 sys-libs/timezone-data/timezone-data-2008c.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008c.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008c.ebuild?rev=1.1&content-type=text/plain
45
46 Index: timezone-data-2008c.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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-2008c.ebuild,v 1.1 2008/05/31 10:23:57 vapier Exp $
51
52 inherit eutils toolchain-funcs flag-o-matic
53
54 code_ver=${PV/c/a}
55 data_ver=${PV}
56 DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
57 HOMEPAGE="ftp://elsie.nci.nih.gov/pub/"
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="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
66 IUSE="nls elibc_FreeBSD elibc_glibc"
67
68 DEPEND=""
69
70 S=${WORKDIR}
71
72 src_unpack() {
73 unpack ${A}
74 epatch "${FILESDIR}"/${PN}-2005n-makefile.patch
75 tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
76 }
77
78 src_compile() {
79 tc-export CC
80 use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251
81 if use nls ; then
82 use elibc_glibc || append-ldflags -lintl #154181
83 export NLS=1
84 else
85 export NLS=0
86 fi
87 emake || die "emake failed"
88 if tc-is-cross-compiler ; then
89 make -C "${S}"-native CC=$(tc-getBUILD_CC) CFLAGS="${BUILD_CFLAGS}" zic || die
90 fi
91 }
92
93 src_install() {
94 local zic=""
95 tc-is-cross-compiler && zic="zic=${S}-native/zic"
96 make install ${zic} DESTDIR="${D}" || die
97 rm -rf "${D}"/usr/share/zoneinfo-leaps
98 dodoc README Theory
99 dohtml *.htm *.jpg
100 }
101
102 pkg_config() {
103 # make sure the /etc/localtime file does not get stale #127899
104 local tz src
105
106 if [[ -e ${ROOT}/etc/timezone ]] ; then
107 src="/etc/timezone"
108 tz=$(<"${ROOT}"/etc/timezone)
109 else
110 src="/etc/conf.d/clock"
111 tz=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE})
112 [[ -z ${tz} ]] && return 0
113 if [[ ${tz} == "FOOKABLOIE" ]] ; then
114 elog "You do not have TIMEZONE set in /etc/conf.d/clock."
115 if [[ ! -e ${ROOT}/etc/localtime ]] ; then
116 cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
117 elog "Setting /etc/localtime to Factory."
118 else
119 elog "Skipping auto-update of /etc/localtime."
120 fi
121 return 0
122 fi
123 fi
124
125 if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
126 elog "You have an invalid TIMEZONE setting in ${src}"
127 elog "Your /etc/localtime has been reset to Factory; enjoy!"
128 tz="Factory"
129 fi
130 einfo "Updating /etc/localtime with /usr/share/zoneinfo/${tz}"
131 [[ -L ${ROOT}/etc/localtime ]] && rm -f "${ROOT}"/etc/localtime
132 cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime
133 }
134
135 pkg_postinst() {
136 pkg_config
137 }
138
139
140
141 --
142 gentoo-commits@l.g.o mailing list