From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-libs/timezone-data: ChangeLog timezone-data-2008a.ebuild |
Date: | Mon, 10 Mar 2008 15:23:36 |
Message-Id: | E1JYjqe-0002po-Nn@stork.gentoo.org |
1 | vapier 08/03/10 15:23:32 |
2 | |
3 | Modified: ChangeLog |
4 | Added: timezone-data-2008a.ebuild |
5 | Log: |
6 | Version bump #212931 by Rodrigo Severo. |
7 | (Portage version: 2.2_pre2) |
8 | |
9 | Revision Changes Path |
10 | 1.119 sys-libs/timezone-data/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.119&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?rev=1.119&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/ChangeLog?r1=1.118&r2=1.119 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v |
19 | retrieving revision 1.118 |
20 | retrieving revision 1.119 |
21 | diff -u -r1.118 -r1.119 |
22 | --- ChangeLog 11 Feb 2008 14:55:07 -0000 1.118 |
23 | +++ ChangeLog 10 Mar 2008 15:23:32 -0000 1.119 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for sys-libs/timezone-data |
26 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.118 2008/02/11 14:55:07 coldwind Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.119 2008/03/10 15:23:32 vapier Exp $ |
29 | + |
30 | +*timezone-data-2008a (10 Mar 2008) |
31 | + |
32 | + 10 Mar 2008; Mike Frysinger <vapier@g.o> |
33 | + +timezone-data-2008a.ebuild: |
34 | + Version bump #212931 by Rodrigo Severo. |
35 | |
36 | 11 Feb 2008; Santiago M. Mola <coldwind@g.o> ChangeLog: |
37 | amd64 stable wrt bug #209259 |
38 | |
39 | |
40 | |
41 | 1.1 sys-libs/timezone-data/timezone-data-2008a.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008a.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008a.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: timezone-data-2008a.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2008 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2008a.ebuild,v 1.1 2008/03/10 15:23:32 vapier Exp $ |
51 | |
52 | inherit eutils toolchain-funcs flag-o-matic |
53 | |
54 | code_ver=${PV} |
55 | data_ver=${PV} |
56 | DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)" |
57 | HOMEPAGE="ftp://elsie.nci.nih.gov/pub/" |
58 | SRC_URI="ftp://elsie.nci.nih.gov/pub/tzdata${data_ver}.tar.gz |
59 | ftp://elsie.nci.nih.gov/pub/tzcode${code_ver}.tar.gz" |
60 | |
61 | LICENSE="GPL-2" |
62 | SLOT="0" |
63 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
64 | IUSE="nls elibc_FreeBSD elibc_glibc" |
65 | |
66 | DEPEND="" |
67 | |
68 | S=${WORKDIR} |
69 | |
70 | src_unpack() { |
71 | unpack ${A} |
72 | epatch "${FILESDIR}"/${PN}-2005n-makefile.patch |
73 | tc-is-cross-compiler && cp -pR "${S}" "${S}"-native |
74 | } |
75 | |
76 | src_compile() { |
77 | tc-export CC |
78 | use elibc_FreeBSD && append-flags -DSTD_INSPIRED #138251 |
79 | if use nls ; then |
80 | use elibc_glibc || append-ldflags -lintl #154181 |
81 | export NLS=1 |
82 | else |
83 | export NLS=0 |
84 | fi |
85 | emake || die "emake failed" |
86 | if tc-is-cross-compiler ; then |
87 | make -C "${S}"-native CC=$(tc-getBUILD_CC) CFLAGS="${BUILD_CFLAGS}" zic || die |
88 | fi |
89 | } |
90 | |
91 | src_install() { |
92 | local zic="" |
93 | tc-is-cross-compiler && zic="zic=${S}-native/zic" |
94 | make install ${zic} DESTDIR="${D}" || die |
95 | rm -rf "${D}"/usr/share/zoneinfo-leaps |
96 | dodoc README Theory |
97 | dohtml *.htm *.jpg |
98 | } |
99 | |
100 | pkg_config() { |
101 | # make sure the /etc/localtime file does not get stale #127899 |
102 | local tz=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE}) |
103 | [[ -z ${tz} ]] && return 0 |
104 | if [[ ${tz} == "FOOKABLOIE" ]] ; then |
105 | elog "You do not have TIMEZONE set in /etc/conf.d/clock." |
106 | if [[ ! -e ${ROOT}/etc/localtime ]] ; then |
107 | cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime |
108 | elog "Setting /etc/localtime to Factory." |
109 | else |
110 | elog "Skipping auto-update of /etc/localtime." |
111 | fi |
112 | return 0 |
113 | fi |
114 | |
115 | if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then |
116 | elog "You have an invalid TIMEZONE setting in /etc/conf.d/clock." |
117 | elog "Your /etc/localtime has been reset to Factory; enjoy!" |
118 | tz="Factory" |
119 | fi |
120 | einfo "Updating /etc/localtime with /usr/share/zoneinfo/${tz}" |
121 | [[ -L ${ROOT}/etc/localtime ]] && rm -f "${ROOT}"/etc/localtime |
122 | cp -f "${ROOT}"/usr/share/zoneinfo/"${tz}" "${ROOT}"/etc/localtime |
123 | } |
124 | |
125 | pkg_postinst() { |
126 | pkg_config |
127 | } |
128 | |
129 | |
130 | |
131 | -- |
132 | gentoo-commits@l.g.o mailing list |