Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/timezone-data/
Date: Sun, 06 Jan 2019 20:16:16
Message-Id: 1546805762.e8a1eecc6c89a3cc9d3b86bfd736276005dc4541.whissi@gentoo
1 commit: e8a1eecc6c89a3cc9d3b86bfd736276005dc4541
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 6 20:15:36 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 6 20:16:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8a1eecc
7
8 sys-libs/timezone-data: drop old
9
10 Package-Manager: Portage-2.3.53, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-libs/timezone-data/Manifest | 2 -
14 .../timezone-data/timezone-data-2018g-r1.ebuild | 173 ---------------------
15 2 files changed, 175 deletions(-)
16
17 diff --git a/sys-libs/timezone-data/Manifest b/sys-libs/timezone-data/Manifest
18 index de0c3bbd85a..50bea910eb0 100644
19 --- a/sys-libs/timezone-data/Manifest
20 +++ b/sys-libs/timezone-data/Manifest
21 @@ -1,4 +1,2 @@
22 -DIST tzcode2018g.tar.gz 241541 BLAKE2B 08525661ee6ca0c65c3b2619cc044a79d3b25ff557b9995dac039372eea24d041318ed6927726fb1bdf89991b2fa8a77c792e03e14fc510d06409c0dfc73df95 SHA512 58f89b7323bfe795c5f13039f7527d18b15c9e37fce6e9fa1a402ce2689bf5c772cf1ffb86f23309814a563f9f429da472df1229818b07b1e04f16bdedb21484
23 DIST tzcode2018i.tar.gz 242962 BLAKE2B 682a23c324b6d8e1a0d63c6140c82ca3a24017c0972e7f915ecad5e0838f8f57743ffa2c5d9cc9744739a0e7d791ddb21947618cd11635767800ac99307c9548 SHA512 1a3d53043f20b8252f7598f547d78e7294d9e0cf1fcdd2159354d9769f824c8c8a03cef9cbb7fa579345fdb41372335117d2ef782ecd9c107dd0526e59492d9d
24 -DIST tzdata2018g.tar.gz 366408 BLAKE2B cc1158d35bd398f32741b1ace03a7cd0adb3a94670ea08a7566051901e58692891a3661afdbc71a487f777ecfab72572017476a7a73cdc966bd3c34751eb629e SHA512 92e9bbd61f51be8f2cf7ec9491691e5e2f97803914dbad77b7fb8b6600ed68fc3b98450fc808bb2d4c6c835df5f9eb7bf4529d059d9b1370f2ab4c12e7f1adfa
25 DIST tzdata2018i.tar.gz 377009 BLAKE2B fa28fdac145756368d4760c418742efd558e63fd9900fc4649971b683b162df5e566c6214a79ec46b48fc65af488a7e0e95ddb6176a4f9adb5b39bc634426143 SHA512 6afcacb377842190648ed26f01abcf3db37aa2e7c63d8c509c29b4bc0078b7ff2d4e5375291b9f53498215b9e2f04936bc6145e2f651ae0be6d8166d8d336f6a
26
27 diff --git a/sys-libs/timezone-data/timezone-data-2018g-r1.ebuild b/sys-libs/timezone-data/timezone-data-2018g-r1.ebuild
28 deleted file mode 100644
29 index fa1396ab59a..00000000000
30 --- a/sys-libs/timezone-data/timezone-data-2018g-r1.ebuild
31 +++ /dev/null
32 @@ -1,173 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI="6"
37 -
38 -inherit toolchain-funcs flag-o-matic
39 -
40 -code_ver=${PV}
41 -data_ver=${PV}
42 -DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
43 -HOMEPAGE="https://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm"
44 -SRC_URI="https://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
45 - https://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
46 -
47 -LICENSE="BSD public-domain"
48 -SLOT="0"
49 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
50 -IUSE="nls leaps_timezone elibc_FreeBSD"
51 -
52 -DEPEND="nls? ( virtual/libintl )"
53 -RDEPEND="${DEPEND}
54 - !sys-libs/glibc[vanilla(+)]"
55 -
56 -S=${WORKDIR}
57 -
58 -src_prepare() {
59 - default
60 - tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
61 -}
62 -
63 -src_configure() {
64 - tc-export CC
65 -
66 - append-lfs-flags #471102
67 -
68 - if use elibc_FreeBSD || use elibc_Darwin ; then
69 - append-cppflags -DSTD_INSPIRED #138251
70 - fi
71 -
72 - append-cppflags -DHAVE_GETTEXT=$(usex nls 1 0) -DTZ_DOMAIN='\"libc\"'
73 - LDLIBS=""
74 - if use nls ; then
75 - # See if an external libintl is available. #154181 #578424
76 - local c="${T}/test"
77 - echo 'main(){}' > "${c}.c"
78 - if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} "${c}.c" -o "${c}" -lintl 2>/dev/null ; then
79 - LDLIBS+=" -lintl"
80 - fi
81 - fi
82 -}
83 -
84 -_emake() {
85 - emake \
86 - REDO=$(usex leaps_timezone posix_right posix_only) \
87 - TZDATA_TEXT= \
88 - TOPDIR="${EPREFIX}" \
89 - ZICDIR='$(TOPDIR)/usr/bin' \
90 - "$@"
91 -}
92 -
93 -src_compile() {
94 - _emake \
95 - AR="$(tc-getAR)" \
96 - cc="$(tc-getCC)" \
97 - RANLIB="$(tc-getRANLIB)" \
98 - CFLAGS="${CFLAGS} -std=gnu99 ${CPPFLAGS}" \
99 - LDFLAGS="${LDFLAGS}" \
100 - LDLIBS="${LDLIBS}"
101 - if tc-is-cross-compiler ; then
102 - _emake -C "${S}"-native \
103 - AR="$(tc-getBUILD_AR)" \
104 - cc="$(tc-getBUILD_CC)" \
105 - RANLIB="$(tc-getBUILD_RANLIB)" \
106 - CFLAGS="${BUILD_CFLAGS} ${BUILD_CPPFLAGS}" \
107 - LDFLAGS="${BUILD_LDFLAGS}" \
108 - LDLIBS="${LDLIBS}" \
109 - zic
110 - fi
111 -}
112 -
113 -src_test() {
114 - # VALIDATE_ENV is used for extended/web based tests. Punt on them.
115 - emake -j1 check VALIDATE_ENV=true
116 -}
117 -
118 -src_install() {
119 - local zic=""
120 - tc-is-cross-compiler && zic="zic=${S}-native/zic"
121 - _emake install ${zic} DESTDIR="${D}" LIBDIR="/nukeit"
122 - rm -rf "${D}/nukeit" "${ED}/etc" || die
123 -
124 - insinto /usr/share/zoneinfo
125 - doins "${S}"/leap-seconds.list
126 -
127 - # Delete man pages installed by man-pages package.
128 - rm "${ED}"/usr/share/man/man5/tzfile.5* "${ED}"/usr/share/man/man8/{tzselect,zdump,zic}.8 || die
129 - dodoc CONTRIBUTING README NEWS *.html
130 -}
131 -
132 -get_TIMEZONE() {
133 - local tz src="${EROOT}etc/timezone"
134 - if [[ -e ${src} ]] ; then
135 - tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
136 - else
137 - tz="FOOKABLOIE"
138 - fi
139 - [[ -z ${tz} ]] && return 1 || echo "${tz}"
140 -}
141 -
142 -pkg_preinst() {
143 - local tz=$(get_TIMEZONE)
144 - if [[ ${tz} == right/* || ${tz} == posix/* ]] ; then
145 - eerror "The right & posix subdirs are no longer installed as subdirs -- they have been"
146 - eerror "relocated to match upstream paths as sibling paths. Further, posix/xxx is the"
147 - eerror "same as xxx, so you should simply drop the posix/ prefix. You also should not"
148 - eerror "be using right/xxx for the system timezone as it breaks programs."
149 - die "Please fix your timezone setting"
150 - fi
151 -
152 - # Trim the symlink by hand to avoid portage's automatic protection checks.
153 - rm -f "${EROOT}"/usr/share/zoneinfo/posix
154 -
155 - if has_version "<=${CATEGORY}/${PN}-2015c" ; then
156 - elog "Support for accessing posix/ and right/ directly has been dropped to match"
157 - elog "upstream. There is no need to set TZ=posix/xxx as it is the same as TZ=xxx."
158 - elog "For TZ=right/, you can use TZ=../zoneinfo-leaps/xxx instead. See this post"
159 - elog "for details: https://mm.icann.org/pipermail/tz/2015-February/022024.html"
160 - fi
161 -}
162 -
163 -configure_tz_data() {
164 - # make sure the /etc/localtime file does not get stale #127899
165 - local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
166 -
167 - # If it's a symlink, assume the user knows what they're doing and
168 - # they're managing it themselves. #511474
169 - if [[ -L ${etc_lt} ]] ; then
170 - einfo "Assuming your ${etc_lt} symlink is what you want; skipping update."
171 - return 0
172 - fi
173 -
174 - if ! tz=$(get_TIMEZONE) ; then
175 - einfo "Assuming your empty ${etc_lt} file is what you want; skipping update."
176 - return 0
177 - fi
178 - if [[ ${tz} == "FOOKABLOIE" ]] ; then
179 - elog "You do not have TIMEZONE set in ${src}."
180 -
181 - if [[ ! -e ${etc_lt} ]] ; then
182 - cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}"
183 - elog "Setting ${etc_lt} to Factory."
184 - else
185 - elog "Skipping auto-update of ${etc_lt}."
186 - fi
187 - return 0
188 - fi
189 -
190 - if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then
191 - elog "You have an invalid TIMEZONE setting in ${src}"
192 - elog "Your ${etc_lt} has been reset to Factory; enjoy!"
193 - tz="Factory"
194 - fi
195 - einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}"
196 - cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
197 -}
198 -
199 -pkg_config() {
200 - configure_tz_data
201 -}
202 -
203 -pkg_postinst() {
204 - configure_tz_data
205 -}