Skip to content

Commit 075ccae

Browse files
Krastanovgiordano
andauthored
Wizard recipe: very_nauty-v1.1.1 (#10582)
* New Recipe: nauty_graph v1.1.1 * Update N/nauty_graph/build_tarballs.jl Co-authored-by: Mosè Giordano <[email protected]> * rename to avoid clash with already existing `nauty` --------- Co-authored-by: Mosè Giordano <[email protected]>
1 parent 8d87016 commit 075ccae

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

V/very_nauty/build_tarballs.jl

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder, Pkg
4+
5+
name = "very_nauty"
6+
version = v"1.1.1"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
GitSource("https://github.com/JuliaGraphs/very_nauty.git", "b2c7765f2820ea5385846e4123323a1ba6e4f67e")
11+
]
12+
13+
# Bash recipe for building across all platforms
14+
script = raw"""
15+
cd $WORKSPACE/srcdir/very_nauty/
16+
mkdir -p ${libdir}
17+
cc -shared -fPIC -Wall -O3 -o "${libdir}/libvn_graph.${dlext}" vn_graph.c
18+
install -Dvm 644 vn_graph.h -t ${includedir}
19+
"""
20+
21+
# These are the platforms we will build for by default, unless further
22+
# platforms are passed in on the command line
23+
platforms = supported_platforms()
24+
25+
# The products that we will ensure are always built
26+
products = [
27+
LibraryProduct("libvn_graph", :libvn_graph)
28+
]
29+
30+
# Dependencies that must be installed before this package can be built
31+
dependencies = Dependency[
32+
]
33+
34+
# Build the tarballs, and possibly a `build.jl` as well.
35+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")

0 commit comments

Comments
 (0)