1 |
vapier 09/01/21 16:37:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: timezone-data-2009a.ebuild |
5 |
Log: |
6 |
Version bump #255757 by Rodrigo Severo. |
7 |
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.164 sys-libs/timezone-data/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.164&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.164&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.163&r2=1.164 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v |
19 |
retrieving revision 1.163 |
20 |
retrieving revision 1.164 |
21 |
diff -u -r1.163 -r1.164 |
22 |
--- ChangeLog 14 Dec 2008 14:00:23 -0000 1.163 |
23 |
+++ ChangeLog 21 Jan 2009 16:37:32 -0000 1.164 |
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.163 2008/12/14 14:00:23 gentoofan23 Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.164 2009/01/21 16:37:32 vapier Exp $ |
30 |
+ |
31 |
+*timezone-data-2009a (21 Jan 2009) |
32 |
+ |
33 |
+ 21 Jan 2009; Mike Frysinger <vapier@g.o> |
34 |
+ +timezone-data-2009a.ebuild: |
35 |
+ Version bump #255757 by Rodrigo Severo. |
36 |
|
37 |
14 Dec 2008; Thomas Anderson <gentoofan23@g.o> |
38 |
timezone-data-2008i.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-libs/timezone-data/timezone-data-2009a.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2009a.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2009a.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: timezone-data-2009a.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 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-2009a.ebuild,v 1.1 2009/01/21 16:37:32 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 |
mirror://gentoo/tzdata${data_ver}.tar.gz |
62 |
mirror://gentoo/tzcode${code_ver}.tar.gz" |
63 |
|
64 |
LICENSE="BSD public-domain" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
67 |
IUSE="nls elibc_FreeBSD elibc_glibc" |
68 |
|
69 |
DEPEND="" |
70 |
|
71 |
S=${WORKDIR} |
72 |
|
73 |
src_unpack() { |
74 |
unpack ${A} |
75 |
epatch "${FILESDIR}"/${PN}-2008h-makefile.patch |
76 |
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native |
77 |
} |
78 |
|
79 |
src_compile() { |
80 |
local LDLIBS |
81 |
tc-export CC |
82 |
use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251 |
83 |
if use nls ; then |
84 |
use elibc_glibc || LDLIBS="${LDLIBS} -lintl" #154181 |
85 |
export NLS=1 |
86 |
else |
87 |
export NLS=0 |
88 |
fi |
89 |
# Makefile uses LBLIBS for the libs (which defaults to LDFLAGS) |
90 |
# But it also uses LFLAGS where it expects the real LDFLAGS |
91 |
emake \ |
92 |
LDLIBS="${LDLIBS}" \ |
93 |
|| die "emake failed" |
94 |
if tc-is-cross-compiler ; then |
95 |
emake -C "${S}"-native \ |
96 |
CC=$(tc-getBUILD_CC) \ |
97 |
CFLAGS="${BUILD_CFLAGS}" \ |
98 |
LDFLAGS="${BUILD_LDFLAGS}" \ |
99 |
LDLIBS="${LDLIBS}" \ |
100 |
zic || die |
101 |
fi |
102 |
} |
103 |
|
104 |
src_install() { |
105 |
local zic="" |
106 |
tc-is-cross-compiler && zic="zic=${S}-native/zic" |
107 |
emake install ${zic} DESTDIR="${D}" || die |
108 |
rm -rf "${D}"/usr/share/zoneinfo-leaps |
109 |
dodoc README Theory |
110 |
dohtml *.htm *.jpg |
111 |
} |
112 |
|
113 |
pkg_config() { |
114 |
# make sure the /etc/localtime file does not get stale #127899 |
115 |
local tz src |
116 |
|
117 |
if has_version '<sys-apps/baselayout-2' ; then |
118 |
src="/etc/conf.d/clock" |
119 |
tz=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE}) |
120 |
else |
121 |
src="/etc/timezone" |
122 |
if [[ -e ${ROOT}/etc/timezone ]] ; then |
123 |
tz=$(<"${ROOT}"/etc/timezone) |
124 |
else |
125 |
tz="FOOKABLOIE" |
126 |
fi |
127 |
fi |
128 |
[[ -z ${tz} ]] && return 0 |
129 |
|
130 |
if [[ ${tz} == "FOOKABLOIE" ]] ; then |
131 |
elog "You do not have TIMEZONE set in ${src}." |
132 |
|
133 |
if [[ ! -e ${ROOT}/etc/localtime ]] ; then |
134 |
cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime |
135 |
elog "Setting /etc/localtime to Factory." |
136 |
else |
137 |
elog "Skipping auto-update of /etc/localtime." |
138 |
fi |
139 |
return 0 |
140 |
fi |
141 |
|
142 |
if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then |
143 |
elog "You have an invalid TIMEZONE setting in ${src}" |
144 |
elog "Your /etc/localtime has been reset to Factory; enjoy!" |
145 |
tz="Factory" |
146 |
fi |
147 |
einfo "Updating /etc/localtime with /usr/share/zoneinfo/${tz}" |
148 |
[[ -L ${ROOT}/etc/localtime ]] && rm -f "${ROOT}"/etc/localtime |
149 |
cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime |
150 |
} |
151 |
|
152 |
pkg_postinst() { |
153 |
pkg_config |
154 |
} |