Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
44888233
Commit
44888233
authored
Jan 27, 2021
by
Miroslav Kratochvil
🚴
Browse files
reorganize before registering the packages
parent
38b341aa
Changes
13
Hide whitespace changes
Inline
Side-by-side
ReadSBML_jll/build_tarballs.jl
0 → 100755
View file @
44888233
#!/usr/bin/env julia
using
BinaryBuilder
,
Pkg
julia_version
=
v
"1.5.3"
name
=
"ReadSBML"
version
=
v
"0.1.0"
sources
=
[
DirectorySource
(
"libreadsbml"
,
target
=
"libreadsbml"
),
]
script
=
raw
"""
cd
$
{WORKSPACE}/srcdir/libreadsbml
mkdir build
cd build
SBML_PC_DIR="
$
{
prefix
}
/
lib
/
pkgconfig
"
PKG_CONFIG_PATH=
$
{SBML_PC_DIR} cmake
\
-DCMAKE_INSTALL_PREFIX=
$
{prefix}
\
-DCMAKE_LIBRARY_PATH=
$
{prefix}/lib
\
-DCMAKE_TOOLCHAIN_FILE=
$
{CMAKE_TARGET_TOOLCHAIN}
\
-DJulia_PREFIX=
$
{prefix}
\
..
make -j
$
{nproc}
make install
# install licenses (note: using `cp` is not fine, but the build env lacks
# `install` version that could do this correctly)
LICENSEDIR=
$
{prefix}/share/licenses/ReadSBML
mkdir -p
$
LICENSEDIR
cp
$
{WORKSPACE}/srcdir/libreadsbml/LICENSE
$
LICENSEDIR/LICENSE
"""
platforms
=
expand_cxxstring_abis
(
supported_platforms
())
products
=
[
LibraryProduct
(
"libreadsbml"
,
:
libreadsbml
),
]
dependencies
=
[
Dependency
(
"libcxxwrap_julia_jll"
),
Dependency
(
"CompilerSupportLibraries_jll"
),
BuildDependency
(
PackageSpec
(
name
=
"libjulia_jll"
,
version
=
julia_version
)),
Dependency
(
"SBML_jll"
),
]
build_tarballs
(
ARGS
,
name
,
version
,
sources
,
script
,
platforms
,
products
,
dependencies
;
preferred_gcc_version
=
v
"10"
,
julia_compat
=
"
$
(julia_version.major).
$
(julia_version.minor)"
)
libsbml-cxxwrapj
l/.gitignore
→
ReadSBML_jll/libreadsbm
l/.gitignore
View file @
44888233
File moved
libsbml-cxxwrapj
l/CMakeLists.txt
→
ReadSBML_jll/libreadsbm
l/CMakeLists.txt
View file @
44888233
File moved
libsbml-cxxwrapj
l/LICENSE
→
ReadSBML_jll/libreadsbm
l/LICENSE
View file @
44888233
File moved
libsbml-cxxwrapj
l/README.md
→
ReadSBML_jll/libreadsbm
l/README.md
View file @
44888233
File moved
libsbml-cxxwrapj
l/src/cxxwrap.cpp
→
ReadSBML_jll/libreadsbm
l/src/cxxwrap.cpp
View file @
44888233
File moved
libsbml-cxxwrapj
l/src/readsbml.cpp
→
ReadSBML_jll/libreadsbm
l/src/readsbml.cpp
View file @
44888233
File moved
libsbml-cxxwrapj
l/src/readsbml.hpp
→
ReadSBML_jll/libreadsbm
l/src/readsbml.hpp
View file @
44888233
File moved
libsbml-cxxwrapj
l/src/style.sh
→
ReadSBML_jll/libreadsbm
l/src/style.sh
View file @
44888233
File moved
libsbml-cxxwrapj
l/src/versions.cpp
→
ReadSBML_jll/libreadsbm
l/src/versions.cpp
View file @
44888233
File moved
libsbml-cxxwrapj
l/src/versions.hpp
→
ReadSBML_jll/libreadsbm
l/src/versions.hpp
View file @
44888233
File moved
build_tarballs.jl
→
SBML_jll/
build_tarballs.jl
View file @
44888233
...
...
@@ -9,7 +9,6 @@ sources = [
ArchiveSource
(
"https://github.com/sbmlteam/libsbml/archive/v5.19.0.tar.gz"
,
"127a44cc8352f998943bb0b91aaf4961604662541b701c993e0efd9bece5dfa8"
),
DirectorySource
(
"libsbml-cxxwrapjl"
,
target
=
"wrapper"
),
]
script
=
raw
"""
...
...
@@ -37,49 +36,20 @@ cmake \
make -j
$
{nproc}
make install
# now the wrapper
cd
$
{WORKSPACE}/srcdir/wrapper
mkdir build
cd build
SBML_PC_DIR="
$
{
prefix
}
/
lib
/
pkgconfig
"
PKG_CONFIG_PATH=
$
SBML_PC_DIR pkg-config libsbml --cflags --libs
PKG_CONFIG_PATH=
$
{SBML_PC_DIR} cmake
\
-DCMAKE_INSTALL_PREFIX=
$
{prefix}
\
-DCMAKE_LIBRARY_PATH=
$
{prefix}/lib
\
-DCMAKE_TOOLCHAIN_FILE=
$
{CMAKE_TARGET_TOOLCHAIN}
\
-DJulia_PREFIX=
$
{prefix}
\
..
make -j
$
{nproc}
make install
# install licenses (note: using `cp` is not fine, but the build env lacks
# `install` version that could do this correctly)
LICENSEDIR=
$
{prefix}/share/licenses/SBML
mkdir -p
$
LICENSEDIR
cp
$
{WORKSPACE}/srcdir/wrapper/LICENSE
$
LICENSEDIR/LICENSE-wrapper
cp
$
{WORKSPACE}/srcdir/
$
{SBMLNAME}/LICENSE.txt
$
LICENSEDIR/LICENSE-libSBML
cp
$
{WORKSPACE}/srcdir/
$
{SBMLNAME}/COPYING.txt
$
LICENSEDIR/COPYING-libSBML
cp
$
{WORKSPACE}/srcdir/
$
{SBMLNAME}/LICENSE.txt
$
LICENSEDIR/LICENSE
cp
$
{WORKSPACE}/srcdir/
$
{SBMLNAME}/COPYING.txt
$
LICENSEDIR/COPYING
"""
platforms
=
supported_platforms
()
#platforms = [ Linux(:x86_64, libc=:glibc) ]
platforms
=
expand_cxxstring_abis
(
platforms
)
platforms
=
expand_cxxstring_abis
(
supported_platforms
())
products
=
[
LibraryProduct
(
"libsbml
-cxxwrapjl
"
,
:
libsbml
),
LibraryProduct
(
"libsbml"
,
:
libsbml
),
]
dependencies
=
[
Dependency
(
"libcxxwrap_julia_jll"
),
Dependency
(
"CompilerSupportLibraries_jll"
),
BuildDependency
(
PackageSpec
(
name
=
"libjulia_jll"
,
version
=
julia_version
)),
Dependency
(
"XML2_jll"
),
Dependency
(
"Zlib_jll"
),
]
...
...
src/SBML.jl
View file @
44888233
module
SBML
using
CxxWrap
using
SBML_jll
using
Read
SBML_jll
function
__init__
()
@initcxx
end
@wrapmodule
(
libsbml
)
@wrapmodule
(
lib
read
sbml
)
include
(
"readsbml.jl"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment