freebsd-ports/misc/zoneinfo/Makefile
Edwin Groothuis 35ff0626de Update to tzdata2015d:
Release 2015d - 2015-04-24 08:09:46 -0700

  Changes affecting future time stamps

    Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

  Change affecting past and future time zone abbreviations

    The abbreviations for Hawaii-Aleutian standard and daylight times
    have been changed from HAST/HADT to HST/HDT, as per US Government
    Printing Office style.  This affects only America/Adak since 1983,
    as America/Honolulu was already using the new style.
2015-05-18 21:00:22 +00:00

71 lines
1.8 KiB
Makefile

# Created by: Edwin Groothuis <edwin@mavetju.org>
# $FreeBSD$
PORTNAME= zoneinfo
DISTVERSION= 2015d
CATEGORIES= misc
MASTER_SITES= ftp://ftp.iana.org/tz/releases/ \
ftp://munnari.oz.au/pub/
DISTNAME= tzdata${DISTVERSION}
MAINTAINER= edwin@mavetju.org
COMMENT= Updated timezone definitions
WRKSRC= ${WRKDIR}
PREFIX= /usr
TZFILES= africa antarctica asia australasia etcetera europe \
factory northamerica southamerica systemv
POSIXRULES= America/New_York
# Run with "DEVELOPER=1 make check-plist" before commiting!
# Make sure it breaks when the distfile isn't there anymore.
.if !defined(PACKAGE_BUILDING)
MASTER_SITES+= http://people.freebsd.org/~edwin/
.endif
.include <bsd.port.pre.mk>
# The following country codes can be missing from /usr/share/misc/iso3166 and
# shouldn't appear in the zoneinfo file.
MISSING= ax bl bq cw gg im je me mf rs ss sx
.ifndef NOMISSING
.for M in ${MISSING}
HAS_${M:tu}!= ${GREP} -c ^${M:tu} /usr/share/misc/iso3166 || ${TRUE}
.if ${HAS_${M:tu}} == "0"
EXTRA_PATCHES+= ${FILESDIR}/patchremove-${M}
.endif
.endfor
.endif
do-build:
umask 022; \
cd ${WRKSRC}; \
zic -d ${WRKSRC}/zoneinfo -p ${POSIXRULES} -m ${NOBINMODE} \
${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/zoneinfo
${CP} -R -p ${WRKSRC}/zoneinfo/ ${STAGEDIR}${PREFIX}/share/zoneinfo
${INSTALL_DATA} ${WRKSRC}/zone.tab ${STAGEDIR}${PREFIX}/share/zoneinfo
post-install:
@if [ -f /var/db/zoneinfo -a -O /var/db/zoneinfo -a \
-G /var/db/zoneinfo -a \
-f /usr/share/zoneinfo/$$(cat /var/db/zoneinfo) ]; then \
tzsetup -r; \
echo "/etc/localtime is updated."; \
else \
${CAT} ${PKGMESSAGE}; \
fi
test-patches:
.for M in ${MISSING}
make clean
NOMISSING=1 EXTRA_PATCHES=${FILESDIR}/patchremove-${M} make patch
.endfor
.include <bsd.port.post.mk>