I would suggest a) rename to swi-prolog b) add a USE variable +X to also build the XPCE part Shouldn't be hard, but I don't know how to make an ebuild ... :( Reproducible: Always Steps to Reproduce: 1. 2. 3.
Not sure why this was assigned to me, or why I'm in metadata.xml for swi-prolog-lite either...
reassigning to prolog herd. Rene: you at least can post more details on required modifications ;). This would save us some "research". Is it just another option that you pass to ./configure or is there more? George
I've downloaded pl-5.2.11.tar.gz By looking inside the extracted archive, there are two files: pl-lite.spec and pl.spec. By reading both files, it becomes clear, that pl.spec include XPCE (GUI) and sgml and sgml/RDF .... What is unclear to me is how to get it to compile these extra features! Looking in pl-5.2.11/packages/README has the not so obvious solution: --cut-- The package directory contains a subdirectory for each SWI-Prolog package. Without packages, SWI-Prolog is called SWI-Prolog/lite. Building -------- To build these packages, first build and install SWI-Prolog itself This creates Makefile, copying some of the configuration settings from the SWI-Prolog configuration options. Now edit the PKG variable in Makefile to reflect the packages and options preferred. If you install XPCE (strongly recommended for better online help, graphical tracer, integrated editor and powerful GUI toolkit), ..... --cut-- from their, on there are the required libraries (nice dependencies) and how to get it done :( These are the available packages: xpce clib cpp odbc table sgml sgml/RDF semweb http And believe it or not, I need: xpce sgml sgml/RDF semweb and odbc (if it works stable enough) ....
I think I got it: From the Makefile (top level): ---start--- all: lite install: install-lite .... world: lite .pkg-config packages ----end---- So it just should be make world and not make all it would be cool to have the following USE flags: xpce clib cpp odbc table sgml sgml_rdf semweb http And the USE flags must only be used in packages/Makefile :) (I think) And sgml_rdf depends on sgml. And semweb on smgl and sgml_rdf.
Is there any chance to get an ebuild that will support the GUI (XPCE)? And there is a newer verions available: 5.2.13 And there is a small compile/install howto from the author: http://www.swi-prolog.org/installunix.html I just would like to see the GUI and the additional packages working :) BTW I just encountered a bug: (by running plld -h) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status gcc returned code 256 *** plld exit status 1
I've built today, pl-5.2.13 on my system, from the sources. Here is what I did: --start-- cd src ./configure --enabble-mt make make check make install cd .. cd packages // now which package(s) // package clib cd clib ./configure --enable-mt make make install cd .. //package cpp cd cpp ./configure make (nothing todo?) make install cd .. // package db cd db ./configure --enable-mt make make install cd .. // package http cd http ./configure make (nothing todo?) make install cd .. // package jasmine -> has compile error // package ltx2htm -> doesn't find perl on my system // package mp cd mp ./configure make make install cd .. // package odbc cd odbc ./configure --enable-mt make make install cd .. // package semweb cd semweb ./configure --enable-mt make make install cd .. // package sgml cd sgml ./configure --enable-mt make make check make install cd .. // package table cd table ./configure --enable-mt make make install cd .. // package xpce (the GUI) cd xpce ./configure --enable-mt --with-x (I was to lazy to search the include/lib dirs for xpm and jpeg) make make install cd .. ---end--- BTW: Compiling with: --enable-cpp doesn't work and I filled a bug report: http://gollem.swi.psy.uva.nl/bugzilla/show_bug.cgi?id=131 I think, it would be cool to have an ebuild and the packages could be installed via the USE flags! Could somebody please create the ebuild ?
I'd be please if someone would do so too. (I myself will not.)
Any ebuild builders out there?
looks like the package/configure script doesnt handle --without-PKG arguments properly ... need to export PKGS ... however, 5.5.30 does seem to have this little issue fixed ...
should be fixed with swi-prolog-lite-5.5.36+