aboutsummaryrefslogtreecommitdiff
path: root/unmaintained
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-05-30 16:21:46 +0200
committerJakub Jirutka <jakub@jirutka.cz>2020-05-30 16:21:46 +0200
commit2f900794a80e749efc2088f4020a9d77c30abea0 (patch)
treeac79b70c0943db1a6f88069b94d7da7011d096b2 /unmaintained
parent785648eff674d8f3b326e7ebdb10b5d5c445ae95 (diff)
downloadalpine_aports-2f900794a80e749efc2088f4020a9d77c30abea0.tar.bz2
alpine_aports-2f900794a80e749efc2088f4020a9d77c30abea0.tar.xz
alpine_aports-2f900794a80e749efc2088f4020a9d77c30abea0.zip
unmaintained/ocaml-*: move all ocaml aports I used to maintain from testing
Most of them is broken after ocaml upgrade, the rest depend on the broken ones, so just move them all out.
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/ocaml-biniou/APKBUILD54
-rw-r--r--unmaintained/ocaml-camomile/APKBUILD78
-rw-r--r--unmaintained/ocaml-cmdliner/APKBUILD40
-rw-r--r--unmaintained/ocaml-cppo/APKBUILD63
-rw-r--r--unmaintained/ocaml-csv/APKBUILD63
-rw-r--r--unmaintained/ocaml-dtoa/APKBUILD55
-rw-r--r--unmaintained/ocaml-dtoa/bignum_align-noinline.patch26
-rw-r--r--unmaintained/ocaml-easy-format/APKBUILD51
-rw-r--r--unmaintained/ocaml-gen/APKBUILD53
-rw-r--r--unmaintained/ocaml-labltk/APKBUILD59
-rw-r--r--unmaintained/ocaml-lambda-term/APKBUILD68
-rw-r--r--unmaintained/ocaml-lwt/APKBUILD111
-rw-r--r--unmaintained/ocaml-lwt/result_lseek_noinline.patch20
-rw-r--r--unmaintained/ocaml-lwt_log/APKBUILD55
-rw-r--r--unmaintained/ocaml-markup/APKBUILD67
-rw-r--r--unmaintained/ocaml-menhir/APKBUILD41
-rw-r--r--unmaintained/ocaml-merlin-extend/APKBUILD42
-rw-r--r--unmaintained/ocaml-ounit/APKBUILD51
-rw-r--r--unmaintained/ocaml-ppx_derivers/APKBUILD50
-rw-r--r--unmaintained/ocaml-ppx_deriving/APKBUILD86
-rw-r--r--unmaintained/ocaml-ppx_gen_rec/APKBUILD51
-rw-r--r--unmaintained/ocaml-ppx_tools/APKBUILD47
-rw-r--r--unmaintained/ocaml-ppx_tools_versioned/APKBUILD58
-rw-r--r--unmaintained/ocaml-re/APKBUILD64
-rw-r--r--unmaintained/ocaml-react/APKBUILD57
-rw-r--r--unmaintained/ocaml-reactivedata/APKBUILD47
-rw-r--r--unmaintained/ocaml-result/APKBUILD47
-rw-r--r--unmaintained/ocaml-sedlex/APKBUILD63
-rw-r--r--unmaintained/ocaml-sedlex/dont-build-doc.patch11
-rw-r--r--unmaintained/ocaml-tyxml/APKBUILD77
-rw-r--r--unmaintained/ocaml-uchar/APKBUILD44
-rw-r--r--unmaintained/ocaml-uutf/APKBUILD57
-rw-r--r--unmaintained/ocaml-wtf8/APKBUILD50
-rw-r--r--unmaintained/ocaml-yojson/APKBUILD53
-rw-r--r--unmaintained/ocaml-zed/APKBUILD54
35 files changed, 1913 insertions, 0 deletions
diff --git a/unmaintained/ocaml-biniou/APKBUILD b/unmaintained/ocaml-biniou/APKBUILD
new file mode 100644
index 0000000000..737ad91e31
--- /dev/null
+++ b/unmaintained/ocaml-biniou/APKBUILD
@@ -0,0 +1,54 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-biniou
4_pkgname=biniou
5pkgver=1.2.1
6pkgrel=1
7pkgdesc="Extensible binary data format, like JSON but faster"
8url="https://github.com/ocaml-community/biniou"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="BSD-3-Clause"
11depends="ocaml-runtime ocaml-easy-format"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13makedepends="dune ocaml ocaml-easy-format-dev ocaml-findlib opam"
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz"
16source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-community/biniou/archive/$pkgver.tar.gz"
17builddir="$srcdir/$_pkgname-$pkgver"
18
19build() {
20 jbuilder build @install
21}
22
23check() {
24 jbuilder runtest
25}
26
27package() {
28 mkdir -p "$pkgdir"/usr/lib/ocaml
29 jbuilder install \
30 --destdir="$pkgdir" \
31 --prefix=/usr \
32 --libdir=/usr/lib/ocaml
33
34 # There's just a readme and changelog.
35 rm -Rf "$pkgdir"/usr/doc
36
37 # Remove annotation files and sources.
38 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
39 rm -f *.cmt* *.ml
40}
41
42dev() {
43 local sitelib="usr/lib/ocaml/$_pkgname"
44 default_dev
45
46 mkdir -p "$subpkgdir"/$sitelib
47
48 mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
49
50 cd "$pkgdir"/$sitelib
51 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
52}
53
54sha512sums="f0166666559f3a767fdc6987bad45ec4a772b70b8880b6d769ef644c9bfd46962f089c7b5dfff368413015e765daf4bacffe253bdb3478d9a4d30a15f0d29589 ocaml-biniou-1.2.1.tar.gz"
diff --git a/unmaintained/ocaml-camomile/APKBUILD b/unmaintained/ocaml-camomile/APKBUILD
new file mode 100644
index 0000000000..6184eda88f
--- /dev/null
+++ b/unmaintained/ocaml-camomile/APKBUILD
@@ -0,0 +1,78 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-camomile
4_pkgname=camomile
5pkgver=1.0.1
6pkgrel=1
7pkgdesc="A Unicode library for OCaml"
8url="https://github.com/yoriyuki/Camomile"
9# x86, armhf, s390x: limited by ocaml aport
10arch="all !x86 !armhf !armv7 !s390x !mips !mips64"
11license="LGPL-2.0-or-later"
12depends="$pkgname-data=$pkgver-r$pkgrel ocaml-runtime"
13makedepends="dune ocaml ocaml-compiler-libs ocaml-cppo ocaml-findlib opam"
14subpackages="$pkgname-dev $pkgname-data::noarch"
15source="$pkgname-$pkgver.tar.gz::https://github.com/yoriyuki/$_pkgname/archive/$pkgver.tar.gz"
16builddir="$srcdir/Camomile-$pkgver"
17
18build() {
19 cd "$builddir"
20
21 # Workaround for https://github.com/yoriyuki/Camomile/issues/39.
22 if [ "$CARCH" = ppc64le ]; then
23 ulimit -Hs unlimited
24 ulimit -Ss 65536
25 fi
26
27 jbuilder build @install
28}
29
30check() {
31 cd "$builddir"
32 jbuilder runtest
33}
34
35package() {
36 cd "$builddir"
37
38 mkdir -p "$pkgdir"/usr/lib/ocaml
39 jbuilder install \
40 --destdir="$pkgdir/usr" \
41 --libdir="$pkgdir/usr/lib/ocaml"
42
43 # There's just a readme and changelog.
44 rm -Rf "$pkgdir"/usr/doc
45
46 # Remove annotation files and sources.
47 find "$pkgdir"/usr/lib/ocaml/$_pkgname \( \
48 -name '*.cmt' -o \
49 -name '*.cmti' -o \
50 -name '*.ml' -o \
51 -name '*.ml-gen' \) -delete
52}
53
54dev() {
55 default_dev
56 depends="$pkgname=$pkgver-r$pkgrel"
57
58 cd "$pkgdir"
59
60 local path; for path in $(find usr/lib/ocaml/$_pkgname \
61 -name '*.cmx' -o \
62 -name '*.cmxa' -o \
63 -name '*.mli')
64 do
65 mkdir -p "${path%/*}"
66 mv "$path" "$subpkgdir"/${path%/*}/
67 done
68}
69
70data() {
71 pkgdesc="$pkgdesc (data files)"
72 depends=""
73
74 mkdir -p "$subpkgdir"/usr/share
75 mv "$pkgdir"/usr/share/$_pkgname "$subpkgdir"/usr/share/
76}
77
78sha512sums="41c453a55d284f879e390ef341482ad5c3dccb1cfd3720fd8513555276dde2397b657c632aa9b02f12f7990adb57bd7c3add637e30606c8f9ab5d28454eddfef ocaml-camomile-1.0.1.tar.gz"
diff --git a/unmaintained/ocaml-cmdliner/APKBUILD b/unmaintained/ocaml-cmdliner/APKBUILD
new file mode 100644
index 0000000000..db71176beb
--- /dev/null
+++ b/unmaintained/ocaml-cmdliner/APKBUILD
@@ -0,0 +1,40 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-cmdliner
4_pkgname=cmdliner
5pkgver=1.0.4
6pkgrel=1
7pkgdesc="Declarative definition of command line interfaces for OCaml"
8url="http://erratique.ch/software/cmdliner"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="ISC"
11depends="ocaml-result ocaml-runtime"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13makedepends="ocaml ocaml-findlib ocaml-result-dev ocamlbuild"
14options="!check" # no tests provided
15subpackages="$pkgname-dev"
16source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz"
17builddir="$srcdir/$_pkgname-$pkgver"
18
19build() {
20 make -j1
21}
22
23package() {
24 make install DESTDIR="$pkgdir" PREFIX=/usr
25
26 # Remove annotation files.
27 rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
28}
29
30dev() {
31 local sitelib="usr/lib/ocaml/$_pkgname"
32 default_dev
33
34 cd "$pkgdir"/$sitelib
35
36 mkdir -p "$subpkgdir"/$sitelib
37 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
38}
39
40sha512sums="d8d2408fa2606295ec4cc1662f38a9ad675e009f948cac8e87354abf160b37e316969a24e3caf81b5a296eebbdc178f8a1655afcaf3840be71462b58337c359f ocaml-cmdliner-1.0.4.tar.gz"
diff --git a/unmaintained/ocaml-cppo/APKBUILD b/unmaintained/ocaml-cppo/APKBUILD
new file mode 100644
index 0000000000..479eadfbb9
--- /dev/null
+++ b/unmaintained/ocaml-cppo/APKBUILD
@@ -0,0 +1,63 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-cppo
4_pkgname=cppo
5pkgver=1.6.6
6pkgrel=1
7pkgdesc="C-style preprocessor for OCaml"
8url="https://github.com/mjambon/cppo"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml
10license="BSD-3-Clause"
11makedepends="dune ocaml ocaml-ocamlbuild-dev ocaml-findlib opam"
12options="textrels" # needed for ppc64le
13subpackages="$pkgname-dev $pkgname-ocamlbuild"
14source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz
15 "
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 dune build --root . @install @DEFAULT
20}
21
22check() {
23 dune runtest
24}
25
26package() {
27 mkdir -p "$pkgdir"/usr/lib/ocaml
28 dune install \
29 --destdir="$pkgdir" \
30 --prefix=/usr \
31 --libdir=/usr/lib/ocaml
32
33 cd "$pkgdir"
34
35 # Remove annotation files and sources.
36 rm -Rf usr/lib/ocaml/$_pkgname*/*.cmt*
37 rm -Rf usr/lib/ocaml/$_pkgname*/*.ml
38
39 # Nothing interesting here.
40 rm -Rf usr/doc
41}
42
43ocamlbuild() {
44 pkgdesc="$pkgdesc (Ocamlbuild plugin)"
45 depends="ocaml-runtime ocaml-ocamlbuild"
46
47 mkdir -p "$subpkgdir"/usr/lib/ocaml
48 mv "$pkgdir"/usr/lib/ocaml/${_pkgname}_ocamlbuild \
49 "$subpkgdir"/usr/lib/ocaml/
50}
51
52dev() {
53 default_dev
54
55 depends="$pkgname=$pkgver-r$pkgrel $pkgname-ocamlbuild=$pkgver-r$pkgrel"
56 local sitelib="usr/lib/ocaml/${_pkgname}_ocamlbuild"
57
58 cd "$pkgdir"/$sitelib
59 mkdir -p "$subpkgdir"/$sitelib
60 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
61}
62
63sha512sums="80b0d7a5f0f5b7d9d62ddfb204ebf5e3216c2926ba7f667b9ef10981de6a51cd6d670b7062769bf6fbdd163c1c8fb5426a74c31234ddc03ec94a75645bf469da ocaml-cppo-1.6.6.tar.gz"
diff --git a/unmaintained/ocaml-csv/APKBUILD b/unmaintained/ocaml-csv/APKBUILD
new file mode 100644
index 0000000000..8b74c97769
--- /dev/null
+++ b/unmaintained/ocaml-csv/APKBUILD
@@ -0,0 +1,63 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3# TODO: Build csv-lwt (?).
4pkgname=ocaml-csv
5_pkgname=csv
6pkgver=2.2
7pkgrel=1
8pkgdesc="OCaml library for reading and writing CSV files"
9url="https://github.com/Chris00/ocaml-csv"
10arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml abuild
11license="LGPL-2.1-or-later"
12depends="ocaml-runtime"
13depends_dev="$pkgname=$pkgver-r$pkgrel"
14makedepends="dune ocaml ocaml-findlib opam"
15subpackages="$pkgname-dev csvtool"
16source="$pkgname-$pkgver.tar.bz2::https://github.com/Chris00/$pkgname/releases/download/$pkgver/csv-$pkgver.tbz"
17builddir="$srcdir/$_pkgname-$pkgver"
18options="textrels !check" # FIXME check requires package lwt
19
20build() {
21 dune build -p csv @install
22}
23
24package() {
25 mkdir -p "$pkgdir"/usr/lib/ocaml
26 dune install \
27 --destdir="$pkgdir" \
28 --prefix=/usr \
29 --libdir=/usr/lib/ocaml \
30 csv
31
32 cd "$pkgdir"
33
34 # Remove annotation files, some generated code (?) and sources.
35 find usr/lib/ocaml \
36 -name '*.cmt' -delete \
37 -o -name '*.cmti' -delete \
38 -o -name '*.ml-gen' -delete \
39 -o -name '*.ml' -delete
40
41 # Contains just a readme and changelog.
42 rm -Rf usr/doc
43}
44
45dev() {
46 local sitelib="usr/lib/ocaml/$_pkgname"
47
48 default_dev
49
50 cd "$pkgdir"/$sitelib
51 mkdir -p "$subpkgdir"/$sitelib
52 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
53}
54
55csvtool() {
56 pkgdesc="A command line tool for handling CSV files"
57 depends=""
58
59 mkdir -p "$subpkgdir"/usr
60 mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
61}
62
63sha512sums="f9db9f2b9934ba568c6546fc0ebbfcff7de9f3383b619a5bc49566bbbca37d8fc1ae967014012b9bf547ffd04911888df3c588bdefc0f24ce4869353f4f10207 ocaml-csv-2.2.tar.bz2"
diff --git a/unmaintained/ocaml-dtoa/APKBUILD b/unmaintained/ocaml-dtoa/APKBUILD
new file mode 100644
index 0000000000..a79f979588
--- /dev/null
+++ b/unmaintained/ocaml-dtoa/APKBUILD
@@ -0,0 +1,55 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-dtoa
4_pkgname=dtoa
5pkgver=0.3.2
6pkgrel=1
7pkgdesc="double-to-ascii ocaml implementation"
8url="https://github.com/flowtype/ocaml-dtoa"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="ocaml-runtime"
12checkdepends="ocaml-ounit-dev"
13makedepends="dune ocaml ocaml-findlib opam"
14subpackages="$pkgname-dev"
15source="https://github.com/flowtype/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz
16 bignum_align-noinline.patch
17 "
18
19build() {
20 dune build @install
21}
22
23check() {
24 dune runtest
25}
26
27package() {
28 mkdir -p "$pkgdir"/usr/lib/ocaml
29 dune install \
30 --destdir="$pkgdir" \
31 --prefix=/usr \
32 --libdir=/usr/lib/ocaml
33
34 # There's just a readme and changelog.
35 rm -Rf "$pkgdir"/usr/doc
36
37 # Remove annotation files and sources.
38 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
39 rm -f *.cmt* *.ml
40}
41
42dev() {
43 default_dev
44
45 depends="$pkgname=$pkgver-r$pkgrel"
46 local sitelib="usr/lib/ocaml/$_pkgname"
47
48 mkdir -p "$subpkgdir"/$sitelib
49
50 cd "$pkgdir"/$sitelib
51 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
52}
53
54sha512sums="a5dcce83f53725c45b0891f6af6275c5e617d536a2d491852215c9aefbbd22c7ac65f2738795eaba3a162e360d2fa86b33a98cdefb030230045789179c300604 ocaml-dtoa-0.3.2.tar.gz
55b5974d89debc14fb0beeb31a08d4a3d82298336488fc907005bcc2fcb1c5a1df12bc2b596956809f4982d9125995d01f08312f5591bd8857c6f0b136bf9aeb25 bignum_align-noinline.patch"
diff --git a/unmaintained/ocaml-dtoa/bignum_align-noinline.patch b/unmaintained/ocaml-dtoa/bignum_align-noinline.patch
new file mode 100644
index 0000000000..1968f253d7
--- /dev/null
+++ b/unmaintained/ocaml-dtoa/bignum_align-noinline.patch
@@ -0,0 +1,26 @@
1From: Mike Sullivan <mksully22@gmail.com>
2Date: Mon, 9 Jul 2018 16:17:10 +0000
3Subject: [PATCH] Avoid flow link error on ppc64 by eliminating bignum_align inlining
4
5The libtoa_stubs.a library created when building ocaml-dtoa on ppc64le
6contains the bignum_align.part.4 section created by the compiler
7optimizing the bignum_align(). This causes the linking against the
8library on ppc64le to report errors like we see when building the
9flow package. For example:
10
11 /usr/lib/gcc/powerpc64le-alpine-linux-musl/6.4.0/../../../../powerpc64le-alpine-linux-musl/bin/ld: /usr/lib/ocaml/lwt/liblwt_unix_stubs.a(unix_lseek_job.o): In function `result_lseek':
12 /home/buildozer/aports/testing/ocaml-lwt/src/lwt-3.2.1/_build/default/src/unix/unix_lseek_job.c:113:(.text+0xb8): call to `result_lseek.part.0' lacks nop, can't restore toc; (-mcmodel=small toc adjust stub)
13 /usr/lib/gcc/powerpc64le-alpine-linux-musl/6.4.0/../../../../powerpc64le-alpine-linux-musl/bin/ld: /usr/lib/ocaml/lwt/liblwt_unix_stubs.a(unix_lseek_job.o): In function `result_lseek_64':
14 /home/buildozer/aports/testing/ocaml-lwt/src/lwt-3.2.1/_build/default/src/unix/unix_lseek_job.c:134:(.text+0x134): call to `result_lseek_64.part.1' lacks nop, can't restore toc; (-mcmodel=small toc adjust stub)
15
16--- a/src/bignum.c 2018-07-09 14:12:25.025413017 +0000
17+++ b/src/bignum.c 2018-07-09 14:13:23.210604404 +0000
18@@ -86,7 +86,7 @@
19 }
20
21
22-void bignum_align(bignum* num, bignum other) {
23+__attribute__((noinline)) void bignum_align(bignum* num, bignum other) {
24 if (num->exponent > other.exponent) {
25 // If "X" represents a "hidden" digit (by the exponent) then we are in the
26 // following case (a == this, b == other):
diff --git a/unmaintained/ocaml-easy-format/APKBUILD b/unmaintained/ocaml-easy-format/APKBUILD
new file mode 100644
index 0000000000..ab689d7ae6
--- /dev/null
+++ b/unmaintained/ocaml-easy-format/APKBUILD
@@ -0,0 +1,51 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-easy-format
4_pkgname=easy-format
5pkgver=1.3.1
6pkgrel=4
7pkgdesc="Pretty-printing library for OCaml"
8url="https://mjambon.github.io/mjambon2016/easy-format.html"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="BSD-3-Clause"
11depends="ocaml-runtime"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13makedepends="dune ocaml ocaml-findlib opam"
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 jbuilder build @install
20}
21
22check() {
23 jbuilder runtest
24}
25
26package() {
27 mkdir -p "$pkgdir"/usr/lib/ocaml
28 jbuilder install \
29 --destdir="$pkgdir" \
30 --prefix=/usr \
31 --libdir=/usr/lib/ocaml
32
33 # There's just a readme and changelog.
34 rm -Rf "$pkgdir"/usr/doc
35
36 # Remove annotation files and sources.
37 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
38 rm -f *.cmt* *.ml
39}
40
41dev() {
42 local sitelib="usr/lib/ocaml/$_pkgname"
43 default_dev
44
45 cd "$pkgdir"/$sitelib
46
47 mkdir -p "$subpkgdir"/$sitelib
48 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
49}
50
51sha512sums="d8d5dc3ca53a84dc242869a09b3f485ca43a8260c6bae79c9e1cbd3751ddc3c4e5cca7582b987ff12980adb7a385261f53169349c0334782ea5c3412d4ed3ab2 ocaml-easy-format-1.3.1.tar.gz"
diff --git a/unmaintained/ocaml-gen/APKBUILD b/unmaintained/ocaml-gen/APKBUILD
new file mode 100644
index 0000000000..bfd67cf961
--- /dev/null
+++ b/unmaintained/ocaml-gen/APKBUILD
@@ -0,0 +1,53 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-gen
4_pkgname=gen
5pkgver=0.5.2
6pkgrel=1
7pkgdesc="Simple, efficient iterators for OCaml"
8url="https://github.com/c-cube/gen/"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="BSD-2-Clause"
11depends="ocaml-runtime"
12makedepends="dune ocaml ocaml-findlib opam"
13options="!check" # XXX: tests require additional dependencies we don't have yet
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/c-cube/$_pkgname/archive/$pkgver/gen-$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 jbuilder build @install
20}
21
22check() {
23 jbuilder runtest
24}
25
26package() {
27 mkdir -p "$pkgdir"/usr/lib/ocaml
28 jbuilder install \
29 --destdir="$pkgdir" \
30 --prefix=/usr \
31 --libdir=/usr/lib/ocaml
32
33 # There's just a readme and changelog.
34 rm -Rf "$pkgdir"/usr/doc
35
36 # Remove annotation files and sources.
37 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
38 rm -f *.cmt* *.ml
39}
40
41dev() {
42 default_dev
43
44 depends="$pkgname=$pkgver-r$pkgrel"
45 local sitelib="usr/lib/ocaml/$_pkgname"
46
47 mkdir -p "$subpkgdir"/$sitelib
48
49 cd "$pkgdir"/$sitelib
50 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
51}
52
53sha512sums="c84e5ea0c9b3a678b6a5c935eacf91265a79b68a48375c44aa5f159d4cb02283c1be0786e172a153666c670bc7ee37b931004b8747a99e5f4ab90ca63e097ff5 ocaml-gen-0.5.2.tar.gz"
diff --git a/unmaintained/ocaml-labltk/APKBUILD b/unmaintained/ocaml-labltk/APKBUILD
new file mode 100644
index 0000000000..5add49ce0a
--- /dev/null
+++ b/unmaintained/ocaml-labltk/APKBUILD
@@ -0,0 +1,59 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-labltk
4_pkgname=labltk
5pkgver=8.06.5
6_pkgkey=1764 # it changes with version update
7pkgrel=1
8_ocamlver=4.07.1
9pkgdesc="Tcl/Tk interface for OCaml"
10url="http://labltk.forge.ocamlcore.org/"
11arch="aarch64 ppc64le x86_64" # limited by ocaml aport
12license="LGPL-2.0-or-later-WITH-linking-exception"
13depends="ocaml-runtime"
14depends_dev="$pkgname=$pkgver-r$pkgrel"
15makedepends="ocaml=~$_ocamlver ocaml-compiler-libs=~$_ocamlver tcl-dev tk tk-dev"
16options="!check" # no tests provided
17subpackages="$pkgname-dev"
18source="https://forge.ocamlcore.org/frs/download.php/$_pkgkey/$_pkgname-$pkgver.tar.gz"
19builddir="$srcdir/$_pkgname-$pkgver"
20
21build() {
22 cd "$builddir"
23
24 ./configure --tk-no-x11
25 make -j1 all
26 make -j1 opt
27}
28
29package() {
30 local libdir="$pkgdir/usr/lib/ocaml"
31 cd "$builddir"
32
33 mkdir -p "$libdir"/$_pkgname \
34 "$libdir"/stublibs \
35 "$pkgdir"/usr/bin
36
37 make install \
38 BINDIR="$pkgdir/usr/bin" \
39 INSTALLDIR="$pkgdir/usr/lib/ocaml/$_pkgname" \
40 STUBLIBDIR="$pkgdir/usr/lib/ocaml/stublibs"
41
42 # The *.o files are not installed by the Makefile.
43 # AIUI that prevents linking with native code programs.
44 install -m 0644 camltk/*.o "$libdir"/$_pkgname/
45}
46
47dev() {
48 local sitelib="usr/lib/ocaml/$_pkgname"
49 default_dev
50
51 mkdir -p "$subpkgdir"/usr
52 mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
53
54 cd "$pkgdir"/$sitelib
55 mkdir -p "$subpkgdir"/$sitelib
56 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
57}
58
59sha512sums="8a6bfefd1ba8ef1fb54c284a06067007dd48833a475e24c787c0c2100a30a5ab018606ca3e79fd0fa323b6759de0ae3c7e6ef881e662bf1d7f84e920c7bebe7a labltk-8.06.5.tar.gz"
diff --git a/unmaintained/ocaml-lambda-term/APKBUILD b/unmaintained/ocaml-lambda-term/APKBUILD
new file mode 100644
index 0000000000..221b2cb891
--- /dev/null
+++ b/unmaintained/ocaml-lambda-term/APKBUILD
@@ -0,0 +1,68 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-lambda-term
4_pkgname=lambda-term
5pkgver=1.13
6pkgrel=1
7pkgdesc="Terminal manipulation library for OCaml"
8url="https://github.com/diml/lambda-term"
9# x86, armhf, s390x, mips, mips64: limited by ocaml aport
10arch="all !x86 !armhf !armv7 !s390x !mips !mips64"
11license="BSD-3-Clause"
12depends="ocaml-camomile ocaml-lwt ocaml-lwt_react ocaml-lwt_log ocaml-zed"
13makedepends="
14 dune
15 ocaml
16 ocaml-camomile-dev
17 ocaml-lwt-dev
18 ocaml-lwt_log-dev
19 ocaml-findlib
20 ocaml-react-dev
21 ocaml-result-dev
22 ocaml-zed-dev
23 opam
24 "
25subpackages="$pkgname-dev $pkgname-doc"
26source="$pkgname-$pkgver.tar.bz2::https://github.com/diml/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tbz"
27builddir="$srcdir/$_pkgname-$pkgver"
28
29build() {
30 cd "$builddir"
31 jbuilder build @install
32}
33
34check() {
35 cd "$builddir"
36 jbuilder runtest
37}
38
39package() {
40 cd "$builddir"
41
42 opam-installer -i \
43 --prefix="$pkgdir/usr" \
44 --libdir="$pkgdir/usr/lib/ocaml" \
45 --docdir="$pkgdir/doc" \
46 --mandir="$pkgdir/usr/share/man" \
47 $_pkgname.install
48
49 # There's just a readme and changelog.
50 rm -Rf "$pkgdir"/doc
51
52 # Remove annotation files and sources.
53 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
54 rm -f *.cmt* *.ml
55}
56
57dev() {
58 default_dev
59 depends="$pkgname=$pkgver-r$pkgrel"
60 local sitelib="usr/lib/ocaml/$_pkgname"
61
62 cd "$pkgdir"/$sitelib
63
64 mkdir -p "$subpkgdir"/$sitelib
65 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
66}
67
68sha512sums="79efc40653e74eb27181b260bc0096238854eb72a61b59c3de3740b01399d9fefa35c0f978d48bbf8097647b6324651207ade022572ef06b460b7b1b001b0dc7 ocaml-lambda-term-1.13.tar.bz2"
diff --git a/unmaintained/ocaml-lwt/APKBUILD b/unmaintained/ocaml-lwt/APKBUILD
new file mode 100644
index 0000000000..439cd98766
--- /dev/null
+++ b/unmaintained/ocaml-lwt/APKBUILD
@@ -0,0 +1,111 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-lwt
4_pkgname=lwt
5pkgver=4.1.0
6pkgrel=1
7pkgdesc="OCaml promises and concurrent I/O"
8url="https://github.com/ocsigen/lwt"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="LGPL-2.1-or-later-WITH-linking-exception BSD-3-Clause"
11depends="ocaml-runtime ocaml-result"
12depends_dev="libev-dev"
13makedepends="$depends_dev
14 dune
15 ocaml
16 ocaml-compiler-libs
17 ocaml-cppo-dev
18 ocaml-findlib
19 ocaml-migrate-parsetree-dev
20 ocaml-ppx_tools_versioned-dev
21 ocaml-react-dev
22 ocaml-result-dev
23 opam
24 "
25options="!check" # FIXME: tests hang
26subpackages="$pkgname-dev ${pkgname}_ppx:_ppx ${pkgname}_react:_react"
27source="$pkgname-$pkgver.tar.gz::https://github.com/ocsigen/$_pkgname/archive/$pkgver.tar.gz
28 result_lseek_noinline.patch"
29builddir="$srcdir/$_pkgname-$pkgver"
30
31build() {
32 cd "$builddir"
33
34 ocaml src/util/configure.ml \
35 -use-libev true
36
37 jbuilder build @install
38}
39
40check() {
41 cd "$builddir"
42
43 jbuilder runtest
44}
45
46package() {
47 local libdir="$pkgdir/usr/lib/ocaml"
48 cd "$builddir"
49
50 mkdir -p "$libdir"
51 jbuilder install \
52 --destdir="$pkgdir"/usr \
53 --libdir="$libdir"
54
55 find "$libdir" -name '*.cmxs' -exec chmod 0755 {} \;
56
57 # There's just a readme and changelog.
58 rm -Rf "$pkgdir"/usr/doc
59
60 # Remove annotation files and sources.
61 find "$libdir"/$_pkgname* \( \
62 -name '*.cmt' -o \
63 -name '*.cmti' -o \
64 -name '*.ml' \) -delete
65}
66
67dev() {
68 default_dev
69 depends="$depends_dev
70 $pkgname=$pkgver-r$pkgrel
71 ${pkgname}_ppx=$pkgver-r$pkgrel
72 ${pkgname}_react=$pkgver-r$pkgrel"
73 provides="${pkgname}_ppx-dev ${pkgname}_react-dev"
74
75 cd "$pkgdir"
76
77 local path; for path in $(find usr/lib/ocaml/$_pkgname*/ \
78 -name '*.cmx' \
79 -o -name '*.cmxa' \
80 -o -name '*.mli')
81 do
82 mkdir -p "${path%/*}"
83 mv "$path" "$subpkgdir"/${path%/*}/
84 done
85}
86
87_ppx() {
88 pkgdesc="$pkgdesc (PPX syntax)"
89 depends="$pkgname=$pkgver-r$pkgrel
90 ocaml-runtime
91 ocaml-migrate-parsetree
92 ocaml-ppx_tools_versioned"
93
94 _submv usr/lib/ocaml/lwt_ppx
95}
96
97_react() {
98 pkgdesc="$pkgdesc (for FRP)"
99 depends="$pkgname=$pkgver-r$pkgrel ocaml-runtime ocaml-react"
100
101 _submv usr/lib/ocaml/lwt_react
102}
103
104_submv() {
105 local path="$1"
106 mkdir -p "$subpkgdir"/${path%/*}
107 mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/
108}
109
110sha512sums="28bc51e75d5e4c74171f17aaba86fdefad70f57f9f2023680044d5bf65250d8531501adc85d0422e644c1e318dcee0a4d53f7841c82d9dca9854e8fbb09987f2 ocaml-lwt-4.1.0.tar.gz
111dc3abce70b3ad022066e8023a9b37346df0ecbbc6351186cc24b569189142ad3e7e32f27c33a4378f11ec8c40df5c96f4c37190ca4797bc228ca8943f53cf5bf result_lseek_noinline.patch"
diff --git a/unmaintained/ocaml-lwt/result_lseek_noinline.patch b/unmaintained/ocaml-lwt/result_lseek_noinline.patch
new file mode 100644
index 0000000000..2e2fd1552d
--- /dev/null
+++ b/unmaintained/ocaml-lwt/result_lseek_noinline.patch
@@ -0,0 +1,20 @@
1--- a/src/unix/unix_c/unix_lseek_job.c
2+++ b/src/unix/unix_c/unix_lseek_job.c
3@@ -92,7 +92,7 @@
4 }
5
6 /* The function building the caml result. */
7-static value result_lseek(struct job_lseek* job)
8+__attribute__((noinline)) static value result_lseek(struct job_lseek* job)
9 {
10 value result;
11 /* Check for errors. */
12@@ -113,7 +113,7 @@
13 }
14
15 /* The function building the caml result. */
16-static value result_lseek_64(struct job_lseek* job)
17+__attribute__((noinline)) static value result_lseek_64(struct job_lseek* job)
18 {
19 value result;
20 /* Check for errors. */
diff --git a/unmaintained/ocaml-lwt_log/APKBUILD b/unmaintained/ocaml-lwt_log/APKBUILD
new file mode 100644
index 0000000000..474db8a0a2
--- /dev/null
+++ b/unmaintained/ocaml-lwt_log/APKBUILD
@@ -0,0 +1,55 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-lwt_log
4_pkgname=lwt_log
5pkgver=1.1.0
6pkgrel=1
7pkgdesc="Lwt-friendly logger"
8url="https://github.com/aantron/lwt_log"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="LGPL-2.1-or-later-WITH-linking-exception BSD-3-Clause"
11depends="ocaml-runtime ocaml-lwt>=4.0.0"
12makedepends="dune ocaml ocaml-findlib ocaml-lwt-dev>=4.0.0 opam"
13options="!check" # no tests provided
14subpackages="$pkgname-dev"
15source="https://github.com/aantron/$_pkgname/archive/$pkgver/$_pkgname-$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 cd "$builddir"
20 jbuilder build @install
21}
22
23package() {
24 cd "$builddir"
25
26 mkdir -p "$pkgdir"/usr/lib/ocaml
27 jbuilder install \
28 --destdir="$pkgdir"/usr \
29 --libdir="$pkgdir"/usr/lib/ocaml
30
31 # There's just a readme and changelog.
32 rm -Rf "$pkgdir"/usr/doc
33
34 # Remove annotation files and sources.
35 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
36 rm -f *.cmt* */*.cmt* *.ml */*.ml
37}
38
39dev() {
40 default_dev
41 depends="$pkgname=$pkgver-r$pkgrel"
42
43 cd "$pkgdir"
44
45 local path; for path in $(find usr/lib/ocaml/$_pkgname \
46 -name '*.cmx' -o \
47 -name '*.cmxa' -o \
48 -name '*.mli')
49 do
50 mkdir -p "${path%/*}"
51 mv "$path" "$subpkgdir"/${path%/*}/
52 done
53}
54
55sha512sums="fa0ce2928912b55ecbddc14ecd6f6d5db399f7cd6cba5f38d61db4c89ab7345d3e42f8f1292d9a5be973e16fd43d8381d6c269ae47f3692bb64ff567a7039451 lwt_log-1.1.0.tar.gz"
diff --git a/unmaintained/ocaml-markup/APKBUILD b/unmaintained/ocaml-markup/APKBUILD
new file mode 100644
index 0000000000..ef9be28546
--- /dev/null
+++ b/unmaintained/ocaml-markup/APKBUILD
@@ -0,0 +1,67 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-markup
4_pkgname=markup.ml
5pkgver=0.7.6
6pkgrel=5
7pkgdesc="Error-recovering streaming HTML5 and XML parsers for OCaml"
8url="https://aantron.github.io/markup.ml"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="BSD-2-Clause"
11depends="ocaml-runtime ocaml-lwt ocaml-uchar ocaml-uutf"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13checkdepends="ocaml-result-dev ocaml-ounit-dev"
14makedepends="dune ocaml ocaml-findlib ocaml-lwt-dev ocaml-uchar-dev
15 ocaml-uutf-dev opam"
16subpackages="$pkgname-dev"
17source="$pkgname-$pkgver.tar.gz::https://github.com/aantron/$_pkgname/archive/$pkgver.tar.gz"
18builddir="$srcdir/$_pkgname-$pkgver"
19
20build() {
21 cd "$builddir"
22
23 ocaml src/configure.ml
24 jbuilder build @install
25}
26
27check() {
28 cd "$builddir"
29
30 # FIXME: Allow to fail on ppc64le for now.
31 case "$CARCH" in
32 ppc64le) jbuilder runtest --no-buffer -j1 || true;;
33 *) jbuilder runtest --no-buffer -j1;;
34 esac
35}
36
37package() {
38 cd "$builddir"
39
40 mkdir -p "$pkgdir"/usr/lib/ocaml
41 jbuilder install \
42 --destdir="$pkgdir"/usr \
43 --libdir="$pkgdir"/usr/lib/ocaml
44
45 # There's just a readme and changelog.
46 rm -Rf "$pkgdir"/usr/doc
47
48 # Remove annotation files and sources.
49 find "$pkgdir"/usr/lib/ocaml \
50 \( -name '*.cmt' -o -name '*.cmti' -o -name '*.ml' \) \
51 -a -delete
52}
53
54dev() {
55 local sitelib="usr/lib/ocaml/markup"
56 default_dev
57
58 cd "$pkgdir"
59
60 local path
61 for path in $(find $sitelib -name '*.cmx' -o -name '*.cmxa' -o -name '*.mli*'); do
62 mkdir -p "${path%/*}"
63 mv "$path" "$subpkgdir"/${path%/*}/
64 done
65}
66
67sha512sums="dcb06d0d271677842f76f3eabd64ac4aefbd8c8194c0ca8732d32120b4f1026378f989c2979706f752d3df45f878194283bd2754023033b61063878de4deb319 ocaml-markup-0.7.6.tar.gz"
diff --git a/unmaintained/ocaml-menhir/APKBUILD b/unmaintained/ocaml-menhir/APKBUILD
new file mode 100644
index 0000000000..931cce96dc
--- /dev/null
+++ b/unmaintained/ocaml-menhir/APKBUILD
@@ -0,0 +1,41 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-menhir
4_pkgname=menhir
5# NOTE: Check supported version in Reason before upgrading!
6pkgver=20171013
7pkgrel=5
8pkgdesc="LR(1) parser generator for OCaml"
9url="http://gallium.inria.fr/~fpottier/menhir/"
10arch="aarch64 ppc64le x86_64" # limited by ocaml aport
11license="GPL-2.0-only"
12depends="ocaml-findlib"
13makedepends="ocaml ocaml-ocamlbuild-dev ocamlbuild"
14options="!check" # no tests provided
15subpackages="$pkgname-dev $pkgname-doc"
16source="http://gallium.inria.fr/~fpottier/menhir/$_pkgname-$pkgver.tar.gz"
17builddir="$srcdir/$_pkgname-$pkgver"
18
19build() {
20 make PREFIX=/usr TARGET=native
21}
22
23package() {
24 export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
25 mkdir -p "$OCAMLFIND_DESTDIR"
26
27 make install PREFIX="$pkgdir/usr" TARGET=native
28
29 rm -Rf "$pkgdir"/usr/share/doc/menhir/demos
30}
31
32dev() {
33 pkgdesc="$pkgdesc (development files)"
34 depends="$pkgname=$pkgver-r$pkgrel ocaml-runtime"
35 license="LGPL-2.0-only-WITH-linking-exception"
36
37 mkdir -p "$subpkgdir"/usr/lib
38 mv "$pkgdir"/usr/lib/ocaml "$subpkgdir"/usr/lib/
39}
40
41sha512sums="ba6359c471aee62c996bd6495612f444e7ac226f7aad9991a76e4daa2df00cdec2387c488c6a29246ca48079bd8199b94de09a44f1fb05465cbeddff0b39df54 menhir-20171013.tar.gz"
diff --git a/unmaintained/ocaml-merlin-extend/APKBUILD b/unmaintained/ocaml-merlin-extend/APKBUILD
new file mode 100644
index 0000000000..ac5e164fed
--- /dev/null
+++ b/unmaintained/ocaml-merlin-extend/APKBUILD
@@ -0,0 +1,42 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-merlin-extend
4_pkgname=merlin-extend
5pkgver=0.3
6pkgrel=3
7pkgdesc="SDK to extend Merlin"
8url="https://github.com/let-def/merlin-extend"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="ocaml-runtime"
12makedepends="ocaml ocaml-compiler-libs ocaml-cppo ocaml-findlib"
13options="!check" # no tests provided
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/let-def/$_pkgname/archive/v$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 cd "$builddir"
20 make
21}
22
23package() {
24 cd "$builddir"
25
26 export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
27 mkdir -p "$OCAMLFIND_DESTDIR"
28 make install
29}
30
31dev() {
32 default_dev
33 depends="$pkgname=$pkgver-r$pkgrel"
34 local sitelib="usr/lib/ocaml/${_pkgname/-/_}"
35
36 cd "$pkgdir"/$sitelib
37
38 mkdir -p "$subpkgdir"/$sitelib
39 mv *.cmxa *.ml *.mli "$subpkgdir"/$sitelib/
40}
41
42sha512sums="1e6436299b38c7fa57ae5b681a1409795545bc6f5956d6b1c37cbfdbdabfd90da476c030067fe2e016c823d60d1e5498c4536c869bf58425e1a6ff78295efba4 ocaml-merlin-extend-0.3.tar.gz"
diff --git a/unmaintained/ocaml-ounit/APKBUILD b/unmaintained/ocaml-ounit/APKBUILD
new file mode 100644
index 0000000000..220a2f0478
--- /dev/null
+++ b/unmaintained/ocaml-ounit/APKBUILD
@@ -0,0 +1,51 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-ounit
4_pkgname=ounit
5pkgver=2.0.8
6pkgrel=3
7pkgdesc="A unit test framework for OCaml"
8url="http://ounit.forge.ocamlcore.org/"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="ocaml-runtime"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13makedepends="ocaml ocaml-findlib ocaml-ocamlbuild-dev ocamlbuild libxml2-utils"
14options="!check" # FIXME: fix tests!
15subpackages="$pkgname-dev"
16source="https://forge.ocamlcore.org/frs/download.php/1749/$_pkgname-$pkgver.tar.gz"
17builddir="$srcdir/$_pkgname-$pkgver"
18
19build() {
20 ./configure \
21 --prefix=/usr \
22 --disable-debug \
23 --disable-docs \
24 --enable-tests
25 make build
26}
27
28check() {
29 make test
30}
31
32package() {
33 mkdir -p "$pkgdir"/usr/lib/ocaml
34 make install OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
35
36 # Remove annotation files and sources.
37 cd "$pkgdir"/usr/lib/ocaml/oUnit
38 rm -f *.annot *.cmt* *.ml
39}
40
41dev() {
42 local sitelib="usr/lib/ocaml/oUnit"
43 default_dev
44
45 cd "$pkgdir"/$sitelib
46
47 mkdir -p "$subpkgdir"/$sitelib
48 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
49}
50
51sha512sums="7b0c69d8f0baec541b0cccf8d04bc3bd81b7ff8f1addba9e73a7ba2596b475fc79e3472e3870370b6cfe00b4a4b730f6afd524ae4aea7bb3fd518bbe917d9fc7 ounit-2.0.8.tar.gz"
diff --git a/unmaintained/ocaml-ppx_derivers/APKBUILD b/unmaintained/ocaml-ppx_derivers/APKBUILD
new file mode 100644
index 0000000000..1603631575
--- /dev/null
+++ b/unmaintained/ocaml-ppx_derivers/APKBUILD
@@ -0,0 +1,50 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-ppx_derivers
4_pkgname=ppx_derivers
5pkgver=1.2
6pkgrel=2
7pkgdesc="Shared [@@deriving] plugins registry"
8url="https://github.com/ocaml-ppx/ppx_derivers"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="BSD-3-Clause"
11depends="ocaml-runtime"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13makedepends="dune ocaml ocaml-findlib opam"
14options="!check" # no tests provided
15subpackages="$pkgname-dev"
16source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/$pkgver.tar.gz"
17builddir="$srcdir/$_pkgname-$pkgver"
18
19build() {
20 cd "$builddir"
21 jbuilder build @install
22}
23
24package() {
25 cd "$builddir"
26
27 mkdir -p "$pkgdir"/usr/lib/ocaml
28 jbuilder install \
29 --destdir="$pkgdir/usr" \
30 --libdir="$pkgdir/usr/lib/ocaml"
31
32 # There's just a readme and changelog.
33 rm -Rf "$pkgdir"/usr/doc
34
35 # Remove annotation files and sources.
36 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
37 rm -f *.cmt* *.ml
38}
39
40dev() {
41 local sitelib="usr/lib/ocaml/$_pkgname"
42 default_dev
43
44 cd "$pkgdir"/$sitelib
45
46 mkdir -p "$subpkgdir"/$sitelib
47 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
48}
49
50sha512sums="68e8773cec2ee3c0feb08b7cc8e1b6ce226add4ed6d2ced0e77fe485e48b04570f7049c5bde2ce917a4965d114bbc44400b409c2d76d928913ef4f76c6591a8e ocaml-ppx_derivers-1.2.tar.gz"
diff --git a/unmaintained/ocaml-ppx_deriving/APKBUILD b/unmaintained/ocaml-ppx_deriving/APKBUILD
new file mode 100644
index 0000000000..3124b53884
--- /dev/null
+++ b/unmaintained/ocaml-ppx_deriving/APKBUILD
@@ -0,0 +1,86 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-ppx_deriving
4_pkgname=ppx_deriving
5pkgver=4.2.1
6pkgrel=3
7pkgdesc="Type-driven code generation for OCaml"
8url="https://github.com/ocaml-ppx/ppx_deriving"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="
12 ocaml-migrate-parsetree
13 ocaml-ppx_derivers
14 ocaml-ppx_tools
15 ocaml-result
16 ocaml-runtime
17 "
18depends_dev="$pkgname=$pkgver-r$pkgrel"
19checkdepends="ocaml-ounit"
20makedepends="
21 grep
22 ocaml
23 ocaml-compiler-libs
24 ocaml-cppo-dev
25 ocaml-cppo-ocamlbuild
26 ocaml-findlib-dev
27 ocaml-migrate-parsetree-dev
28 ocaml-ocamlbuild-dev
29 ocaml-ppx_derivers-dev
30 ocaml-ppx_tools-dev
31 ocaml-result-dev
32 ocamlbuild
33 opam
34 "
35subpackages="$pkgname-dev"
36source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/v$pkgver.tar.gz"
37builddir="$srcdir/$_pkgname-$pkgver"
38
39build() {
40 cd "$builddir"
41 make
42}
43
44check() {
45 cd "$builddir"
46 make test
47}
48
49package() {
50 cd "$builddir"
51
52 opam-installer -i \
53 --prefix="$pkgdir/usr" \
54 --libdir="$pkgdir/usr/lib/ocaml" \
55 --docdir="$builddir/.omit" \
56 $_pkgname.install
57
58 cd "$pkgdir"
59
60 # Move executable to /usr/bin.
61 mkdir -p usr/bin
62 mv usr/lib/$_pkgname/ppx_deriving usr/bin/
63 rmdir usr/lib/$_pkgname
64
65 # Remove annotation files.
66 rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
67}
68
69dev() {
70 local sitelib="usr/lib/ocaml/$_pkgname"
71 default_dev
72
73 cd "$pkgdir"
74
75 mkdir -p "$subpkgdir"/usr
76 mv usr/bin "$subpkgdir"/usr/
77
78 ln -s ../../../bin/ppx_deriving \
79 "$subpkgdir"/usr/lib/ocaml/$_pkgname/ppx_deriving
80
81 cd "$pkgdir"/$sitelib
82 mkdir -p "$subpkgdir"/$sitelib
83 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
84}
85
86sha512sums="306cd62a5a2906782789967c9df3efd0f9fc31c4f59e39d3f678a0a24a5c48a210af8a28c9483a0f6ae174a36f79a00a2b1a0d547006c84fcc7a91101c2cd41b ocaml-ppx_deriving-4.2.1.tar.gz"
diff --git a/unmaintained/ocaml-ppx_gen_rec/APKBUILD b/unmaintained/ocaml-ppx_gen_rec/APKBUILD
new file mode 100644
index 0000000000..3b62da0625
--- /dev/null
+++ b/unmaintained/ocaml-ppx_gen_rec/APKBUILD
@@ -0,0 +1,51 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-ppx_gen_rec
4_pkgname=ppx_gen_rec
5pkgver=1.0.0
6pkgrel=1
7pkgdesc="OCaml preprocessor that generates a recursive module"
8url="https://github.com/flowtype/ocaml-ppx_gen_rec"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="ocaml-runtime ocaml-migrate-parsetree"
12makedepends="dune ocaml ocaml-compiler-libs ocaml-findlib ocaml-migrate-parsetree-dev opam"
13options="!check" # no tests provided
14subpackages="$pkgname-dev"
15source="https://github.com/flowtype/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
16builddir="$srcdir/$pkgname-$pkgver"
17
18build() {
19 cd "$builddir"
20 jbuilder build @install
21}
22
23package() {
24 cd "$builddir"
25
26 mkdir -p "$pkgdir"/usr/lib/ocaml
27 jbuilder install \
28 --destdir="$pkgdir/usr" \
29 --libdir="$pkgdir/usr/lib/ocaml"
30
31 # There's just a readme and changelog.
32 rm -Rf "$pkgdir"/usr/doc
33
34 # Remove annotation files and sources.
35 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
36 rm -f *.cmt* *.ml
37}
38
39dev() {
40 default_dev
41
42 depends="$pkgname=$pkgver-r$pkgrel"
43 local sitelib="usr/lib/ocaml/$_pkgname"
44
45 cd "$pkgdir"/$sitelib
46
47 mkdir -p "$subpkgdir"/$sitelib
48 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
49}
50
51sha512sums="7eb5f131646e984e7e5bd2765604f532772bb2f706fec607581ee10f1ebae4ffb3e032da93550c1ffa7e024690ed06bc2d7355cf66949198ec853ac60fdd5a8e ocaml-ppx_gen_rec-1.0.0.tar.gz"
diff --git a/unmaintained/ocaml-ppx_tools/APKBUILD b/unmaintained/ocaml-ppx_tools/APKBUILD
new file mode 100644
index 0000000000..3fb99c0480
--- /dev/null
+++ b/unmaintained/ocaml-ppx_tools/APKBUILD
@@ -0,0 +1,47 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-ppx_tools
4_pkgname=ppx_tools
5pkgver=5.1
6pkgrel=2
7_ocamlver=4.06
8_pkgver="$pkgver+$_ocamlver.0"
9pkgdesc="Tools for authors of ppx rewriters"
10url="https://github.com/ocaml-ppx/ppx_tools"
11arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
12license="MIT"
13depends="ocaml-findlib ocaml-runtime"
14depends_dev="$pkgname=$pkgver-r$pkgrel"
15makedepends="ocaml=~$_ocamlver ocaml-compiler-libs=~$_ocamlver"
16options="!check" # no tests provided
17subpackages="$pkgname-dev"
18source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/$_pkgver.tar.gz"
19builddir="$srcdir/$_pkgname-${_pkgver/+/-}"
20
21build() {
22 cd "$builddir"
23 make -j1
24}
25
26package() {
27 cd "$builddir"
28
29 mkdir -p "$pkgdir/usr/lib/ocaml"
30 OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml" \
31 make install
32
33 # Remove annotation files.
34 rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
35}
36
37dev() {
38 local sitelib="usr/lib/ocaml/$_pkgname"
39 default_dev
40
41 cd "$pkgdir"/$sitelib
42
43 mkdir -p "$subpkgdir"/$sitelib
44 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
45}
46
47sha512sums="9adab758f2e68f155775559ed6568b1c3338d03291a27108b7e47a4fc5bbe65c6451c9bb90fc3270b62148213dfcc30b709b6a95e99d218884f915b48ecda9ff ocaml-ppx_tools-5.1.tar.gz"
diff --git a/unmaintained/ocaml-ppx_tools_versioned/APKBUILD b/unmaintained/ocaml-ppx_tools_versioned/APKBUILD
new file mode 100644
index 0000000000..db25483c88
--- /dev/null
+++ b/unmaintained/ocaml-ppx_tools_versioned/APKBUILD
@@ -0,0 +1,58 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-ppx_tools_versioned
4_pkgname=ppx_tools_versioned
5pkgver=5.2
6pkgrel=1
7pkgdesc="Tools for authors of ppx rewriters"
8url="https://github.com/ocaml-ppx/ppx_tools_versioned"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="ocaml-runtime ocaml-migrate-parsetree"
12makedepends="dune ocaml ocaml-compiler-libs ocaml-findlib
13 ocaml-migrate-parsetree-dev opam"
14# textrels needed for ppc64le
15# no tests provided
16options="textrels !check"
17subpackages="$pkgname-dev"
18source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/$pkgver.tar.gz"
19builddir="$srcdir/$_pkgname-$pkgver"
20
21build() {
22 cd "$builddir"
23 jbuilder build @install
24}
25
26package() {
27 cd "$builddir"
28
29 mkdir -p "$pkgdir"/usr/lib/ocaml
30 jbuilder install \
31 --destdir="$pkgdir"/usr \
32 --libdir="$pkgdir"/usr/lib/ocaml
33
34 # There's just a readme and changelog.
35 rm -Rf "$pkgdir"/usr/doc
36
37 # Remove annotation files and sources.
38 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
39 rm -f *.cmt* */*.cmt* *.ml */*.ml
40}
41
42dev() {
43 default_dev
44 depends="$pkgname=$pkgver-r$pkgrel"
45
46 cd "$pkgdir"
47
48 local path; for path in $(find usr/lib/ocaml/$_pkgname \
49 -name '*.cmx' \
50 -o -name '*.cmxa' \
51 -o -name '*.mli')
52 do
53 mkdir -p "${path%/*}"
54 mv "$path" "$subpkgdir"/${path%/*}/
55 done
56}
57
58sha512sums="1efb7fc24f0b909d948aca53abee6e0613aaf101e6cf914772557ec00c879890d50b9c6e232f55a54381eab164a40d796d953b4992ef40a6e9141abd2b409cba ocaml-ppx_tools_versioned-5.2.tar.gz"
diff --git a/unmaintained/ocaml-re/APKBUILD b/unmaintained/ocaml-re/APKBUILD
new file mode 100644
index 0000000000..c11711bc4d
--- /dev/null
+++ b/unmaintained/ocaml-re/APKBUILD
@@ -0,0 +1,64 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-re
4pkgver=1.7.3
5pkgrel=1
6pkgdesc="Pure OCaml regular expressions, with support for Perl and POSIX-style strings"
7url="https://github.com/ocaml/ocaml-re"
8arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
9license="LGPL-2.1-or-later"
10depends="ocaml-runtime"
11depends_dev="$pkgname=$pkgver-r$pkgrel"
12checkdepends="ocaml-ounit-dev"
13makedepends="dune ocaml ocaml-findlib ocamlbuild opam"
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/$pkgname/archive/$pkgver.tar.gz"
16builddir="$srcdir/$pkgname-$pkgver"
17
18build() {
19 cd "$builddir"
20 jbuilder build @install
21}
22
23check() {
24 cd "$builddir"
25 jbuilder runtest
26}
27
28package() {
29 cd "$builddir"
30
31 mkdir -p "$pkgdir"/usr/lib/ocaml
32 jbuilder install \
33 --destdir="$pkgdir"/usr \
34 --libdir="$pkgdir"/usr/lib/ocaml
35
36 cd "$pkgdir"
37
38 # There's just a readme and changelog.
39 rm -Rf usr/doc
40
41 # Remove annotation files and sources.
42 find usr/lib/ocaml \( \
43 -name '*.cmt' -o \
44 -name '*.cmti' -o \
45 -name '*.ml' \) -delete
46}
47
48dev() {
49 default_dev
50
51 cd "$pkgdir"
52
53 local path; for path in $(find usr/lib/ocaml/re \
54 -name '*.cmx' -o \
55 -name '*.cmxa' -o \
56 -name '*.mli')
57 do
58 mkdir -p "${path%/*}"
59 mv "$path" "$subpkgdir"/${path%/*}/
60 done
61
62}
63
64sha512sums="3d161cb46fa0e855bfbae29b5b769f0054b51e4021f8a66ff8d6a9eee257ba4b02ab7202337d35c4ed2a033560a7b69676525f32cb18406881bed2e68db2ca55 ocaml-re-1.7.3.tar.gz"
diff --git a/unmaintained/ocaml-react/APKBUILD b/unmaintained/ocaml-react/APKBUILD
new file mode 100644
index 0000000000..a4b60c8497
--- /dev/null
+++ b/unmaintained/ocaml-react/APKBUILD
@@ -0,0 +1,57 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-react
4_pkgname=react
5pkgver=1.2.1
6pkgrel=1
7pkgdesc="OCaml framework for Functional Reactive Programming (FRP)"
8url="http://erratique.ch/software/react"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="ISC"
11depends="ocaml-runtime"
12makedepends="ncurses ocaml ocaml-compiler-libs ocaml-findlib ocaml-topkg ocamlbuild opam"
13options="textrels" # needed for ppc64le
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 cd "$builddir"
20
21 ocaml pkg/pkg.ml build --tests true
22}
23
24check() {
25 cd "$builddir"
26
27 ocaml pkg/pkg.ml test
28}
29
30package() {
31 cd "$builddir"
32
33 opam-installer -i \
34 --prefix="$pkgdir/usr" \
35 --libdir="$pkgdir/$(ocamlc -where)" \
36 $_pkgname.install
37
38 # There's just a readme and changelog.
39 rm -Rf "$pkgdir"/usr/doc
40
41 # Remove annotation files and sources.
42 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
43 rm -f *.cmt* *.ml
44}
45
46dev() {
47 default_dev
48 depends="$pkgname=$pkgver-r$pkgrel"
49 local sitelib="usr/lib/ocaml/$_pkgname"
50
51 cd "$pkgdir"/$sitelib
52
53 mkdir -p "$subpkgdir"/$sitelib
54 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
55}
56
57sha512sums="e760c4504519744b66655be113676cb6e3f016fc8a5c59dca063365223d5d5efc66be3ff2b7a2ad3a745975d1b0aaf37634af699d1a706d3bf3b37c1671e81e3 ocaml-react-1.2.1.tar.gz"
diff --git a/unmaintained/ocaml-reactivedata/APKBUILD b/unmaintained/ocaml-reactivedata/APKBUILD
new file mode 100644
index 0000000000..0838789059
--- /dev/null
+++ b/unmaintained/ocaml-reactivedata/APKBUILD
@@ -0,0 +1,47 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-reactivedata
4_pkgname=reactiveData
5pkgver=0.2.1
6pkgrel=2
7pkgdesc="FRP with incremental changes in data structures for OCaml"
8url="https://github.com/ocsigen/reactiveData/"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="LGPL-2.1-or-later-WITH-linking-exception"
11depends="ocaml-react ocaml-runtime"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13makedepends="ocaml ocaml-findlib ocaml-react-dev ocamlbuild opam"
14options="!check" # no tests provided
15subpackages="$pkgname-dev"
16source="$pkgname-$pkgver.tar.gz::https://github.com/ocsigen/$_pkgname/archive/$pkgver.tar.gz"
17builddir="$srcdir/$_pkgname-$pkgver"
18
19build() {
20 cd "$builddir"
21 make
22}
23
24package() {
25 cd "$builddir"
26
27 opam-installer -i \
28 --prefix="$pkgdir/usr" \
29 --libdir="$pkgdir/usr/lib/ocaml" \
30 --docdir="$builddir/.omit" \
31 $_pkgname.install
32
33 # Remove annotation files.
34 rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
35}
36
37dev() {
38 local sitelib="usr/lib/ocaml/$_pkgname"
39 default_dev
40
41 cd "$pkgdir"/$sitelib
42
43 mkdir -p "$subpkgdir"/$sitelib
44 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
45}
46
47sha512sums="e4dad870fd1f669566394d9c2ab52665a3d27f6b2dd3807dba245d89ca90eda08b98b266fb0795bcfa5cb4ffed7a86aa719f8db5c316b0d920ee3c342493d029 ocaml-reactivedata-0.2.1.tar.gz"
diff --git a/unmaintained/ocaml-result/APKBUILD b/unmaintained/ocaml-result/APKBUILD
new file mode 100644
index 0000000000..a2e1308424
--- /dev/null
+++ b/unmaintained/ocaml-result/APKBUILD
@@ -0,0 +1,47 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-result
4_pkgname=result
5pkgver=1.4
6pkgrel=1
7pkgdesc="Compat result type"
8url="https://github.com/janestreet/result"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml
10license="BSD-3-Clause"
11depends="ocaml-runtime"
12makedepends="dune ocaml ocaml-findlib opam"
13options="!check" # no tests provided
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/janestreet/$_pkgname/archive/$pkgver/result-$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 jbuilder build @install
20}
21
22package() {
23 mkdir -p "$pkgdir"/usr/lib/ocaml
24 jbuilder install \
25 --destdir="$pkgdir" \
26 --prefix=/usr \
27 --libdir=/usr/lib/ocaml
28
29 # Remove annotation files.
30 rm "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt
31
32 # Contains just a readme and changelog.
33 rm -Rf "$pkgdir"/usr/doc
34}
35
36dev() {
37 default_dev
38 depends="$pkgname=$pkgver-r$pkgrel"
39 local sitelib="usr/lib/ocaml/$_pkgname"
40
41 cd "$pkgdir"/$sitelib
42
43 mkdir -p "$subpkgdir"/$sitelib
44 mv *.cmx *.cmxa *.ml "$subpkgdir"/$sitelib/
45}
46
47sha512sums="2e709fee6ceb54463c3989a90aed351c5b48f7a5edce9ccbba4d163cbfb795a19393be0d75885e762d4609961a64e273bb298b94bd3858dc2c20de9396b655d3 ocaml-result-1.4.tar.gz"
diff --git a/unmaintained/ocaml-sedlex/APKBUILD b/unmaintained/ocaml-sedlex/APKBUILD
new file mode 100644
index 0000000000..de06ee30a7
--- /dev/null
+++ b/unmaintained/ocaml-sedlex/APKBUILD
@@ -0,0 +1,63 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-sedlex
4_pkgname=sedlex
5pkgver=1.99.4
6pkgrel=1
7pkgdesc="An OCaml lexer generator for Unicode"
8url="https://github.com/alainfrisch/sedlex"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="ocaml-gen
12 ocaml-migrate-parsetree
13 ocaml-ppx_tools_versioned
14 ocaml-runtime
15 "
16makedepends="
17 ocaml
18 ocaml-compiler-libs
19 ocaml-findlib
20 ocaml-gen-dev
21 ocaml-migrate-parsetree-dev
22 ocaml-ppx_tools_versioned-dev
23 "
24subpackages="$pkgname-dev"
25source="https://github.com/alainfrisch/sedlex/archive/v$pkgver/$_pkgname-$pkgver.tar.gz
26 dont-build-doc.patch
27 "
28builddir="$srcdir/$_pkgname-$pkgver"
29
30build() {
31 cd "$builddir"
32 make all opt
33}
34
35check() {
36 cd "$builddir"/examples
37 make test
38}
39
40package() {
41 cd "$builddir"
42
43 export DESTDIR="$pkgdir"
44 export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
45
46 mkdir -p "$OCAMLFIND_DESTDIR"
47 make install
48}
49
50dev() {
51 default_dev
52
53 depends="$pkgname=$pkgver-r$pkgrel"
54 local sitelib="usr/lib/ocaml/$_pkgname"
55
56 mkdir -p "$subpkgdir"/$sitelib
57
58 cd "$pkgdir"/$sitelib
59 mv *.cmx *.cmxa "$subpkgdir"/$sitelib/
60}
61
62sha512sums="83bddb03e25b015bc71fb59e3b0e0e097e899c681c8033663c17936f28fde8599a82eaab9c26eafd645c401c106e65fcf173d9fb889eb8999eb1b064ff8b6149 sedlex-1.99.4.tar.gz
63c74c51dc02596e9fbdcb18ab3aa1e0ea1bbd2361d445c74e4dea4fceb0310435bda00772272bbded338d2afb35adb819753ddd87c3b4ada28b7c77ea7414f5a5 dont-build-doc.patch"
diff --git a/unmaintained/ocaml-sedlex/dont-build-doc.patch b/unmaintained/ocaml-sedlex/dont-build-doc.patch
new file mode 100644
index 0000000000..6ee1f00677
--- /dev/null
+++ b/unmaintained/ocaml-sedlex/dont-build-doc.patch
@@ -0,0 +1,11 @@
1--- a/Makefile
2+++ b/Makefile
3@@ -10,7 +10,7 @@
4 .PHONY: all opt clean test install package
5
6 all:
7- (cd src/lib && $(MAKE) all doc)
8+ (cd src/lib && $(MAKE) all)
9 (cd src/syntax && $(MAKE) all)
10
11 opt:
diff --git a/unmaintained/ocaml-tyxml/APKBUILD b/unmaintained/ocaml-tyxml/APKBUILD
new file mode 100644
index 0000000000..5540c51186
--- /dev/null
+++ b/unmaintained/ocaml-tyxml/APKBUILD
@@ -0,0 +1,77 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-tyxml
4_pkgname=tyxml
5pkgver=4.2.0
6pkgrel=2
7pkgdesc="OCaml library for building statically correct HTML and SVG documents"
8url="https://ocsigen.org/tyxml/"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="LGPL-2.1-or-later"
11depends="ocaml-runtime ocaml-re ocaml-uchar ocaml-uutf"
12depends_dev="$pkgname=$pkgver-r$pkgrel $pkgname-ppx=$pkgver-r$pkgrel"
13makedepends="
14 ocaml
15 ocaml-compiler-libs
16 ocaml-ocamldoc
17 ocaml-findlib
18 ocaml-markup-dev
19 ocaml-migrate-parsetree-dev
20 ocaml-ocamlbuild-dev
21 ocaml-ppx_tools_versioned-dev
22 ocaml-re-dev
23 ocaml-uchar-dev
24 ocaml-uutf-dev
25 ocamlbuild
26 "
27options="!check" # requires additional dependencies
28subpackages="$pkgname-dev $pkgname-ppx"
29source="$pkgname-$pkgver.tar.gz::https://github.com/ocsigen/$_pkgname/archive/$pkgver.tar.gz"
30builddir="$srcdir/$_pkgname-$pkgver"
31
32_sitelib="usr/lib/ocaml/$_pkgname"
33
34build() {
35 cd "$builddir"
36
37 # --disable-syntax - Camlp4-based syntax is deprecated
38 ./configure \
39 --destdir="$pkgdir" \
40 --prefix=/usr \
41 --disable-syntax \
42 --disable-tests
43 make
44}
45
46package() {
47 cd "$builddir"
48
49 mkdir -p "$pkgdir"/usr/lib/ocaml
50 make install OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
51
52 # Remove annotation files and sources.
53 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
54 rm -f *.annot *.cmt* *.ml
55}
56
57dev() {
58 default_dev
59
60 cd "$pkgdir"/$_sitelib
61 _mv *.cmx *.cmxa *.mli "$subpkgdir"/$_sitelib/
62}
63
64ppx() {
65 pkgdesc="$pkgdesc (ppx syntax extension)"
66 depends="$pkgname=$pkgver-r$pkgrel ocaml-markup ocaml-ppx_tools_versioned"
67
68 _mv "$pkgdir"/$_sitelib/ppx_* "$subpkgdir"/$_sitelib/
69}
70
71_mv() {
72 local dest; for dest; do true; done # get last argument
73 mkdir -p "$dest"
74 mv "$@"
75}
76
77sha512sums="555df1fdf5eb30592a3bd93b7d08345964b1cd6e16c2f746ef777cb3c5fc9a31dddf316432e0457d317eaf7728c5d1156982956169a7b1eb9b660eedcf89ca58 ocaml-tyxml-4.2.0.tar.gz"
diff --git a/unmaintained/ocaml-uchar/APKBUILD b/unmaintained/ocaml-uchar/APKBUILD
new file mode 100644
index 0000000000..7f1297e1df
--- /dev/null
+++ b/unmaintained/ocaml-uchar/APKBUILD
@@ -0,0 +1,44 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3#
4# NOTE: This is just a dummy module to satisfy dependencies, uchar is provided
5# directly by ocaml since 4.03.
6pkgname=ocaml-uchar
7_pkgname=uchar
8pkgver=0.0.2
9pkgrel=1
10pkgdesc="Compatibility library for OCaml's Uchar module"
11url="https://github.com/ocaml/uchar"
12arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
13license="LGPL-2.1-WITH-linking-exception"
14depends="ocaml-runtime"
15depends_dev="$pkgname=$pkgver-r$pkgrel"
16makedepends="ocaml ocamlbuild opam"
17options="!check" # no tests provided
18subpackages="$pkgname-dev"
19source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/uchar/archive/v$pkgver.tar.gz"
20builddir="$srcdir/$_pkgname-$pkgver"
21
22build() {
23 cd "$builddir"
24
25 ocaml pkg/build.ml \
26 native=true \
27 native-dynlink=true
28}
29
30package() {
31 cd "$builddir"
32
33 opam-installer -i \
34 --prefix="$pkgdir/usr" \
35 --libdir="$pkgdir/usr/lib/ocaml" \
36 $_pkgname.install
37}
38
39dev() {
40 default_dev
41 mkdir -p "$subpkgdir"/usr/lib/ocaml/$_pkgname
42}
43
44sha512sums="487a9706cf9dfc9b9c94442a51766cc211687d6ebcb4dd3c94d09cb1ed6d7fd61e966e91a4121fe2d1681b2fd6bfee9079d3bccccdb6d65ba2111524ab5dd1bc ocaml-uchar-0.0.2.tar.gz"
diff --git a/unmaintained/ocaml-uutf/APKBUILD b/unmaintained/ocaml-uutf/APKBUILD
new file mode 100644
index 0000000000..558d118fdd
--- /dev/null
+++ b/unmaintained/ocaml-uutf/APKBUILD
@@ -0,0 +1,57 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-uutf
4_pkgname=uutf
5pkgver=1.0.1
6pkgrel=2
7pkgdesc="Non-blocking streaming Unicode codec for OCaml"
8url="https://github.com/dbuenzli/uutf"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="ISC"
11depends="ocaml-uchar"
12depends_dev="$pkgname=$pkgver-r$pkgrel"
13makedepends="
14 ocaml
15 ocaml-compiler-libs
16 ocaml-cmdliner-dev
17 ocaml-findlib
18 ocaml-result-dev
19 ocaml-topkg-dev
20 ocaml-uchar-dev
21 ocamlbuild
22 opam
23 "
24options="!check" # FXIME: needs ocaml-topkg-care
25subpackages="$pkgname-dev"
26source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz"
27builddir="$srcdir/$_pkgname-$pkgver"
28
29build() {
30 cd "$builddir"
31 ocaml pkg/pkg.ml build
32}
33
34package() {
35 cd "$builddir"
36
37 opam-installer -i \
38 --prefix="$pkgdir/usr" \
39 --libdir="$pkgdir/usr/lib/ocaml" \
40 --docdir="$builddir/.omit" \
41 $_pkgname.install
42
43 # Remove annotation files.
44 rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
45}
46
47dev() {
48 local sitelib="usr/lib/ocaml/$_pkgname"
49 default_dev
50
51 cd "$pkgdir"/$sitelib
52
53 mkdir -p "$subpkgdir"/$sitelib
54 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
55}
56
57sha512sums="803ea3306f977bbe937233b02b86f5dbd80b031e32b627be038b5caa60ed84df26efb896910025d7cc0addbff9a3d33b0ccce76fe3ebc5aaabf34f99c2637937 ocaml-uutf-1.0.1.tar.gz"
diff --git a/unmaintained/ocaml-wtf8/APKBUILD b/unmaintained/ocaml-wtf8/APKBUILD
new file mode 100644
index 0000000000..e256229502
--- /dev/null
+++ b/unmaintained/ocaml-wtf8/APKBUILD
@@ -0,0 +1,50 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-wtf8
4_pkgname=wtf8
5pkgver=1.0.2
6pkgrel=1
7pkgdesc="An ocaml library that implements a WTF-8 encoder and decoder"
8url="https://github.com/flowtype/ocaml-wtf8"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="MIT"
11depends="ocaml-runtime"
12makedepends="dune ocaml ocaml-findlib opam"
13options="!check" # no tests provided
14subpackages="$pkgname-dev"
15source="https://github.com/flowtype/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
16
17build() {
18 dune build @install
19}
20
21package() {
22 mkdir -p "$pkgdir"/usr/lib/ocaml
23 dune install \
24 --destdir="$pkgdir" \
25 --prefix=/usr \
26 --libdir=/usr/lib/ocaml
27
28 # There's just a readme and changelog.
29 rm -Rf "$pkgdir"/usr/doc
30
31 # Remove annotation files and sources.
32 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
33 rm -f *.cmt* *.ml
34
35 chmod +x *.cmxs
36}
37
38dev() {
39 default_dev
40
41 depends="$pkgname=$pkgver-r$pkgrel"
42 local sitelib="usr/lib/ocaml/$_pkgname"
43
44 mkdir -p "$subpkgdir"/$sitelib
45
46 cd "$pkgdir"/$sitelib
47 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
48}
49
50sha512sums="3e7a65e0085a84648e4758faf6873a7b6d037d0e45ac6be3f545b0ab9676287a31b803d5ceb0d93f8f34b771dd80b7b8770af06227a2ebfc8e0a9f12d21a7215 ocaml-wtf8-1.0.2.tar.gz"
diff --git a/unmaintained/ocaml-yojson/APKBUILD b/unmaintained/ocaml-yojson/APKBUILD
new file mode 100644
index 0000000000..75417523fc
--- /dev/null
+++ b/unmaintained/ocaml-yojson/APKBUILD
@@ -0,0 +1,53 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-yojson
4_pkgname=yojson
5pkgver=1.4.1
6pkgrel=4
7pkgdesc="JSON parsing and pretty-printing library for OCaml"
8url="https://github.com/mjambon/yojson"
9arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
10license="BSD-3-Clause"
11depends="ocaml-runtime ocaml-biniou ocaml-easy-format"
12depends_dev="$pkgname=$pkgver-r$pkgrel ocaml-biniou-dev ocaml-easy-format-dev"
13makedepends="$depends_dev dune ocaml ocaml-cppo ocaml-findlib opam"
14subpackages="$pkgname-dev"
15source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17
18build() {
19 jbuilder build @install
20}
21
22check() {
23 jbuilder runtest
24}
25
26package() {
27 mkdir -p "$pkgdir"/usr/lib/ocaml
28 jbuilder install \
29 --destdir="$pkgdir"/usr \
30 --libdir="$pkgdir"/usr/lib/ocaml
31
32 # There's just a readme and changelog.
33 rm -Rf "$pkgdir"/usr/doc
34
35 # Don't package ydump tool for now.
36 rm -Rf "$pkgdir"/usr/bin
37
38 # Remove annotation files and sources.
39 cd "$pkgdir"/usr/lib/ocaml/$_pkgname
40 rm -f *.cmt* *.ml
41}
42
43dev() {
44 local sitelib="usr/lib/ocaml/$_pkgname"
45 default_dev
46
47 cd "$pkgdir"/$sitelib
48
49 mkdir -p "$subpkgdir"/$sitelib
50 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
51}
52
53sha512sums="9175f2a26993467e587a44ef8af9dba767370536204f0ec56196769c206f92edc27bdfa89b543f90ed33c8a9abaad3342b5296ac5e49d3d7a27561c1cce818d0 ocaml-yojson-1.4.1.tar.gz"
diff --git a/unmaintained/ocaml-zed/APKBUILD b/unmaintained/ocaml-zed/APKBUILD
new file mode 100644
index 0000000000..ccdfa1d11d
--- /dev/null
+++ b/unmaintained/ocaml-zed/APKBUILD
@@ -0,0 +1,54 @@
1# Contributor: Jakub Jirutka <jakub@jirutka.cz>
2# Maintainer:
3pkgname=ocaml-zed
4_pkgname=zed
5pkgver=1.6
6pkgrel=3
7pkgdesc="Abstract engine for text edition in OCaml"
8url="https://github.com/diml/zed"
9# x86, armhf, s390x, mips, mips64: limited by ocaml aport
10arch="all !x86 !armhf !armv7 !s390x !mips !mips64"
11license="BSD-3-Clause"
12depends="ocaml-runtime"
13makedepends="dune ocaml ocaml-compiler-libs ocaml-camomile-dev ocaml-findlib
14 ocaml-react-dev opam"
15options="!check" # no tests provided
16subpackages="$pkgname-dev"
17source="$pkgname-$pkgver.tar.bz2::https://github.com/diml/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tbz"
18builddir="$srcdir/$_pkgname-$pkgver"
19
20build() {
21 cd "$builddir"
22 jbuilder build @install
23}
24
25package() {
26 cd "$builddir"
27
28 mkdir -p "$pkgdir"/usr/lib/ocaml
29 jbuilder install \
30 --destdir="$pkgdir/usr" \
31 --libdir="$pkgdir/usr/lib/ocaml"
32
33 cd "$pkgdir"
34
35 # There's just a readme and changelog.
36 rm -Rf usr/doc
37
38 # Remove annotation files and sources.
39 rm -Rf usr/lib/ocaml/$_pkgname/*.cmt*
40 rm -Rf usr/lib/ocaml/$_pkgname/*.ml
41}
42
43dev() {
44 default_dev
45 depends="$pkgname=$pkgver-r$pkgrel"
46 local sitelib="usr/lib/ocaml/$_pkgname"
47
48 cd "$pkgdir"/$sitelib
49
50 mkdir -p "$subpkgdir"/$sitelib
51 mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
52}
53
54sha512sums="e2fa279697a4d01431a7108c07bcbfcebb50ec175da2da5f460ce5d5241f6695e868b49dcdb2c7c944c3a38be891e1f9a97477384cb3663d5615b9a71de357dd ocaml-zed-1.6.tar.bz2"