timezone-data-2015c-makefile.patch 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. - Fix up default paths
  2. - Support env CC
  3. - Don't build/install libtz.a
  4. - Don't install man-pages provided by sys-apps/man-pages
  5. - Move zic, zdump to sbin and tzselect to bin ala glibc
  6. - Do not run network based unittests
  7. --- a/Makefile
  8. +++ b/Makefile
  9. @@ -45,21 +45,21 @@ POSIXRULES= America/New_York
  10. # Everything gets put in subdirectories of. . .
  11. -TOPDIR= /usr/local
  12. +TOPDIR= /usr
  13. # "Compiled" time zone information is placed in the "TZDIR" directory
  14. # (and subdirectories).
  15. # Use an absolute path name for TZDIR unless you're just testing the software.
  16. TZDIR_BASENAME= zoneinfo
  17. -TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
  18. +TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
  19. # Types to try, as an alternative to time_t. int64_t should be first.
  20. TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
  21. # The "tzselect", "zic", and "zdump" commands get installed in. . .
  22. -ETCDIR= $(TOPDIR)/etc
  23. +SBINDIR= $(TOPDIR)/sbin
  24. # If you "make INSTALL", the "date" command gets installed in. . .
  25. @@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
  26. # Manual pages go in subdirectories of. . .
  27. -MANDIR= $(TOPDIR)/man
  28. +MANDIR= $(TOPDIR)/share/man
  29. # Library functions are put in an archive in LIBDIR.
  30. @@ -298,8 +298,10 @@ GZIPFLAGS= -9n
  31. ###############################################################################
  32. -cc= cc
  33. -CC= $(cc) -DTZDIR=\"$(TZDIR)\"
  34. +CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
  35. +ifeq ($(NLS),1)
  36. +CPPFLAGS+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
  37. +endif
  38. AR= ar
  39. @@ -352,17 +354,14 @@ ALL: all date
  40. install: all $(DATA) $(REDO) $(MANS)
  41. mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
  42. - $(DESTDIR)$(LIBDIR) \
  43. + $(DESTDIR)$(SBINDIR) $(DESTDIR)$(BINDIR) \
  44. $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
  45. $(DESTDIR)$(MANDIR)/man8
  46. $(ZIC) -y $(YEARISTYPE) \
  47. -d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
  48. cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
  49. - cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
  50. + cp zic zdump $(DESTDIR)$(SBINDIR)/.
  51. + cp tzselect $(DESTDIR)$(BINDIR)/.
  52. - cp libtz.a $(DESTDIR)$(LIBDIR)/.
  53. - $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
  54. cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
  55. - cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
  56. - cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
  57. INSTALL: ALL install date.1
  58. mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
  59. @@ -440,7 +442,7 @@ tzselect: tzselect.ksh
  60. chmod +x $@
  61. check: check_character_set check_white_space check_links check_sorted \
  62. - check_tables check_web
  63. + check_tables
  64. check_character_set: $(ENCHILADA)
  65. LC_ALL=en_US.utf8 && export LC_ALL && \