1 |
vapier 13/09/28 10:55:44 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: timezone-data-2013f-r1.ebuild |
5 |
Removed: timezone-data-2013f.ebuild |
6 |
Log: |
7 |
Clean up errors in patch/install, and handle the upgrade from previous versions #485720 by Dirkjan Ochtman. |
8 |
|
9 |
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
10 |
|
11 |
Revision Changes Path |
12 |
1.289 sys-libs/timezone-data/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.289&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.289&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.288&r2=1.289 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v |
21 |
retrieving revision 1.288 |
22 |
retrieving revision 1.289 |
23 |
diff -u -r1.288 -r1.289 |
24 |
--- ChangeLog 26 Sep 2013 12:26:58 -0000 1.288 |
25 |
+++ ChangeLog 28 Sep 2013 10:55:44 -0000 1.289 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for sys-libs/timezone-data |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.288 2013/09/26 12:26:58 djc Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.289 2013/09/28 10:55:44 vapier Exp $ |
31 |
+ |
32 |
+*timezone-data-2013f-r1 (28 Sep 2013) |
33 |
+ |
34 |
+ 28 Sep 2013; Mike Frysinger <vapier@g.o> |
35 |
+ +files/timezone-data-2013f-makefile.patch, +timezone-data-2013f-r1.ebuild, |
36 |
+ -files/2013f-makefile.patch, -timezone-data-2013f.ebuild: |
37 |
+ Clean up errors in patch/install, and handle the upgrade from previous |
38 |
+ versions #485720 by Dirkjan Ochtman. |
39 |
|
40 |
26 Sep 2013; Dirkjan Ochtman <djc@g.o> timezone-data-2013d.ebuild: |
41 |
Stabilize 2013d for everyone. |
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-libs/timezone-data/timezone-data-2013f-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/timezone-data-2013f-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/timezone-data-2013f-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: timezone-data-2013f-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2013 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2013f-r1.ebuild,v 1.1 2013/09/28 10:55:44 vapier Exp $ |
55 |
|
56 |
EAPI="3" |
57 |
|
58 |
inherit eutils toolchain-funcs flag-o-matic |
59 |
|
60 |
code_ver=${PV} |
61 |
data_ver=${PV} |
62 |
DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)" |
63 |
HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm" |
64 |
SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz |
65 |
http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz |
66 |
ftp://munnari.oz.au/pub/tzdata${data_ver}.tar.gz |
67 |
ftp://munnari.oz.au/pub/tzcode${code_ver}.tar.gz" |
68 |
|
69 |
LICENSE="BSD public-domain" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
72 |
IUSE="nls elibc_FreeBSD elibc_glibc" |
73 |
|
74 |
RDEPEND="!<sys-libs/glibc-2.3.5" |
75 |
|
76 |
S=${WORKDIR} |
77 |
|
78 |
pkg_setup() { |
79 |
# Deal with the case where older timezone-data installed a |
80 |
# dir here, but newer one installs symlinks. Portage will |
81 |
# barf when you try to transition file types. |
82 |
if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then |
83 |
if [[ -d posix ]] ; then |
84 |
mv posix .gentoo-upgrade || die |
85 |
ln -s .gentoo-upgrade posix || die |
86 |
fi |
87 |
fi |
88 |
} |
89 |
|
90 |
src_prepare() { |
91 |
epatch "${FILESDIR}"/${PN}-2013f-makefile.patch |
92 |
tc-is-cross-compiler && cp -pR "${S}" "${S}"-native |
93 |
} |
94 |
|
95 |
src_compile() { |
96 |
local LDLIBS |
97 |
tc-export CC |
98 |
if use elibc_FreeBSD || use elibc_Darwin ; then |
99 |
append-cppflags -DSTD_INSPIRED #138251 |
100 |
fi |
101 |
export NLS=$(usex nls 1 0) |
102 |
if use nls && ! use elibc_glibc ; then |
103 |
LDLIBS+=" -lintl" #154181 |
104 |
fi |
105 |
# TOPDIR is used in some utils when compiling. |
106 |
emake \ |
107 |
TOPDIR="${EPREFIX}/usr" \ |
108 |
CFLAGS="${CPPFLAGS} ${CFLAGS} -std=gnu99" \ |
109 |
LDFLAGS="${LDFLAGS}" \ |
110 |
LDLIBS="${LDLIBS}" \ |
111 |
|| die |
112 |
if tc-is-cross-compiler ; then |
113 |
emake -C "${S}"-native \ |
114 |
CC=$(tc-getBUILD_CC) \ |
115 |
CFLAGS="${BUILD_CFLAGS}" \ |
116 |
LDFLAGS="${BUILD_LDFLAGS}" \ |
117 |
LDLIBS="${LDLIBS}" \ |
118 |
zic || die |
119 |
fi |
120 |
} |
121 |
|
122 |
pkg_postinst() { |
123 |
rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
local zic="" |
128 |
tc-is-cross-compiler && zic="zic=${S}-native/zic" |
129 |
emake install ${zic} DESTDIR="${ED}" || die |
130 |
dodoc README Theory |
131 |
dohtml *.htm |
132 |
} |
133 |
|
134 |
pkg_config() { |
135 |
# make sure the /etc/localtime file does not get stale #127899 |
136 |
local tz src etc_lt="${EROOT}etc/localtime" |
137 |
|
138 |
if has_version '<sys-apps/baselayout-2' ; then |
139 |
src="${EROOT}etc/conf.d/clock" |
140 |
tz=$(unset TIMEZONE ; source "${src}" ; echo ${TIMEZONE-FOOKABLOIE}) |
141 |
else |
142 |
src="${EROOT}etc/timezone" |
143 |
if [[ -e ${src} ]] ; then |
144 |
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}") |
145 |
else |
146 |
tz="FOOKABLOIE" |
147 |
fi |
148 |
fi |
149 |
[[ -z ${tz} ]] && return 0 |
150 |
|
151 |
if [[ ${tz} == "FOOKABLOIE" ]] ; then |
152 |
elog "You do not have TIMEZONE set in ${src}." |
153 |
|
154 |
if [[ ! -e ${etc_lt} ]] ; then |
155 |
# if /etc/localtime is a symlink somewhere, assume they |
156 |
# know what they're doing and they're managing it themselves |
157 |
if [[ ! -L ${etc_lt} ]] ; then |
158 |
cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}" |
159 |
elog "Setting ${etc_lt} to Factory." |
160 |
else |
161 |
elog "Assuming your ${etc_lt} symlink is what you want; skipping update." |
162 |
fi |
163 |
else |
164 |
elog "Skipping auto-update of ${etc_lt}." |
165 |
fi |
166 |
return 0 |
167 |
fi |
168 |
|
169 |
if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then |
170 |
elog "You have an invalid TIMEZONE setting in ${src}" |
171 |
elog "Your ${etc_lt} has been reset to Factory; enjoy!" |
172 |
tz="Factory" |
173 |
fi |
174 |
einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}" |
175 |
[[ -L ${etc_lt} ]] && rm -f "${etc_lt}" |
176 |
cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}" |
177 |
} |
178 |
|
179 |
pkg_postinst() { |
180 |
pkg_config |
181 |
} |