diff --git a/Programming/erlang/.gitkeep b/Programming/erlang/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Programming/erlang/README.md b/Programming/erlang/README.md new file mode 100644 index 0000000..05913e9 --- /dev/null +++ b/Programming/erlang/README.md @@ -0,0 +1,11 @@ +# Erlang module + +Build a Pmodule for Erlang. This module depends on wxWidgets and OpenSSL. + +***Please note:*** + +After running the build script, the dependency files `$ERLANG_PREFIX/.dependencies` must be patched by hand. For the time being dependencies like `Libraries:wxWidgets/3.0.5` are not supported in the variant files but in the dependency file of the module. The dependency file must look like: +``` +openssl/1.1.1m +Libraries:wxWidgets/3.0.5 +``` diff --git a/Programming/erlang/build b/Programming/erlang/build new file mode 100755 index 0000000..7fc119c --- /dev/null +++ b/Programming/erlang/build @@ -0,0 +1,19 @@ +#!/usr/bin/env modbuild + +pbuild::add_to_group 'Programming' +pbuild::compile_in_sourcetree + +pbuild::set_download_url \ + "https://github.com/$P/otp/releases/download/OTP-${V_PKG}/otp_src_${V_PKG}.tar.gz" +pbuild::set_sha256sum 'otp-24.2.1.tar.gz:380a77aef34ad449bf8370a380b7901364b9be23e3d25068fc5c43258bcbec11' +#pbuild::install_docfiles 'Copyright' 'NEWS' 'README' + +pbuild::pre_configure() { + pbuild::add_configure_args "--with-ssl=${OPENSSL_DIR}" +} + +# Local Variables: +# mode: sh +# sh-basic-offset: 8 +# tab-width: 8 +# End: diff --git a/Programming/erlang/files/variants.yaml b/Programming/erlang/files/variants.yaml new file mode 100644 index 0000000..9dd35ee --- /dev/null +++ b/Programming/erlang/files/variants.yaml @@ -0,0 +1,4 @@ +overlay: base +relstage: stable +erlang/24.2.1: + - dependencies: openssl/1.1.1m wxWidgets/3.0.5 diff --git a/Programming/erlang/modulefile b/Programming/erlang/modulefile new file mode 100644 index 0000000..15802fe --- /dev/null +++ b/Programming/erlang/modulefile @@ -0,0 +1,15 @@ +#%Pmodule + +module-whatis "Practical functional programming for a parallel worldinterfaces" +module-url "https://www.erlang.org" +module-license "Apache 2.0" +module-maintainer "Achim Gsell " + +module-help " +Erlang is a programming language used to build massively scalable soft +real-time systems with requirements on high availability. Some of its +uses are in telecoms, banking, e-commerce, computer telephony and +instant messaging. Erlang's runtime system has built-in support for +concurrency, distribution and fault tolerance. +" +