Skip to content

Commit

Permalink
[Mineos] Version bump (JuliaPackaging#4402)
Browse files Browse the repository at this point in the history
* [Mineos] Version bump

* Seems to resolve autoconf error

* Drop unused arg

* Skip docs

* Retry doc disable

* Add Autogen.sh

* Bump version

* Add comment

* Switch to 1.0.2 commit

* Patch docs

* Fix path

* Fix clang warning

* Update M/Mineos/build_tarballs.jl

Co-authored-by: Mosè Giordano <[email protected]>

* Thanks Mose!

* Swap back to fork

* Delete drop_docs.diff

* Update build_tarballs.jl

* Try more compact fortran flag

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
2 people authored and simeonschaub committed Feb 23, 2022
1 parent f681a27 commit 9d9bc32
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions M/Mineos/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,31 @@
using BinaryBuilder

name = "Mineos"
version = v"1.0"
version = v"1.0.1" # Artificial version number for bumping Julia compat (and expanding platforms)

# Collection of sources required to build Mineos
sources = [
"https://github.com/anowacki/mineos.git" =>
"e2558b486d7656ef112608a8776643da66dc87cf",
GitSource("https://github.com/anowacki/mineos.git", "e2558b486d7656ef112608a8776643da66dc87cf"),
]

# Bash recipe for building across all platforms
script = raw"""
cd ${WORKSPACE}/srcdir/mineos
# Fix clang error 'error: non-void function * should return a value [-Wreturn-type]'
if [[ "${target}" == *-freebsd* ]] || [[ "${target}" == *-apple-* ]]; then
export CFLAGS="-Wno-return-type"
fi
# Fix issue due to GCC 10+. Only necessary on aarch64-apple as others use earlier GCC
# Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
if [[ "${target}" == aarch64-apple-* ]]; then
export FFLAGS="-std=legacy"
fi
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --disable-doc
make
make install
"""

Expand All @@ -40,5 +52,5 @@ dependencies = [
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat = "1.6")

0 comments on commit 9d9bc32

Please sign in to comment.