pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang Use a recursion depth of 3 for config.guess/confi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/585083c72f12
branches: trunk
changeset: 519937:585083c72f12
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Oct 12 14:14:13 2006 +0000
description:
Use a recursion depth of 3 for config.guess/config.sub replacement.
Use portable way to compute timezone offset instead of timezone/daylight,
the former is a function on some BSDs and the latter doesn't even exist
in DragonFly. Fix PLIST on swi-prolog-packages to not use NetBSD ELFism.
Bump revision of swi-prolog-lite and swi-prolog-packages.
diffstat:
lang/swi-prolog-lite/Makefile | 4 +-
lang/swi-prolog-lite/distinfo | 3 +-
lang/swi-prolog-lite/patches/patch-ak | 70 +++++++++++++++++++++++++++++++++++
lang/swi-prolog-packages/Makefile | 11 ++++-
lang/swi-prolog-packages/PLIST | 40 ++++++++++----------
5 files changed, 103 insertions(+), 25 deletions(-)
diffs (225 lines):
diff -r 070a510b8020 -r 585083c72f12 lang/swi-prolog-lite/Makefile
--- a/lang/swi-prolog-lite/Makefile Thu Oct 12 14:12:15 2006 +0000
+++ b/lang/swi-prolog-lite/Makefile Thu Oct 12 14:14:13 2006 +0000
@@ -1,13 +1,15 @@
-# $NetBSD: Makefile,v 1.10 2006/08/02 15:15:36 kristerw Exp $
+# $NetBSD: Makefile,v 1.11 2006/10/12 14:14:13 joerg Exp $
.include "Makefile.common"
PKGNAME= swi-prolog-lite-${SWIPLVERS}
+PKGREVISION= 1
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
COMMENT= ISO/Edinburgh-style Prolog compiler
GNU_CONFIGURE= yes
+OVERRIDE_DIRDEPTH= 3
USE_GNU_READLINE= yes # uses rl_event_hook() interface
CONFIGURE_ENV+= PL=swi-prolog
diff -r 070a510b8020 -r 585083c72f12 lang/swi-prolog-lite/distinfo
--- a/lang/swi-prolog-lite/distinfo Thu Oct 12 14:12:15 2006 +0000
+++ b/lang/swi-prolog-lite/distinfo Thu Oct 12 14:14:13 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2006/08/02 15:15:36 kristerw Exp $
+$NetBSD: distinfo,v 1.6 2006/10/12 14:14:13 joerg Exp $
SHA1 (swi-prolog/pl-5.6.17.tar.gz) = e46e98b3ec8a69de3dc2eb147a9df9cbd1a17399
RMD160 (swi-prolog/pl-5.6.17.tar.gz) = 7f6786013b43c2e00b8e4a3799cbad1f7cac2fab
@@ -13,3 +13,4 @@
SHA1 (patch-ah) = 3bfc13a920e0f3a79e6764a9ace89032989e2c67
SHA1 (patch-ai) = 9446bc38a0a7e02de303e68c923249b615c91833
SHA1 (patch-aj) = 4450848127eab9f05113aaabfa48725336353e79
+SHA1 (patch-ak) = e767d69287f5b649048a5a6081061522c06edc18
diff -r 070a510b8020 -r 585083c72f12 lang/swi-prolog-lite/patches/patch-ak
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/patches/patch-ak Thu Oct 12 14:14:13 2006 +0000
@@ -0,0 +1,70 @@
+$NetBSD: patch-ak,v 1.1 2006/10/12 14:14:13 joerg Exp $
+
+--- src/pl-tai.c.orig 2006-07-28 09:20:12.000000000 +0000
++++ src/pl-tai.c
+@@ -38,11 +38,8 @@ long set by tzset(). Not really clean .
+
+ #ifdef WIN32
+ #define timezone _timezone
+-#define daylight _daylight
+ #else
+ extern char *tzname[2];
+-extern long timezone;
+-extern int daylight;
+ #endif
+
+
+@@ -82,8 +79,21 @@ do_tzset()
+
+ static int
+ tz_offset()
+-{ do_tzset();
+- return timezone;
++{
++ time_t now = time(NULL), t_gmt, t_local;
++ struct tm gmt, local;
++ int diff;
++
++ do_tzset();
++ gmtime_r(&now, &gmt);
++ t_gmt = mktime(&gmt);
++ localtime_r(&now, &local);
++ t_local = mktime(&local);
++ diff = t_local - t_gmt;
++ if (local.tm_isdst)
++ diff += 3600;
++
++ return diff;
+ }
+
+
+@@ -312,14 +322,12 @@ PRED_IMPL("stamp_date_time", 3, stamp_da
+ ct.hour = tm.tm_hour;
+ ct.minute = tm.tm_min;
+ tzatom = tz_name_as_atom(tm.tm_isdst);
+- if ( daylight ) /* from tzset() */
+- { if ( tm.tm_isdst )
++ if ( tm.tm_isdst )
+ { utcoffset -= 3600;
+ dstatom = ATOM_true;
+ } else
+ { dstatom = ATOM_false;
+ }
+- }
+ done = TRUE;
+ }
+ } else if ( alocal == ATOM_utc )
+@@ -721,12 +729,10 @@ PRED_IMPL("format_time", 3, format_time,
+ { localtime_r(&unixt, &tb.tm);
+ tb.sec = (double)tb.tm.tm_sec + modf(tb.stamp, &ip);
+ tb.utcoff = tz_offset();
+- if ( daylight )
+- { if ( tb.tm.tm_isdst )
++ if ( tb.tm.tm_isdst )
+ { tb.utcoff -= 3600;
+ tb.isdst = TRUE;
+ }
+- }
+ tb.tzname = tz_name_as_atom(tb.tm.tm_isdst);
+ tb.flags = HAS_STAMP|HAS_WYDAY;
+ } else
diff -r 070a510b8020 -r 585083c72f12 lang/swi-prolog-packages/Makefile
--- a/lang/swi-prolog-packages/Makefile Thu Oct 12 14:12:15 2006 +0000
+++ b/lang/swi-prolog-packages/Makefile Thu Oct 12 14:14:13 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/08/29 23:58:24 markd Exp $
+# $NetBSD: Makefile,v 1.14 2006/10/12 14:14:13 joerg Exp $
.include "../../lang/swi-prolog-lite/Makefile.common"
@@ -9,17 +9,22 @@
COMMENT= Packages for SWI Prolog
GNU_CONFIGURE= yes
+OVERRIDE_DIRDEPTH= 3
USE_GNU_READLINE= yes # uses rl_event_hook() interface
USE_TOOLS+= gmake
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "xorg"
+BUILD_DEPENDS+= xorg-server-[0-9]*:../../x11/xorg-server
+.endif
+
CONFIGURE_ENV+= PL=swi-prolog
CONFIGURE_ARGS+= --disable-mt
BUILD_DIRS+= ${WRKSRC}/packages
INSTALL_DIRS+= ${WRKSRC}/packages
-.include "../../mk/bsd.prefs.mk"
-
post-configure:
${LN} -sf ${LOCALBASE}/bin/plld ${WRKSRC}/src
${LN} -sf ${LOCALBASE}/bin/swi-prolog ${WRKSRC}/src
diff -r 070a510b8020 -r 585083c72f12 lang/swi-prolog-packages/PLIST
--- a/lang/swi-prolog-packages/PLIST Thu Oct 12 14:12:15 2006 +0000
+++ b/lang/swi-prolog-packages/PLIST Thu Oct 12 14:14:13 2006 +0000
@@ -1,21 +1,21 @@
-@comment $NetBSD: PLIST,v 1.2 2006/08/02 15:15:36 kristerw Exp $
+@comment $NetBSD: PLIST,v 1.3 2006/10/12 14:14:13 joerg Exp $
bin/xpce
bin/xpce-client
lib/swi-prolog-${PKGVERSION}/Makefile
-lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf/xpce
+lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/xpce
lib/swi-prolog-${PKGVERSION}/include/SWI-cpp.h
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/cgi.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/files.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/memfile.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/mime.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/rdf_db.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/readutil.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/rlimit.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/sgml2pl.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/socket.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/table.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/time.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/unix.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/cgi.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/files.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/memfile.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/mime.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/rdf_db.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/readutil.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/rlimit.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/sgml2pl.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/socket.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/table.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/time.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/unix.so
lib/swi-prolog-${PKGVERSION}/library/DTD/HTML4.dcl
lib/swi-prolog-${PKGVERSION}/library/DTD/HTML4.dtd
lib/swi-prolog-${PKGVERSION}/library/DTD/HTML4.soc
@@ -110,7 +110,7 @@
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help/pcedraw.hlp
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help/pcefaq.hlp
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help/plprefs.hlp
-lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf/xpce-client
+lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/xpce-client
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16/alert.xpm
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16/arrow_length.xpm
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16/arrow_wing.xpm
@@ -659,7 +659,7 @@
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce/While.h
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce/Window.h
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce/WindowDecorator.h
-lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/pl2xpce.so
+lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/pl2xpce.so
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/faq/faq.html
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/reference/bug_fixes.doc
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/reference/changes.doc
@@ -1266,13 +1266,13 @@
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/reference
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/faq
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man
-@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/patterns
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/32x32
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps
-@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/CXX
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17
@@ -1281,7 +1281,7 @@
@dirrm lib/swi-prolog-${PKGVERSION}/library/chr
@dirrm lib/swi-prolog-${PKGVERSION}/library/DTD
@dirrm lib/swi-prolog-${PKGVERSION}/library
-@dirrm lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}/include
-@dirrm lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}
Home |
Main Index |
Thread Index |
Old Index