From ed4bfc0f680ede9f0c3e2b998995956ab3826791 Mon Sep 17 00:00:00 2001 From: Ed Robbins Date: Tue, 7 Jan 2014 15:52:48 +0000 Subject: [PATCH] Update swi_prolog recipe for PM. (and small fix for gmp) --- dev-lang/swi_prolog/swi_prolog-6.2.0.recipe | 74 ++++++++++++++++----- dev-libs/gmp/gmp-5.1.1.recipe | 2 +- 2 files changed, 59 insertions(+), 17 deletions(-) diff --git a/dev-lang/swi_prolog/swi_prolog-6.2.0.recipe b/dev-lang/swi_prolog/swi_prolog-6.2.0.recipe index d88c003b4..057f43d91 100644 --- a/dev-lang/swi_prolog/swi_prolog-6.2.0.recipe +++ b/dev-lang/swi_prolog/swi_prolog-6.2.0.recipe @@ -1,32 +1,74 @@ -DESCRIPTION="SWI Prolog. Stable and free standard Prolog implementation" +SUMMARY="SWI Prolog. Stable and free standard Prolog implementation" +DESCRIPTION=" +SWI-Prolog is an open source implementation of the programming language Prolog, \ +commonly used for teaching and semantic web applications. It has a rich set of \ +features, libraries for constraint logic programming, multithreading, unit \ +testing, GUI, interfacing to Java, ODBC and others, literate programming, a web \ +server, SGML, RDF, RDFS, developer tools (including an IDE with a GUI debugger \ +and GUI profiler), and extensive documentation. +" HOMEPAGE="http://www.swi-prolog.org/" SRC_URI="http://www.swi-prolog.org/download/stable/src/pl-6.2.0.tar.gz" CHECKSUM_MD5="969ed2e00b7afc1537fbf19d667333c5" +LICENSE=" + GNU LGPL v2.1 + SWI-Prolog + " +COPYRIGHT="1985-2012, University of Amsterdam, VU University Amsterdam" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/gmp >= 5.0.5 - sys-libs/readline >= 6.2" +ARCHITECTURES="x86_gcc2" +SECONDARY_ARCHITECTURES="x86" +SOURCE_DIR="pl-6.2.0" +PATCHES="swi_prolog-6.2.0.patch" + +PROVIDES=" + swi_prolog$secondaryArchSuffix = $portVersion + cmd:swipl$secondaryArchSuffix + cmd:swipl_rc$secondaryArchSuffix + cmd:swipl_ld$secondaryArchSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libgmp$secondaryArchSuffix >= 10 + lib:libreadline$secondaryArchSuffix >= 6 + lib:libncurses$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libreadline$secondaryArchSuffix >= 6 + devel:libgmp$secondaryArchSuffix >= 10 + devel:libncurses$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:autoreconf + cmd:make + " + BUILD() { - cd pl-6.2.0/src - libtoolize -fci - autoreconf - LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/common/include ./configure --prefix=$(finddir B_COMMON_DIRECTORY) - make + cd src + libtoolize -fci + autoreconf + LDFLAGS="-L/system/lib -L/system/develop/lib" CFLAGS="-I/system/develop/include -I/system/include" ./configure $configureDirArgs + #runConfigure ./configure + make } INSTALL() { - cd pl-6.2.0/src - make install + cd src + make install } TEST() { - cd pl-6.2.0/src - make check + cd src + make check } -LICENSE="GNU LGPL v2.1 - SWI-Prolog" -COPYRIGHT="1985-2012, University of Amsterdam, VU University Amsterdam" + diff --git a/dev-libs/gmp/gmp-5.1.1.recipe b/dev-libs/gmp/gmp-5.1.1.recipe index 5301d1a1e..9318d8286 100644 --- a/dev-libs/gmp/gmp-5.1.1.recipe +++ b/dev-libs/gmp/gmp-5.1.1.recipe @@ -7,7 +7,7 @@ except the ones implied by the available memory in the machine GMP runs on \ (operand dimension limit is 2^(32)-1 bits on 32-bit machines and 2^37 bits on \ 64-bit machines). GMP has a rich set of functions, and the functions have a \ regular interface. The basic interface is for C but wrappers exist for other \ -languages including Ada, C++, C#, OCaml, Perl, PHP, and Python. \ +languages including Ada, C++, C#, OCaml, Perl, PHP, and Python. " HOMEPAGE="http://gmplib.org/" SRC_URI="ftp://ftp.gmplib.org/pub/gmp-5.1.1/gmp-5.1.1.tar.xz"