mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
[New Package] SWI-Prolog (#5102)
* [readline]: Link against ncurses, build with multibyte support (Fixes #5099, #5101) * [pcre]: Build with --enable-unicode-properties (Fixes #5100) * [New Package] SWI-prolog (stable) v8.2.4 * Updated with binaries * Updated with binaries * Binaries... * fix compatibility * adjust depends Co-authored-by: satmandu <satadru@gmail.com>
This commit is contained in:
55
packages/swi_prolog.rb
Normal file
55
packages/swi_prolog.rb
Normal file
@@ -0,0 +1,55 @@
|
||||
require 'package'
|
||||
|
||||
class Swi_prolog < Package
|
||||
description 'SWI-Prolog offers a comprehensive free Prolog environment. Since its start in 1987, SWI-Prolog development has been driven by the needs of real world applications. SWI-Prolog is widely used in research and education as well as commercial applications. Join over a million users who have downloaded SWI-Prolog.'
|
||||
homepage 'https://www.swi-prolog.org/'
|
||||
@_ver = '8.2.4'
|
||||
version @_ver
|
||||
compatibility 'i686,x86_64'
|
||||
source_url "https://www.swi-prolog.org/download/stable/src/swipl-#{@_ver}.tar.gz"
|
||||
source_sha256 'f4bcc78437f9080ab089762e9e6afa7071df7f584c14999b92b9a90a4efbd7d8'
|
||||
|
||||
binary_url({
|
||||
i686: 'https://dl.bintray.com/chromebrew/chromebrew/swi_prolog-8.2.4-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/swi_prolog-8.2.4-chromeos-x86_64.tar.xz'
|
||||
})
|
||||
binary_sha256({
|
||||
i686: 'd8985a0a160baca9d6565d4177a43a840450ef4bb96eefae476a51ce27fec063',
|
||||
x86_64: 'cbb431b0bd28fa1c581071aeb1eeda79b70b4ec3c28c2d07b509054e810cb62b'
|
||||
})
|
||||
|
||||
case ARCH
|
||||
when 'i686', 'x86_64'
|
||||
depends_on 'libyaml'
|
||||
depends_on 'libarchive'
|
||||
depends_on 'libdb'
|
||||
depends_on 'jdk8'
|
||||
end
|
||||
|
||||
def self.build
|
||||
Dir.mkdir 'builddir'
|
||||
Dir.chdir 'builddir' do
|
||||
system "cmake -G Ninja \
|
||||
#{CREW_CMAKE_OPTIONS} \
|
||||
-DCURSES_CURSES_LIBRARY=#{CREW_LIB_PREFIX}/libncurses.so.6 \
|
||||
-DCURSES_INCLUDE_PATH=#{CREW_PREFIX}/include/ncurses \
|
||||
-DCMAKE_C_FLAGS=-flto=auto \
|
||||
-DCMAKE_CXX_FLAGS=-flto=auto \
|
||||
-DCMAKE_EXE_LINKER_FLAGS=-flto=auto \
|
||||
-DINSTALL_TESTS=ON \
|
||||
.."
|
||||
system '../scripts/pgo-compile.sh'
|
||||
system 'ninja'
|
||||
end
|
||||
end
|
||||
|
||||
# def self.check
|
||||
# Dir.chdir 'builddir' do
|
||||
# system 'ctest -j 2'
|
||||
# end
|
||||
# end
|
||||
|
||||
def self.install
|
||||
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user