From 777878afda87bc1a6177d5d64f7b0ec6b07c6ee5 Mon Sep 17 00:00:00 2001 From: aviks Date: Fri, 23 Sep 2022 20:55:21 -0400 Subject: [PATCH 1/3] New recipe: Xapian --- X/xapian/build_tarballs.jl | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 X/xapian/build_tarballs.jl diff --git a/X/xapian/build_tarballs.jl b/X/xapian/build_tarballs.jl new file mode 100644 index 00000000000..cec215ddc13 --- /dev/null +++ b/X/xapian/build_tarballs.jl @@ -0,0 +1,51 @@ +# Note that this script can accept some limited command-line arguments, run +# `julia build_tarballs.jl --help` to see a usage message. +using BinaryBuilder, Pkg + +name = "xapian" +version = v"1.4.20" + +# Collection of sources required to complete build +sources = [ + ArchiveSource("https://oligarchy.co.uk/xapian/$(version)/xapian-core-$(version).tar.xz", "ce2be5eff72075c8106c0340e70b1093dbcebe2ab42dc1c1be08dd3ad419442d") +] + +# Bash recipe for building across all platforms +script = raw""" +cd $WORKSPACE/srcdir +cd xapian-core-* +./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} +make -j${nproc} +make install +""" + +# These are the platforms we will build for by default, unless further +# platforms are passed in on the command line +platforms = [ + Platform("i686", "linux"; libc = "glibc"), + Platform("x86_64", "linux"; libc = "glibc"), + Platform("aarch64", "linux"; libc = "glibc"), + Platform("armv6l", "linux"; call_abi = "eabihf", libc = "glibc"), + Platform("armv7l", "linux"; call_abi = "eabihf", libc = "glibc"), + Platform("powerpc64le", "linux"; libc = "glibc"), + Platform("x86_64", "macos"; ), + Platform("aarch64", "macos"; ), + Platform("x86_64", "freebsd"; ) +] + +platforms = expand_cxxstring_abis(platforms) + +# The products that we will ensure are always built +products = [ + LibraryProduct("libxapian", :libxapian) +] + +# Dependencies that must be installed before this package can be built +dependencies = [ + Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a")) + Dependency(PackageSpec(name="Libuuid_jll", uuid="38a345b3-de98-5d2b-a5d3-14cd9215e700")) + Dependency(PackageSpec(name="ICU_jll", uuid="a51ab1cf-af8e-5615-a023-bc2c838bba6b")) +] + +# Build the tarballs, and possibly a `build.jl` as well. +build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") From f5ff22b215c8e5b7e6a432635fc6a329d05b6d19 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Sat, 24 Sep 2022 02:14:32 +0100 Subject: [PATCH 2/3] Add compat for ICU --- X/xapian/build_tarballs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X/xapian/build_tarballs.jl b/X/xapian/build_tarballs.jl index cec215ddc13..3b9754bf648 100644 --- a/X/xapian/build_tarballs.jl +++ b/X/xapian/build_tarballs.jl @@ -44,7 +44,7 @@ products = [ dependencies = [ Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a")) Dependency(PackageSpec(name="Libuuid_jll", uuid="38a345b3-de98-5d2b-a5d3-14cd9215e700")) - Dependency(PackageSpec(name="ICU_jll", uuid="a51ab1cf-af8e-5615-a023-bc2c838bba6b")) + Dependency(PackageSpec(name="ICU_jll", uuid="a51ab1cf-af8e-5615-a023-bc2c838bba6b"); compat="69.1") ] # Build the tarballs, and possibly a `build.jl` as well. From a78fb4151d4a999c741df1d8e9173584e113df33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 24 Sep 2022 13:31:42 +0100 Subject: [PATCH 3/3] Update X/xapian/build_tarballs.jl --- X/xapian/build_tarballs.jl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/X/xapian/build_tarballs.jl b/X/xapian/build_tarballs.jl index 3b9754bf648..73d0c8d6cc2 100644 --- a/X/xapian/build_tarballs.jl +++ b/X/xapian/build_tarballs.jl @@ -21,17 +21,7 @@ make install # These are the platforms we will build for by default, unless further # platforms are passed in on the command line -platforms = [ - Platform("i686", "linux"; libc = "glibc"), - Platform("x86_64", "linux"; libc = "glibc"), - Platform("aarch64", "linux"; libc = "glibc"), - Platform("armv6l", "linux"; call_abi = "eabihf", libc = "glibc"), - Platform("armv7l", "linux"; call_abi = "eabihf", libc = "glibc"), - Platform("powerpc64le", "linux"; libc = "glibc"), - Platform("x86_64", "macos"; ), - Platform("aarch64", "macos"; ), - Platform("x86_64", "freebsd"; ) -] +platforms = supported_platforms(; exclude=p -> Sys.iswindows(p) || libc(p) == "musl") platforms = expand_cxxstring_abis(platforms)