/[gentoo-alt]/trunk/prefix/sys-libs/timezone-data/timezone-data-2006k.ebuild
Gentoo

Contents of /trunk/prefix/sys-libs/timezone-data/timezone-data-2006k.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1329 - (show annotations) (download)
Wed Sep 6 09:26:09 2006 UTC (8 years, 3 months ago) by grobian
File size: 1390 byte(s)
weed unsupported archs


1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2006k.ebuild,v 1.1 2006/08/28 22:59:36 vapier Exp $
4
5 EAPI="prefix"
6
7 inherit eutils toolchain-funcs flag-o-matic
8
9 DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
10 HOMEPAGE="ftp://elsie.nci.nih.gov/pub/"
11 SRC_URI="ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz
12 ftp://elsie.nci.nih.gov/pub/tzcode${PV}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="elibc_FreeBSD"
18
19 DEPEND=""
20
21 S=${WORKDIR}
22
23 src_unpack() {
24 unpack ${A}
25 epatch "${FILESDIR}"/${PN}-2005n-makefile.patch
26 tc-is-cross-compiler && cp -pR ${S} ${S}-native
27 }
28
29 src_compile() {
30 tc-export CC
31 # Fixes bug #138251.
32 use elibc_FreeBSD && append-flags -DSTD_INSPIRED
33 emake || die "emake failed"
34 }
35
36 src_install() {
37 local zic=""
38 if tc-is-cross-compiler; then
39 make -C ${S}-native CC=$(tc-getBUILD_CC) zic || die
40 zic="zic=${S}-native/zic"
41 fi
42 make install ${zic} DESTDIR="${EDEST}" || die
43 rm -rf "${D}"/usr/share/zoneinfo-leaps
44 dodoc README Theory
45 dohtml *.htm *.jpg
46 }
47
48 pkg_postinst() {
49 if [[ ! -e ${ROOT}/etc/localtime ]] ; then
50 ewarn "Please remember to set your timezone using the zic command."
51 rm -f "${ROOT}"/etc/localtime
52 ln -s ../usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20