# ChangeLog for sys-libs/timezone-data
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.41 2006/10/03 00:52:23 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.42 2006/10/11 03:14:39 vapier Exp $
+
+*timezone-data-2006n (11 Oct 2006)
+
+ 11 Oct 2006; Mike Frysinger <vapier@gentoo.org>
+ +timezone-data-2006n.ebuild:
+ Version bump #150762 by Rodrigo Severo.
*timezone-data-2006m (03 Oct 2006)
--- /dev/null
+MD5 8eacb8dab98dbb95c4085b6c77ba3083 tzcode2006n.tar.gz 187066
+RMD160 1f382452ef2f14e6c542918bb04556bb667f34b1 tzcode2006n.tar.gz 187066
+SHA256 c95d2f3ca68608f29c98d94aa88e260096e2a91025ad6319fb28af3f0eaee56c tzcode2006n.tar.gz 187066
+MD5 dee8a703541c5d28a656efdac6a6d525 tzdata2006n.tar.gz 157084
+RMD160 8b9eba9fc646bd7a25c51c9cabbb043ce8f70301 tzdata2006n.tar.gz 157084
+SHA256 406896398bb307eea317758790f320e3d5f2c61eceb7442ec1461c7bfcd66a60 tzdata2006n.tar.gz 157084
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2006n.ebuild,v 1.1 2006/10/11 03:14:39 vapier Exp $
+
+inherit eutils toolchain-funcs flag-o-matic
+
+code_ver=${PV}
+data_ver=${PV}
+DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
+HOMEPAGE="ftp://elsie.nci.nih.gov/pub/"
+SRC_URI="ftp://elsie.nci.nih.gov/pub/tzdata${data_ver}.tar.gz
+ ftp://elsie.nci.nih.gov/pub/tzcode${code_ver}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="elibc_FreeBSD"
+
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${PN}-2005n-makefile.patch
+ tc-is-cross-compiler && cp -pR ${S} ${S}-native
+}
+
+src_compile() {
+ tc-export CC
+ # Fixes bug #138251.
+ use elibc_FreeBSD && append-flags -DSTD_INSPIRED
+ emake || die "emake failed"
+}
+
+src_install() {
+ local zic=""
+ if tc-is-cross-compiler; then
+ make -C ${S}-native CC=$(tc-getBUILD_CC) zic || die
+ zic="zic=${S}-native/zic"
+ fi
+ make install ${zic} DESTDIR="${D}" || die
+ rm -rf "${D}"/usr/share/zoneinfo-leaps
+ dodoc README Theory
+ dohtml *.htm *.jpg
+}
+
+pkg_postinst() {
+ if [[ ! -e ${ROOT}/etc/localtime ]] ; then
+ ewarn "Please remember to set your timezone using the zic command."
+ rm -f "${ROOT}"/etc/localtime
+ ln -s ../usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
+ fi
+}