diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-09 00:28:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-09 00:28:48 +0000 |
commit | 02d9111f035d1a93bf8c145d04759e187a4280a2 (patch) | |
tree | 2386b0f2b5f44aaf7c9d65661215c3065d587c80 /sys-libs/timezone-data | |
parent | old (diff) | |
download | gentoo-2-02d9111f035d1a93bf8c145d04759e187a4280a2.tar.gz gentoo-2-02d9111f035d1a93bf8c145d04759e187a4280a2.tar.bz2 gentoo-2-02d9111f035d1a93bf8c145d04759e187a4280a2.zip |
Version bump #160957 by Rodrigo Severo.
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'sys-libs/timezone-data')
-rw-r--r-- | sys-libs/timezone-data/ChangeLog | 10 | ||||
-rw-r--r-- | sys-libs/timezone-data/files/digest-timezone-data-2007a | 6 | ||||
-rw-r--r-- | sys-libs/timezone-data/timezone-data-2007a.ebuild | 73 |
3 files changed, 87 insertions, 2 deletions
diff --git a/sys-libs/timezone-data/ChangeLog b/sys-libs/timezone-data/ChangeLog index 47afeab52559..0be3f3596cd4 100644 --- a/sys-libs/timezone-data/ChangeLog +++ b/sys-libs/timezone-data/ChangeLog @@ -1,6 +1,12 @@ # 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.55 2006/12/31 14:50:54 vapier Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.56 2007/01/09 00:28:48 vapier Exp $ + +*timezone-data-2007a (09 Jan 2007) + + 09 Jan 2007; Mike Frysinger <vapier@gentoo.org> + +timezone-data-2007a.ebuild: + Version bump #160957 by Rodrigo Severo. 31 Dec 2006; Mike Frysinger <vapier@gentoo.org> timezone-data-2006p.ebuild: diff --git a/sys-libs/timezone-data/files/digest-timezone-data-2007a b/sys-libs/timezone-data/files/digest-timezone-data-2007a new file mode 100644 index 000000000000..e8028d9685c1 --- /dev/null +++ b/sys-libs/timezone-data/files/digest-timezone-data-2007a @@ -0,0 +1,6 @@ +MD5 9162d8d447eec31f60d0602edd17e123 tzcode2007a.tar.gz 187427 +RMD160 08360e03bece6b85b27db910485446e074f42fcb tzcode2007a.tar.gz 187427 +SHA256 b1f6d2bba4d13f8a8ddef946833caa612efbfa64850052317cadf1ad2b706e63 tzcode2007a.tar.gz 187427 +MD5 5ba3a8c3581a0ef962179fba1328f3cb tzdata2007a.tar.gz 157506 +RMD160 3f4d0a7fc49a69f1b1bf396dafc856c6f4e235b6 tzdata2007a.tar.gz 157506 +SHA256 7866826c0fd0810af2bb2b240c81961b0350c1fa42db870baa33c6126039e0d3 tzdata2007a.tar.gz 157506 diff --git a/sys-libs/timezone-data/timezone-data-2007a.ebuild b/sys-libs/timezone-data/timezone-data-2007a.ebuild new file mode 100644 index 000000000000..64f87c3d700a --- /dev/null +++ b/sys-libs/timezone-data/timezone-data-2007a.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2007a.ebuild,v 1.1 2007/01/09 00:28:48 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 ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="nls" + +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 + use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251 + if use nls ; then + use elibc_glibc || append-ldflags -lintl #154181 + export NLS=1 + else + export NLS=0 + fi + emake || die "emake failed" + if tc-is-cross-compiler ; then + make -C "${S}"-native CC=$(tc-getBUILD_CC) zic || die + fi +} + +src_install() { + local zic="" + tc-is-cross-compiler && zic="zic=${S}-native/zic" + make install ${zic} DESTDIR="${D}" || die + rm -rf "${D}"/usr/share/zoneinfo-leaps + dodoc README Theory + dohtml *.htm *.jpg +} + +pkg_postinst() { + # make sure the /etc/localtime file does not get stale #127899 + local tz=$(source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE}) + if [[ -z ${tz} ]] ; then + if [[ ! -e ${ROOT}/etc/localtime ]] ; then + cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime + fi + ewarn "You do not have TIMEZONE set in /etc/conf.d/clock." + ewarn "Skipping auto-update of /etc/localtime." + return 0 + fi + + if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then + eerror "You have an invalid TIMEZONE setting in /etc/conf.d/clock." + eerror "Your /etc/localtime has been reset to Factory; enjoy!" + tz="Factory" + fi + einfo "Updating /etc/localtime with /usr/share/zoneinfo/${tz}" + rm -f "${ROOT}"/etc/localtime + cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime +} |