summaryrefslogtreecommitdiff
path: root/experimental
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-02-26 23:08:12 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-02-26 23:08:12 +0000
commit5ba732fc812b6ccc5a40d43a1a4fd9c769bc73e0 (patch)
treecefe5728cafd5788e6ade29ea0413f7eddd5fb48 /experimental
parent9c9e18e9c426160407302df709bcf399446ae4ca (diff)
downloadpackages-5ba732fc812b6ccc5a40d43a1a4fd9c769bc73e0.tar.gz
packages-5ba732fc812b6ccc5a40d43a1a4fd9c769bc73e0.tar.bz2
packages-5ba732fc812b6ccc5a40d43a1a4fd9c769bc73e0.tar.xz
packages-5ba732fc812b6ccc5a40d43a1a4fd9c769bc73e0.zip
experimental/erlang: new package (does not pass tests)
Diffstat (limited to 'experimental')
-rw-r--r--experimental/erlang/APKBUILD57
-rw-r--r--experimental/erlang/fix-wx-linking.patch11
2 files changed, 68 insertions, 0 deletions
diff --git a/experimental/erlang/APKBUILD b/experimental/erlang/APKBUILD
new file mode 100644
index 000000000..82832e96e
--- /dev/null
+++ b/experimental/erlang/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=erlang
+pkgver=21.2
+pkgrel=0
+pkgdesc="Soft real-time system programming language"
+url="https://www.erlang.org/"
+arch="all"
+license="Apache-2.0"
+depends=""
+makedepends="libxml2-utils libxslt-dev m4 ncurses-dev openssl-dev perl
+ unixodbc-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://erlang.org/download/otp_src_$pkgver.tar.gz
+ fix-wx-linking.patch
+ "
+builddir="$srcdir/otp_src_$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-shared-zlib \
+ --enable-ssl=dynamic-ssl-lib \
+ --enable-threads
+ make
+}
+
+check() {
+ local _header
+
+ cd "$builddir"
+ export ERL_TOP=$builddir
+
+ make release_tests
+
+ for _header in erl_fixed_size_int_types.h \
+ ${CHOST}/erl_int_sizes_config.h \
+ erl_memory_trace_parser.h; do
+ cp erts/include/$_header erts/emulator/beam/
+ done
+ cd release/tests/test_server
+ $ERL_TOP/bin/erl -s ts install -s ts smoke_test batch -s init stop
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="5707ef0d49a9af12cd9d93c3e4fd200092773645838bbe0163782d0fa40562d2b48bdb07f0e650311bfec896ed9e3c9621b4d0ba114c578d7ca3209c2a96ac24 otp_src_21.2.tar.gz
+5f1b05d8be71d5e3d7e8c5ad019329af8f68174251b5b6e0a9ee9cb3da51a10983b8696e23b3954c19de5d54783ec16f38c80c74724341dbafb22fcac83c77d4 fix-wx-linking.patch"
diff --git a/experimental/erlang/fix-wx-linking.patch b/experimental/erlang/fix-wx-linking.patch
new file mode 100644
index 000000000..eb5649164
--- /dev/null
+++ b/experimental/erlang/fix-wx-linking.patch
@@ -0,0 +1,11 @@
+--- otp_src_21.2/lib/wx/configure.old 2018-12-10 20:11:00.000000000 +0000
++++ otp_src_21.2/lib/wx/configure 2019-02-24 22:16:37.340000000 +0000
+@@ -5765,7 +5765,7 @@
+ // it isn't in too old wxWidgets versions
+ wxString test = wxString::FromUTF8((const char *)"foo");
+ wxStyledTextCtrl * foo = new wxStyledTextCtrl();
+- wxGLCanvas * bar = new wxGLCanvas((wxWindow *) NULL, -1,
++ wxGLCanvas * bar = new wxGLCanvas((wxWindow *) NULL, -1, NULL,
+ wxDefaultPosition,wxDefaultSize,0);
+ return true;
+ };