pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/swi-prolog-lite move over swi-prolog-lite from pk...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/79acdbe08445
branches:  trunk
changeset: 475587:79acdbe08445
user:      hubertf <hubertf%pkgsrc.org@localhost>
date:      Thu May 20 11:09:16 2004 +0000

description:
move over swi-prolog-lite from pkgsrc-wip

diffstat:

 lang/swi-prolog-lite/DESCR            |    9 +
 lang/swi-prolog-lite/Makefile         |   35 ++++
 lang/swi-prolog-lite/Makefile.common  |   14 +
 lang/swi-prolog-lite/PLIST            |   95 +++++++++++
 lang/swi-prolog-lite/buildlink3.mk    |   21 ++
 lang/swi-prolog-lite/distinfo         |   13 +
 lang/swi-prolog-lite/files/shlib.pl   |  293 ++++++++++++++++++++++++++++++++++
 lang/swi-prolog-lite/patches/patch-aa |   50 +++++
 lang/swi-prolog-lite/patches/patch-ab |   13 +
 lang/swi-prolog-lite/patches/patch-ac |   13 +
 lang/swi-prolog-lite/patches/patch-ad |   13 +
 lang/swi-prolog-lite/patches/patch-ae |   31 +++
 lang/swi-prolog-lite/patches/patch-af |   22 ++
 lang/swi-prolog-lite/patches/patch-ag |   13 +
 lang/swi-prolog-lite/patches/patch-ah |   14 +
 lang/swi-prolog-lite/patches/patch-ai |   19 ++
 16 files changed, 668 insertions(+), 0 deletions(-)

diffs (truncated from 732 to 300 lines):

diff -r ae2972ddb17a -r 79acdbe08445 lang/swi-prolog-lite/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/DESCR        Thu May 20 11:09:16 2004 +0000
@@ -0,0 +1,9 @@
+ISO/Edinburgh-style Prolog compiler.  Compliant with Part 1 of the ISO
+standard for Prolog.  Covers all traditional Edinburgh Prolog features
+and shares many features with Quintus and SICStus Prolog, including a
+compatible module system. Very fast compiler, garbage collection (also
+on atoms), fast and powerful C/C++ interface, autoloading,
+GNU-readline interface.  SWI-Prolog supports architectures with 32-bit
+or greater (64-bit) word-length.  
+
+Packages are available in the swi-prolog-packages package.
diff -r ae2972ddb17a -r 79acdbe08445 lang/swi-prolog-lite/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/Makefile     Thu May 20 11:09:16 2004 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/05/20 11:09:16 hubertf Exp $
+
+.include "Makefile.common"
+
+PKGNAME=               swi-prolog-lite-${SWIPLVERS}
+
+MAINTAINER=            hubertf%NetBSD.org@localhost
+COMMENT=               ISO/Edinburgh-style Prolog compiler
+
+GNU_CONFIGURE=         # defined
+USE_BUILDLINK3=                # defined
+USE_BUILTIN.readline=  no      # uses rl_event_hook() interface
+
+CONFIGURE_ENV+=                PL=swi-prolog
+CONFIGURE_ARGS+=       --disable-mt
+#CPPFLAGS+=            -DPREFIX=\"${PREFIX}\"
+#CPPFLAGS+=            -DSWIPLVERS=\"${SWIPLVERS}\"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64 || \
+       ${MACHINE_ARCH} == x86_64
+PLIST_SUBST+=          BITS=64
+.else
+PLIST_SUBST+=          BITS=32
+.endif
+
+post-install:
+       ${INSTALL_DATA} ${FILESDIR}/shlib.pl \
+               ${PREFIX}/lib/swi-prolog-${PKGVERSION}/library/shlib.pl
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+#.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ae2972ddb17a -r 79acdbe08445 lang/swi-prolog-lite/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/Makefile.common      Thu May 20 11:09:16 2004 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/05/20 11:09:17 hubertf Exp $
+
+SWIPLVERS=             5.2.13
+DISTNAME=              pl-${SWIPLVERS}
+CATEGORIES=            lang
+MASTER_SITES=          ftp://ftp.swi.psy.uva.nl/SWI-Prolog/
+
+HOMEPAGE=              http://www.swi-prolog.org/
+
+DIST_SUBDIR=           swi-prolog
+DISTINFO_FILE=         ${.CURDIR}/../../wip/swi-prolog-lite/distinfo
+PATCHDIR=              ${.CURDIR}/../../wip/swi-prolog-lite/patches
+
+PLIST_SUBST+=           APPEND_ELF=${APPEND_ELF}
diff -r ae2972ddb17a -r 79acdbe08445 lang/swi-prolog-lite/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/PLIST        Thu May 20 11:09:16 2004 +0000
@@ -0,0 +1,95 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/20 11:09:17 hubertf Exp $
+bin/plld
+bin/plrc
+bin/swi-prolog
+include/SWI-Prolog.h
+include/SWI-Stream.h
+lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/plld
+lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/plrc
+lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/swi-prolog
+lib/swi-prolog-${PKGVERSION}/bin/swipl
+lib/swi-prolog-${PKGVERSION}/boot/apply.pl
+lib/swi-prolog-${PKGVERSION}/boot/autoload.pl
+lib/swi-prolog-${PKGVERSION}/boot/bags.pl
+lib/swi-prolog-${PKGVERSION}/boot/dwim.pl
+lib/swi-prolog-${PKGVERSION}/boot/history.pl
+lib/swi-prolog-${PKGVERSION}/boot/init.pl
+lib/swi-prolog-${PKGVERSION}/boot/license.pl
+lib/swi-prolog-${PKGVERSION}/boot/load.pl
+lib/swi-prolog-${PKGVERSION}/boot/menu.pl
+lib/swi-prolog-${PKGVERSION}/boot/messages.pl
+lib/swi-prolog-${PKGVERSION}/boot/parms.pl
+lib/swi-prolog-${PKGVERSION}/boot/qlf.pl
+lib/swi-prolog-${PKGVERSION}/boot/rc.pl
+lib/swi-prolog-${PKGVERSION}/boot/sort.pl
+lib/swi-prolog-${PKGVERSION}/boot/syspred.pl
+lib/swi-prolog-${PKGVERSION}/boot/toplevel.pl
+lib/swi-prolog-${PKGVERSION}/boot/topvars.pl
+lib/swi-prolog-${PKGVERSION}/boot/writef.pl
+lib/swi-prolog-${PKGVERSION}/boot${BITS}.prc
+lib/swi-prolog-${PKGVERSION}/dotfiles/README
+lib/swi-prolog-${PKGVERSION}/dotfiles/dotplrc
+lib/swi-prolog-${PKGVERSION}/dotfiles/dotxpcerc
+lib/swi-prolog-${PKGVERSION}/dotfiles/edit
+lib/swi-prolog-${PKGVERSION}/include/SWI-Prolog.h
+lib/swi-prolog-${PKGVERSION}/include/SWI-Stream.h
+lib/swi-prolog-${PKGVERSION}/include/stub.c
+lib/swi-prolog-${PKGVERSION}/library/INDEX.pl
+@unexec rm -f %D/%F
+lib/swi-prolog-${PKGVERSION}/library/MANUAL
+lib/swi-prolog-${PKGVERSION}/library/am_match.pl
+lib/swi-prolog-${PKGVERSION}/library/backcomp.pl
+lib/swi-prolog-${PKGVERSION}/library/bim.pl
+lib/swi-prolog-${PKGVERSION}/library/check.pl
+lib/swi-prolog-${PKGVERSION}/library/checklast.pl
+lib/swi-prolog-${PKGVERSION}/library/checkselect.pl
+lib/swi-prolog-${PKGVERSION}/library/ctypes.pl
+lib/swi-prolog-${PKGVERSION}/library/debug.pl
+lib/swi-prolog-${PKGVERSION}/library/edinburgh.pl
+lib/swi-prolog-${PKGVERSION}/library/edit.pl
+lib/swi-prolog-${PKGVERSION}/library/emacs_interface.pl
+lib/swi-prolog-${PKGVERSION}/library/explain.pl
+lib/swi-prolog-${PKGVERSION}/library/files.pl
+lib/swi-prolog-${PKGVERSION}/library/gensym.pl
+lib/swi-prolog-${PKGVERSION}/library/help.pl
+lib/swi-prolog-${PKGVERSION}/library/helpidx.pl
+lib/swi-prolog-${PKGVERSION}/library/listing.pl
+lib/swi-prolog-${PKGVERSION}/library/lists.pl
+lib/swi-prolog-${PKGVERSION}/library/main.pl
+lib/swi-prolog-${PKGVERSION}/library/make.pl
+lib/swi-prolog-${PKGVERSION}/library/netscape.pl
+lib/swi-prolog-${PKGVERSION}/library/occurs.pl
+lib/swi-prolog-${PKGVERSION}/library/option.pl
+lib/swi-prolog-${PKGVERSION}/library/ordsets.pl
+lib/swi-prolog-${PKGVERSION}/library/oset.pl
+lib/swi-prolog-${PKGVERSION}/library/qpforeign.pl
+lib/swi-prolog-${PKGVERSION}/library/qsave.pl
+lib/swi-prolog-${PKGVERSION}/library/quintus.pl
+lib/swi-prolog-${PKGVERSION}/library/readln.pl
+lib/swi-prolog-${PKGVERSION}/library/readutil.pl
+lib/swi-prolog-${PKGVERSION}/library/shell.pl
+lib/swi-prolog-${PKGVERSION}/library/shlib.pl
+lib/swi-prolog-${PKGVERSION}/library/statistics.pl
+lib/swi-prolog-${PKGVERSION}/library/system.pl
+lib/swi-prolog-${PKGVERSION}/library/threadutil.pl
+lib/swi-prolog-${PKGVERSION}/library/tty.pl
+lib/swi-prolog-${PKGVERSION}/library/url.pl
+lib/swi-prolog-${PKGVERSION}/runtime/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/libpl.a
+lib/swi-prolog-${PKGVERSION}/swipl
+man/man1/plld.1
+man/man1/plrc.1
+man/man1/swi-prolog.1
+@dirrm lib/swi-prolog-${PKGVERSION}/runtime/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
+@dirrm lib/swi-prolog-${PKGVERSION}/runtime
+@exec ${MKDIR} %D/lib/swi-prolog-${PKGVERSION}/man
+@dirrm lib/swi-prolog-${PKGVERSION}/man
+@dirrm lib/swi-prolog-${PKGVERSION}/library
+@exec ${MKDIR} %D/lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
+@dirrm lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
+@dirrm lib/swi-prolog-${PKGVERSION}/lib
+@dirrm lib/swi-prolog-${PKGVERSION}/include
+@dirrm lib/swi-prolog-${PKGVERSION}/dotfiles
+@dirrm lib/swi-prolog-${PKGVERSION}/boot
+@dirrm lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
+@dirrm lib/swi-prolog-${PKGVERSION}/bin
+@dirrm lib/swi-prolog-${PKGVERSION}
diff -r ae2972ddb17a -r 79acdbe08445 lang/swi-prolog-lite/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/buildlink3.mk        Thu May 20 11:09:16 2004 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/05/20 11:09:17 hubertf Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+SWI_PROLOG_LITE_BUILDLINK3_MK:=        ${SWI_PROLOG_LITE_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    swi-prolog-lite
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nswi-prolog-lite}
+BUILDLINK_PACKAGES+=   swi-prolog-lite
+
+.if !empty(SWI_PROLOG_LITE_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.swi-prolog-lite+=    swi-prolog-lite>=5.2.9
+BUILDLINK_PKGSRCDIR.swi-prolog-lite?=  ../../lang/swi-prolog-lite
+.endif # SWI_PROLOG_LITE_BUILDLINK3_MK
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r ae2972ddb17a -r 79acdbe08445 lang/swi-prolog-lite/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/distinfo     Thu May 20 11:09:16 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/05/20 11:09:17 hubertf Exp $
+
+SHA1 (swi-prolog/pl-5.2.13.tar.gz) = 2c13a65698e0de72e84132f929f5377306c65453
+Size (swi-prolog/pl-5.2.13.tar.gz) = 7122170 bytes
+SHA1 (patch-aa) = 2b6164ed8cc4398c1e7cc2662016e202f61e51f2
+SHA1 (patch-ab) = 66576bfd1c48a9501070308b8925f1cf4ff0bb37
+SHA1 (patch-ac) = 909331edb76b5d0ce5003d86775524cd29e22a79
+SHA1 (patch-ad) = 194e2ef8d8af03e63b7398f61a705d75b14677b5
+SHA1 (patch-ae) = 41f52217706600aac46f8992b15682024b3b6b47
+SHA1 (patch-af) = 6ca56f948950cc198fe255f064cc30fb6c1a58fb
+SHA1 (patch-ag) = 77543e08081f10deb17d48e4e91f3074f1202400
+SHA1 (patch-ah) = 3bfc13a920e0f3a79e6764a9ace89032989e2c67
+SHA1 (patch-ai) = 9446bc38a0a7e02de303e68c923249b615c91833
diff -r ae2972ddb17a -r 79acdbe08445 lang/swi-prolog-lite/files/shlib.pl
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/files/shlib.pl       Thu May 20 11:09:16 2004 +0000
@@ -0,0 +1,293 @@
+/*  $Id: shlib.pl,v 1.1.1.1 2004/05/20 11:09:17 hubertf Exp $
+
+    Part of SWI-Prolog
+
+    Author:        Jan Wielemaker
+    E-mail:        jan%swi.psy.uva.nl@localhost
+    WWW:           http://www.swi-prolog.org
+    Copyright (C): 1985-2002, University of Amsterdam
+
+    This program is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License
+    as published by the Free Software Foundation; either version 2
+    of the License, or (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+    As a special exception, if you link this library with other files,
+    compiled with a Free Software compiler, to produce an executable, this
+    library does not by itself cause the resulting executable to be covered
+    by the GNU General Public License. This exception does not however
+    invalidate any other reasons why the executable file might be covered by
+    the GNU General Public License.
+*/
+
+:- module(shlib,
+         [ load_foreign_library/1,     % :LibFile
+           load_foreign_library/2,     % :LibFile, +InstallFunc
+           unload_foreign_library/1,   % +LibFile
+           unload_foreign_library/2,   % +LibFile, +UninstallFunc
+           current_foreign_library/2,  % ?LibFile, ?Public
+           reload_foreign_libraries/0
+         ]).
+:- set_prolog_flag(generate_debug_info, false).
+
+:- module_transparent
+       load_foreign_library/1,
+       load_foreign_library/2.
+
+:- dynamic
+       loading/1,                      % Lib
+       error/2,                        % File, Error
+       foreign_predicate/2,            % Lib, Pred
+       current_library/5.              % Lib, Entry, Path, Module, Handle
+
+:- volatile                            % Do not store in state
+       loading/1,
+       error/2,
+       foreign_predicate/2,
+       current_library/5.
+
+:- (   current_prolog_flag(open_shared_object, true)
+   ->  true
+   ;   print_message(warning, shlib(not_supported)) % error?
+   ).
+
+
+                /*******************************
+                *           DISPATCHING        *
+                *******************************/
+
+/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+Windows: If libpl.dll is compiled for debugging, prefer loading <lib>D.dll
+to allow for debugging.
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
+
+find_library(Spec, Lib) :-
+       current_prolog_flag(windows, true),
+       current_prolog_flag(kernel_compile_mode, debug),
+       libd_spec(Spec, SpecD),
+       catch(find_library2(SpecD, Lib), _, fail).
+find_library(Spec, Lib) :-
+       find_library2(Spec, Lib).
+
+find_library2(Spec, Lib) :-
+       absolute_file_name(Spec,
+                          [ file_type(executable),
+                            access(read),
+                            file_errors(fail)



Home | Main Index | Thread Index | Old Index