summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-libs/timezone-data/ChangeLog7
-rw-r--r--sys-libs/timezone-data/Manifest10
-rw-r--r--sys-libs/timezone-data/timezone-data-2011j.ebuild106
3 files changed, 118 insertions, 5 deletions
diff --git a/sys-libs/timezone-data/ChangeLog b/sys-libs/timezone-data/ChangeLog
index 6e80e8dad723..72faddd8779a 100644
--- a/sys-libs/timezone-data/ChangeLog
+++ b/sys-libs/timezone-data/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/timezone-data
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.252 2011/08/29 19:42:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.253 2011/09/13 14:27:56 vapier Exp $
+
+*timezone-data-2011j (13 Sep 2011)
+
+ 13 Sep 2011; Mike Frysinger <vapier@gentoo.org> +timezone-data-2011j.ebuild:
+ Version bump #382701 by Rodrigo Severo.
*timezone-data-2011i (29 Aug 2011)
diff --git a/sys-libs/timezone-data/Manifest b/sys-libs/timezone-data/Manifest
index bf2040d4cd10..9e415bc800be 100644
--- a/sys-libs/timezone-data/Manifest
+++ b/sys-libs/timezone-data/Manifest
@@ -11,17 +11,19 @@ DIST tzdata2011e.tar.gz 195424 RMD160 6880d6694b947ac396d11d83bb8cbea5ea956913 S
DIST tzdata2011g.tar.gz 195818 RMD160 3490c919a9622083fed7f48b20b344a61af167c2 SHA1 6d93b9badbb394563d70efaa46c1f507923b9663 SHA256 01a2a189eeda63baacc5e68e6c13afffc7edce182102fffc53acbf35e8703d3c
DIST tzdata2011h.tar.gz 196441 RMD160 7a78e9f9537340bdfb0fff1ce62f837722e39624 SHA1 cd0196ffd145eb7c7a0ed636db7cd652224a2749 SHA256 c098786d053736dd18d4f1fbebdf41554c6fd702a36f75c18f1c66712d2abc24
DIST tzdata2011i.tar.gz 198665 RMD160 ee4a4e5db40ae4a2824a65b6658d920c6dc1546d SHA1 8274c0a5dfc41c7ab9ccfc919387b3c8180cd75d SHA256 f8dde7ca5e61f21ac34c8cdbef5568d00c829981211098f059d8104964c81ffa
+DIST tzdata2011j.tar.gz 198820 RMD160 8fe8e80d62fb4392197b7bd01b30e52398703de8 SHA1 f0be74619b61a7a000116c33022a9256bbda4e53 SHA256 7e8540a85f1b474df1b40b403bea5748311ca7731b3038e51d6abc7f2d223c2a
EBUILD timezone-data-2011d.ebuild 3017 RMD160 a04132eb2e56ab0bed99e394efd786f0dae3ebe7 SHA1 1967fbeccb87a25c5a6573c7bd95d92ffc5be544 SHA256 a4218e393ee9c1f2a8dd318710c7fc673d22ab6ac21c3223299b59e98e0828c8
EBUILD timezone-data-2011e.ebuild 3017 RMD160 03c07f4da81d4cb1fd00099706d563b6f379a064 SHA1 06786e7a335dde08e3fcf154584b90caa4b8ecda SHA256 72efde75c7024c2e385c4ddf22d56af260220dba8461f2a85ead7334c8856117
EBUILD timezone-data-2011g.ebuild 3029 RMD160 fd707f92b634e8f5dc424e9dba6790dd533a2209 SHA1 b658dd476680f7ad105f6ff23e11b33c830b3d29 SHA256 5bca62397ec4cd6d39fe1b5c894d28649e64e646bb07c0771ee7644b917ce6e8
EBUILD timezone-data-2011h.ebuild 3032 RMD160 d5564bd13796dc4ff023c46fdd58c7637ebf0c06 SHA1 aa56a8847b30c39fd90b53b932dce1a0baa0a51a SHA256 e911518bbd7fc500bfb8a8002c9f94232d91464285b8ac9352667d7a5c2cf9c3
EBUILD timezone-data-2011i.ebuild 3023 RMD160 6ff5ed86d6abef3934224027e098d8296a6cfad4 SHA1 269080892d8d03e72fff2389736ecde578d05d1c SHA256 16a36db8e675249f7c4338c571fc85510c929c34ce447bb3b495a32763bee48d
-MISC ChangeLog 32830 RMD160 c1d79fac11ded0151b8c0911d81573b6946742bf SHA1 af50113db968120f363577158b201b75b0a4ffbc SHA256 49d15f0c27780b44404e7456deefe6034c769da3017ef0c424eb6112ad3f5bbe
+EBUILD timezone-data-2011j.ebuild 3026 RMD160 b642feff94fa048fbeac5503481768afa6361590 SHA1 9d10588d4bcdc3f5d390030894cf6a3dc6168164 SHA256 b5188135682c27c3fc44339cfd7593af501f2b0996acb467ca2d7f5adc5b26bf
+MISC ChangeLog 32988 RMD160 5820dd01376c34f115712e1e9326ff255068e76c SHA1 a9cf01f34df5294f0eb13881c5f55e2e0e4baf90 SHA256 5a016a3c1e874a626194307c2c67d75460ffab57d8f3d4d0e63c36faae069dd7
MISC metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 SHA1 d6b4923897f6ae673b4f93646f5b4ba61d5a2c3c SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iF4EAREIAAYFAk5b66UACgkQaC/OocHi7JbAEwD/TfU/T02K+wo9LiMq8CyWElmp
-M9ylUxAAI9yqMpliDBoA/1E11pq+baPDyVdZd6oNN3BCvv0ghNx+sd3OqySxRECl
-=X+5o
+iF4EAREIAAYFAk5vaHEACgkQaC/OocHi7Jau5AD9GImbrEzCLTVBHYXZ48AsOleN
+U0AQ43PfOvSPH6T9wEIA/34V0hCBTzfXHQqTRmwj5sy3UIVei88xNozRkaaoxXiw
+=BgC+
-----END PGP SIGNATURE-----
diff --git a/sys-libs/timezone-data/timezone-data-2011j.ebuild b/sys-libs/timezone-data/timezone-data-2011j.ebuild
new file mode 100644
index 000000000000..bec803d97338
--- /dev/null
+++ b/sys-libs/timezone-data/timezone-data-2011j.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2011j.ebuild,v 1.1 2011/09/13 14:27:56 vapier Exp $
+
+inherit eutils toolchain-funcs flag-o-matic
+
+code_ver=${PV%j}i
+data_ver=${PV}
+DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
+HOMEPAGE="http://www.twinsun.com/tz/tz-link.htm"
+SRC_URI="ftp://elsie.nci.nih.gov/pub/tzdata${data_ver}.tar.gz
+ ftp://elsie.nci.nih.gov/pub/tzcode${code_ver}.tar.gz
+ mirror://gentoo/tzdata${data_ver}.tar.gz
+ mirror://gentoo/tzcode${code_ver}.tar.gz"
+
+LICENSE="BSD public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="nls elibc_FreeBSD elibc_glibc"
+
+RDEPEND="!<sys-libs/glibc-2.3.5"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${PN}-2008h-makefile.patch
+ tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
+}
+
+src_compile() {
+ local LDLIBS
+ tc-export CC
+ use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251
+ if use nls ; then
+ use elibc_glibc || LDLIBS="${LDLIBS} -lintl" #154181
+ export NLS=1
+ else
+ export NLS=0
+ fi
+ # Makefile uses LBLIBS for the libs (which defaults to LDFLAGS)
+ # But it also uses LFLAGS where it expects the real LDFLAGS
+ emake \
+ LDLIBS="${LDLIBS}" \
+ || die "emake failed"
+ if tc-is-cross-compiler ; then
+ emake -C "${S}"-native \
+ CC=$(tc-getBUILD_CC) \
+ CFLAGS="${BUILD_CFLAGS}" \
+ LDFLAGS="${BUILD_LDFLAGS}" \
+ LDLIBS="${LDLIBS}" \
+ zic || die
+ fi
+}
+
+src_install() {
+ local zic=""
+ tc-is-cross-compiler && zic="zic=${S}-native/zic"
+ emake install ${zic} DESTDIR="${D}" || die
+ rm -rf "${D}"/usr/share/zoneinfo-leaps
+ dodoc README Theory
+ dohtml *.htm
+}
+
+pkg_config() {
+ # make sure the /etc/localtime file does not get stale #127899
+ local tz src
+
+ if has_version '<sys-apps/baselayout-2' ; then
+ src="${ROOT}etc/conf.d/clock"
+ tz=$(unset TIMEZONE ; source "${src}" ; echo ${TIMEZONE-FOOKABLOIE})
+ else
+ src="${ROOT}etc/timezone"
+ if [[ -e ${src} ]] ; then
+ tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
+ else
+ tz="FOOKABLOIE"
+ fi
+ fi
+ [[ -z ${tz} ]] && return 0
+
+ if [[ ${tz} == "FOOKABLOIE" ]] ; then
+ elog "You do not have TIMEZONE set in ${src}."
+
+ if [[ ! -e ${ROOT}/etc/localtime ]] ; then
+ cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
+ elog "Setting ${ROOT}etc/localtime to Factory."
+ else
+ elog "Skipping auto-update of ${ROOT}etc/localtime."
+ fi
+ return 0
+ fi
+
+ if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
+ elog "You have an invalid TIMEZONE setting in ${src}"
+ elog "Your ${ROOT}etc/localtime has been reset to Factory; enjoy!"
+ tz="Factory"
+ fi
+ einfo "Updating ${ROOT}etc/localtime with ${ROOT}usr/share/zoneinfo/${tz}"
+ [[ -L ${ROOT}/etc/localtime ]] && rm -f "${ROOT}"/etc/localtime
+ cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime
+}
+
+pkg_postinst() {
+ pkg_config
+}