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-2007k.ebuild
Date: Tue, 01 Jan 2008 18:36:05
Message-Id: E1J9ly4-0005od-RQ@stork.gentoo.org
1 vapier 08/01/01 18:36:00
2
3 Modified: ChangeLog
4 Added: timezone-data-2007k.ebuild
5 Log:
6 Version bump #203921 by Rodrigo Severo.
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.107 sys-libs/timezone-data/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.107&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.107&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.106&r2=1.107
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v
19 retrieving revision 1.106
20 retrieving revision 1.107
21 diff -u -r1.106 -r1.107
22 --- ChangeLog 10 Dec 2007 07:09:00 -0000 1.106
23 +++ ChangeLog 1 Jan 2008 18:36:00 -0000 1.107
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-libs/timezone-data
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.106 2007/12/10 07:09:00 jer Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.107 2008/01/01 18:36:00 vapier Exp $
30 +
31 +*timezone-data-2007k (01 Jan 2008)
32 +
33 + 01 Jan 2008; Mike Frysinger <vapier@g.o>
34 + +timezone-data-2007k.ebuild:
35 + Version bump #203921 by Rodrigo Severo.
36
37 10 Dec 2007; Jeroen Roovers <jer@g.o> timezone-data-2007i.ebuild:
38 Stable for HPPA (bug #201175).
39
40
41
42 1.1 sys-libs/timezone-data/timezone-data-2007k.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2007k.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2007k.ebuild?rev=1.1&content-type=text/plain
46
47 Index: timezone-data-2007k.ebuild
48 ===================================================================
49 # Copyright 1999-2008 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-2007k.ebuild,v 1.1 2008/01/01 18:36:00 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="ftp://elsie.nci.nih.gov/pub/"
59 SRC_URI="ftp://elsie.nci.nih.gov/pub/tzdata${data_ver}.tar.gz
60 ftp://elsie.nci.nih.gov/pub/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 make -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 make 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=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE})
104 [[ -z ${tz} ]] && return 0
105 if [[ ${tz} == "FOOKABLOIE" ]] ; then
106 elog "You do not have TIMEZONE set in /etc/conf.d/clock."
107 if [[ ! -e ${ROOT}/etc/localtime ]] ; then
108 cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
109 elog "Setting /etc/localtime to Factory."
110 else
111 elog "Skipping auto-update of /etc/localtime."
112 fi
113 return 0
114 fi
115
116 if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
117 elog "You have an invalid TIMEZONE setting in /etc/conf.d/clock."
118 elog "Your /etc/localtime has been reset to Factory; enjoy!"
119 tz="Factory"
120 fi
121 einfo "Updating /etc/localtime with /usr/share/zoneinfo/${tz}"
122 [[ -L ${ROOT}/etc/localtime ]] && rm -f "${ROOT}"/etc/localtime
123 cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime
124 }
125
126 pkg_postinst() {
127 pkg_config
128 }
129
130
131
132 --
133 gentoo-commits@g.o mailing list