* [bug#38604] [WIP SWI-Prolog 0/3] Add SWI-Prolog
@ 2019-12-14 3:49 Brett Gilio
2019-12-14 3:50 ` [bug#38604] [WIP SWI-Prolog 1/3] gnu: Rename module GPROLOG to PROLOG Brett Gilio
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Brett Gilio @ 2019-12-14 3:49 UTC (permalink / raw)
To: 38604
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [WIP SWI-Prolog 0/3] Add SWI-Prolog --]
[-- Type: text/x-patch, Size: 652 bytes --]
From 08bee0ab7c3c67c6d3095e35bb734243bc93b217 Mon Sep 17 00:00:00 2001
From: Brett Gilio <brettg@posteo.net>
Date: Fri, 13 Dec 2019 21:47:11 -0600
Subject: [WIP SWI-Prolog 0/3] Add SWI-Prolog
Just wanted to share my WIP on SWI-Prolog for anybody who wants to contribute,
and so I can keep track of my own progress.
Please send revision by re-rolling n+1.
Brett Gilio (3):
gnu: Rename module GPROLOG to PROLOG.
gnu: Rename GPROLOG to PROLOG in local.mk
gnu: Add swi-prolog.
gnu/local.mk | 2 +-
gnu/packages/gprolog.scm | 45 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 45 insertions(+), 2 deletions(-)
--
2.24.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#38604] [WIP SWI-Prolog 1/3] gnu: Rename module GPROLOG to PROLOG.
2019-12-14 3:49 [bug#38604] [WIP SWI-Prolog 0/3] Add SWI-Prolog Brett Gilio
@ 2019-12-14 3:50 ` Brett Gilio
2019-12-14 3:50 ` [bug#38604] [WIP SWI-Prolog 2/3] gnu: Rename GPROLOG to PROLOG in local.mk Brett Gilio
2019-12-14 3:51 ` [bug#38604] [WIP SWI-Prolog 3/3] gnu: Add swi-prolog Brett Gilio
2 siblings, 0 replies; 5+ messages in thread
From: Brett Gilio @ 2019-12-14 3:50 UTC (permalink / raw)
To: 38604
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [WIP SWI-Prolog 1/3] gnu: Rename module GPROLOG to PROLOG. --]
[-- Type: text/x-patch, Size: 865 bytes --]
From 2af9f1ffd8afd69a13d6247f180cf9aa55fd7c17 Mon Sep 17 00:00:00 2001
From: Brett Gilio <brettg@posteo.net>
Date: Fri, 13 Dec 2019 21:44:54 -0600
Subject: [WIP SWI-Prolog 1/3] gnu: Rename module GPROLOG to PROLOG.
* gnu/packages/gprolog.scm -> gnu/packages/prolog.scm.
---
gnu/packages/gprolog.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/gprolog.scm b/gnu/packages/gprolog.scm
index 166bf33294..5046c91a84 100644
--- a/gnu/packages/gprolog.scm
+++ b/gnu/packages/gprolog.scm
@@ -17,7 +17,7 @@
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
-(define-module (gnu packages gprolog)
+(define-module (gnu packages prolog)
#:use-module (guix download)
#:use-module (guix licenses)
#:use-module (guix packages)
--
2.24.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#38604] [WIP SWI-Prolog 2/3] gnu: Rename GPROLOG to PROLOG in local.mk
2019-12-14 3:49 [bug#38604] [WIP SWI-Prolog 0/3] Add SWI-Prolog Brett Gilio
2019-12-14 3:50 ` [bug#38604] [WIP SWI-Prolog 1/3] gnu: Rename module GPROLOG to PROLOG Brett Gilio
@ 2019-12-14 3:50 ` Brett Gilio
2019-12-14 3:51 ` [bug#38604] [WIP SWI-Prolog 3/3] gnu: Add swi-prolog Brett Gilio
2 siblings, 0 replies; 5+ messages in thread
From: Brett Gilio @ 2019-12-14 3:50 UTC (permalink / raw)
To: 38604
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [WIP SWI-Prolog 2/3] gnu: Rename GPROLOG to PROLOG in local.mk --]
[-- Type: text/x-patch, Size: 1002 bytes --]
From 2b8e574008473ba81ed03ed519cb9798a8cd283d Mon Sep 17 00:00:00 2001
From: Brett Gilio <brettg@posteo.net>
Date: Fri, 13 Dec 2019 21:45:37 -0600
Subject: [WIP SWI-Prolog 2/3] gnu: Rename GPROLOG to PROLOG in local.mk
* gnu/local.mk (gprolog.scm): Rename to prolog.scm
---
gnu/local.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 32b2c141fa..0aac1a58c2 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -227,7 +227,6 @@ GNU_SYSTEM_MODULES = \
%D%/packages/golang.scm \
%D%/packages/gperf.scm \
%D%/packages/gpodder.scm \
- %D%/packages/gprolog.scm \
%D%/packages/gps.scm \
%D%/packages/graph.scm \
%D%/packages/graphics.scm \
@@ -399,6 +398,7 @@ GNU_SYSTEM_MODULES = \
%D%/packages/popt.scm \
%D%/packages/printers.scm \
%D%/packages/profiling.scm \
+ %D%/packages/prolog.scm \
%D%/packages/pth.scm \
%D%/packages/pulseaudio.scm \
%D%/packages/pumpio.scm \
--
2.24.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#38604] [WIP SWI-Prolog 3/3] gnu: Add swi-prolog.
2019-12-14 3:49 [bug#38604] [WIP SWI-Prolog 0/3] Add SWI-Prolog Brett Gilio
2019-12-14 3:50 ` [bug#38604] [WIP SWI-Prolog 1/3] gnu: Rename module GPROLOG to PROLOG Brett Gilio
2019-12-14 3:50 ` [bug#38604] [WIP SWI-Prolog 2/3] gnu: Rename GPROLOG to PROLOG in local.mk Brett Gilio
@ 2019-12-14 3:51 ` Brett Gilio
2020-01-04 3:47 ` bug#38604: " Brett Gilio
2 siblings, 1 reply; 5+ messages in thread
From: Brett Gilio @ 2019-12-14 3:51 UTC (permalink / raw)
To: 38604
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [WIP SWI-Prolog 3/3] gnu: Add swi-prolog. --]
[-- Type: text/x-patch, Size: 2301 bytes --]
From 08bee0ab7c3c67c6d3095e35bb734243bc93b217 Mon Sep 17 00:00:00 2001
From: Brett Gilio <brettg@posteo.net>
Date: Fri, 13 Dec 2019 21:46:26 -0600
Subject: [WIP SWI-Prolog 3/3] gnu: Add swi-prolog.
* gnu/packages/gprolog.scm (swi-prolog): New variable.
---
gnu/packages/gprolog.scm | 43 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/gprolog.scm b/gnu/packages/gprolog.scm
index 5046c91a84..2f1fac2449 100644
--- a/gnu/packages/gprolog.scm
+++ b/gnu/packages/gprolog.scm
@@ -66,3 +66,46 @@ manner. It also features an interactive interpreter.")
(supported-systems (fold delete
%supported-systems
'("armhf-linux" "mips64el-linux")))))
+
+;; TODO: This current version of SWI-PROLOG using the
+;; tarball from the official website is completely self-contained
+;; such that all submodules are provided. Eventually replace this
+;; and manually patch those submodules.
+(define-public swi-prolog
+ (package
+ (name "swi-prolog")
+ (version "8.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://www.swi-prolog.org/download/stable/src/swipl-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1bnnwbdxnifb1qj42prsqhx8y0k2z596wgvh4bbnd0bw8w59rrff"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:parallel-build? #f
+ #:tests? #t)) ; FIXME:
+ ;#:configure-flags
+ ; (list "-DINSTALL_DOCUMENTATION=OFF"))) ; FIXME:
+ (native-inputs
+ `(("zlib" ,zlib)
+ ("gmp" ,gmp)
+ ("readline" ,readline)
+ ;("texlive" ,texlive)
+ ("texinfo" ,texinfo)
+ ("libunwind" ,libunwind)
+ ("libjpeg", libjpeg)
+ ("libxft" ,libxft)
+ ("fontconfig" ,fontconfig)
+ ("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("openssl" ,openssl)))
+ (home-page "https://www.swi-prolog.org/")
+ (synopsis "ISO/Edinburgh-style Prolog interpreter")
+ (description "SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog
+compiler with a rich set of built-in predicates. It offers a fast, robust and
+small environment which enables substantial applications to be developed with
+it.")
+ (license #f))) ; TODO:
--
2.24.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-01-04 3:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-14 3:49 [bug#38604] [WIP SWI-Prolog 0/3] Add SWI-Prolog Brett Gilio
2019-12-14 3:50 ` [bug#38604] [WIP SWI-Prolog 1/3] gnu: Rename module GPROLOG to PROLOG Brett Gilio
2019-12-14 3:50 ` [bug#38604] [WIP SWI-Prolog 2/3] gnu: Rename GPROLOG to PROLOG in local.mk Brett Gilio
2019-12-14 3:51 ` [bug#38604] [WIP SWI-Prolog 3/3] gnu: Add swi-prolog Brett Gilio
2020-01-04 3:47 ` bug#38604: " Brett Gilio
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.