diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-12-04 01:53:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-12-04 01:53:14 +0000 |
commit | 2a512b9f3aaa4413b05261815541f4922f0c890a (patch) | |
tree | cf108bcad4283d4ff8b9360d5020458ad3f64143 /sys-libs/timezone-data | |
parent | sys-apps/portage-2.1.4_rc6 is no longer in the tree (diff) | |
download | gentoo-2-2a512b9f3aaa4413b05261815541f4922f0c890a.tar.gz gentoo-2-2a512b9f3aaa4413b05261815541f4922f0c890a.tar.bz2 gentoo-2-2a512b9f3aaa4413b05261815541f4922f0c890a.zip |
Version bump #201124 by Rodrigo Severo.
(Portage version: 2.1.4_rc4)
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-2007j | 6 | ||||
-rw-r--r-- | sys-libs/timezone-data/timezone-data-2007j.ebuild | 80 |
3 files changed, 94 insertions, 2 deletions
diff --git a/sys-libs/timezone-data/ChangeLog b/sys-libs/timezone-data/ChangeLog index 88d957a67776..36222e0b0b08 100644 --- a/sys-libs/timezone-data/ChangeLog +++ b/sys-libs/timezone-data/ChangeLog @@ -1,12 +1,18 @@ # ChangeLog for sys-libs/timezone-data # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.99 2007/11/01 18:43:21 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.100 2007/12/04 01:53:13 vapier Exp $ + +*timezone-data-2007j (04 Dec 2007) + + 04 Dec 2007; Mike Frysinger <vapier@gentoo.org> + +timezone-data-2007j.ebuild: + Version bump #201124 by Rodrigo Severo. *timezone-data-2007i (01 Nov 2007) 01 Nov 2007; Mike Frysinger <vapier@gentoo.org> +timezone-data-2007i.ebuild: - Version bump #3631 by Rodrigo Severo. + Version bump #197776 by Rodrigo Severo. 12 Oct 2007; Tom Gall <tgall@gentoo.org> timezone-data-2007g.ebuild: stable on ppc64, bug #194015 diff --git a/sys-libs/timezone-data/files/digest-timezone-data-2007j b/sys-libs/timezone-data/files/digest-timezone-data-2007j new file mode 100644 index 000000000000..6a4200c8947c --- /dev/null +++ b/sys-libs/timezone-data/files/digest-timezone-data-2007j @@ -0,0 +1,6 @@ +MD5 02f71a69ea46f5217dc54b987720b820 tzcode2007j.tar.gz 190038 +RMD160 52661ebb2f40440fa70384d1fc53653d3cd36136 tzcode2007j.tar.gz 190038 +SHA256 696b5fd267c991bb814a69b0bfff8ca4edf484f5859c955ec15a134a1d7045c9 tzcode2007j.tar.gz 190038 +MD5 cca2880ec98ad43a0a6ba0bc9beb81c1 tzdata2007j.tar.gz 163202 +RMD160 a3699d9405b7229b33b0c381ef624a6afb7a81be tzdata2007j.tar.gz 163202 +SHA256 0319a3dc08f05a92b5c409cc7278a45fa6194bcdfdd27918554bd3d8d6d33c6d tzdata2007j.tar.gz 163202 diff --git a/sys-libs/timezone-data/timezone-data-2007j.ebuild b/sys-libs/timezone-data/timezone-data-2007j.ebuild new file mode 100644 index 000000000000..34067e237071 --- /dev/null +++ b/sys-libs/timezone-data/timezone-data-2007j.ebuild @@ -0,0 +1,80 @@ +# 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-2007j.ebuild,v 1.1 2007/12/04 01:53:13 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 elibc_FreeBSD elibc_glibc" + +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) CFLAGS="${BUILD_CFLAGS}" 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_config() { + # make sure the /etc/localtime file does not get stale #127899 + local tz=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE}) + [[ -z ${tz} ]] && return 0 + if [[ ${tz} == "FOOKABLOIE" ]] ; then + elog "You do not have TIMEZONE set in /etc/conf.d/clock." + if [[ ! -e ${ROOT}/etc/localtime ]] ; then + cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime + elog "Setting /etc/localtime to Factory." + else + elog "Skipping auto-update of /etc/localtime." + fi + return 0 + fi + + if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then + elog "You have an invalid TIMEZONE setting in /etc/conf.d/clock." + elog "Your /etc/localtime has been reset to Factory; enjoy!" + tz="Factory" + fi + einfo "Updating /etc/localtime with /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 +} |