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