From 530520db2a05b15699a5dd4e3c533688c98036c3 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 7 Jun 2016 15:48:21 +0200 Subject: [PATCH] julia: Add version 0.4.5 Run the command below to create an initial bee file. ``` > bee init https://github.com/JuliaLang/julia/releases/download/v0.4.5/julia-0.4.5.tar.gz creating julia-0.4.5-0.bee from template '/etc/default/bee/templates/fallback' ``` Adapt it, to download and build the full archive, which includes several libraries, most of them not yet packaged in Mariux. For example, the Julia archive ships FFTW 3.3.4, while there is only FFTW 3.3.3 in Mariux. Note, that the architecture has to be explicitly set by passing `MARCH=x86-64` when calling `make`. Otherwise, Julia optimizes its image to the native architecture of the build machine, so a binary built on the server *shutupandtakemymoney* does not run on the machine *keineahnung*. [1] ``` > julia Target architecture mismatch. Please delete or regenerate sys.{so,dll,dylib}. ``` For whatever reason, `MARCH=x86-64` also needs to be passed to `make install`. Tested on *keineahnung*. ``` > sudo bee install julia installing /src/mariux/beeroot/packages/julia-0.4.5-0.x86_64.bee.tar.bz2 .. gtk-update-icon-cache: Cache file created successfully. > julia --version julia version 0.4.5 > julia _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.4.5 (2016-03-18 00:58 UTC) _/ |\__'_|_|_|\__'_| | |__/ | x86_64-unknown-linux-gnu julia> versioninfo(true) Julia Version 0.4.5 Commit 2ac304d (2016-03-18 00:58 UTC) Platform Info: System: Linux (x86_64-unknown-linux-gnu) CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz WORD_SIZE: 64 uname: Linux 4.4.11.mx64.88 #1 SMP Sat May 21 18:23:51 CEST 2016 x86_64 unknown Memory: 7.414115905761719 GB (85.7734375 MB free) Uptime: 705950.0 sec Load Avg: 0.216796875 2.275390625 3.595703125 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz: speed user nice sys idle irq BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.3 [...] ``` [1] https://github.com/JuliaLang/julia/blob/master/DISTRIBUTING.md#target-architectures --- julia-0.4.5-0.bee | 83 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100755 julia-0.4.5-0.bee diff --git a/julia-0.4.5-0.bee b/julia-0.4.5-0.bee new file mode 100755 index 000000000..81b14944a --- /dev/null +++ b/julia-0.4.5-0.bee @@ -0,0 +1,83 @@ +#!/usr/bin/env beesh + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://github.com/JuliaLang/julia/releases/download/v${PKGVERSION}/julia-${PKGVERSION}-full.tar.gz" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be build +## outside the source directory and need to be build inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +mee_build() { + bee_build MARCH=x86-64 +} + +mee_install() { + bee_install MARCH=x86-64 prefix="${PREFIX}" sysconfdir="${SYSCONFDIR}" +} +# by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[${PKGVERSION}] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +##