diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-07-07 20:02:16 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-07-07 19:54:35 +0200 |
commit | b32f93271626ebd7c98407057024935c166cb614 (patch) | |
tree | c8a0e635d25eb7d5de4048cc695313c2f2db4eb3 /testing/ocaml-sedlex | |
parent | 62ea0e29b5f7e22fc685df1748ca8fa2802dcd1f (diff) | |
download | aports-b32f93271626ebd7c98407057024935c166cb614.tar.bz2 aports-b32f93271626ebd7c98407057024935c166cb614.tar.xz |
testing/ocaml-sedlex: new aport
https://github.com/alainfrisch/sedlex
An OCaml lexer generator for Unicode
Diffstat (limited to 'testing/ocaml-sedlex')
-rw-r--r-- | testing/ocaml-sedlex/APKBUILD | 63 | ||||
-rw-r--r-- | testing/ocaml-sedlex/dont-build-doc.patch | 11 |
2 files changed, 74 insertions, 0 deletions
diff --git a/testing/ocaml-sedlex/APKBUILD b/testing/ocaml-sedlex/APKBUILD new file mode 100644 index 0000000000..4d0924f892 --- /dev/null +++ b/testing/ocaml-sedlex/APKBUILD @@ -0,0 +1,63 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ocaml-sedlex +_pkgname=sedlex +pkgver=1.99.4 +pkgrel=0 +pkgdesc="An OCaml lexer generator for Unicode" +url="https://github.com/alainfrisch/sedlex" +arch="all !x86 !armhf !s390x" # limited by ocaml aport +license="MIT" +depends="ocaml-gen + ocaml-migrate-parsetree + ocaml-ppx_tools_versioned + ocaml-runtime + " +makedepends=" + ocaml + ocaml-compiler-libs + ocaml-findlib + ocaml-gen-dev + ocaml-migrate-parsetree-dev + ocaml-ppx_tools_versioned-dev + " +subpackages="$pkgname-dev" +source="https://github.com/alainfrisch/sedlex/archive/v$pkgver/$_pkgname-$pkgver.tar.gz + dont-build-doc.patch + " +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + make all opt +} + +check() { + cd "$builddir"/examples + make test +} + +package() { + cd "$builddir" + + export DESTDIR="$pkgdir" + export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml" + + mkdir -p "$OCAMLFIND_DESTDIR" + make install +} + +dev() { + default_dev + + depends="$pkgname=$pkgver-r$pkgrel" + local sitelib="usr/lib/ocaml/$_pkgname" + + mkdir -p "$subpkgdir"/$sitelib + + cd "$pkgdir"/$sitelib + mv *.cmx *.cmxa "$subpkgdir"/$sitelib/ +} + +sha512sums="83bddb03e25b015bc71fb59e3b0e0e097e899c681c8033663c17936f28fde8599a82eaab9c26eafd645c401c106e65fcf173d9fb889eb8999eb1b064ff8b6149 sedlex-1.99.4.tar.gz +c74c51dc02596e9fbdcb18ab3aa1e0ea1bbd2361d445c74e4dea4fceb0310435bda00772272bbded338d2afb35adb819753ddd87c3b4ada28b7c77ea7414f5a5 dont-build-doc.patch" diff --git a/testing/ocaml-sedlex/dont-build-doc.patch b/testing/ocaml-sedlex/dont-build-doc.patch new file mode 100644 index 0000000000..6ee1f00677 --- /dev/null +++ b/testing/ocaml-sedlex/dont-build-doc.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -10,7 +10,7 @@ + .PHONY: all opt clean test install package + + all: +- (cd src/lib && $(MAKE) all doc) ++ (cd src/lib && $(MAKE) all) + (cd src/syntax && $(MAKE) all) + + opt: |