Skip to content
Snippets Groups Projects
Commit 16e08294 authored by rubicon's avatar rubicon Committed by alice
Browse files

testing/ocaml-uutf: move from unmaintained

as depends for ocaml-markup
parent 5bbfbd19
No related branches found
No related tags found
1 merge request!34403testing/ocaml-*: upgrade Reason ML, add OCamlnet and LablGtk3
......@@ -2,56 +2,65 @@
# Maintainer:
pkgname=ocaml-uutf
_pkgname=uutf
pkgver=1.0.1
pkgrel=2
pkgver=1.0.3
pkgrel=0
pkgdesc="Non-blocking streaming Unicode codec for OCaml"
url="https://github.com/dbuenzli/uutf"
arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
url="https://erratique.ch/software/uutf"
arch="all !riscv64" # limited by ocaml aport
license="ISC"
depends="ocaml-uchar"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="
ocaml
ocaml-compiler-libs
ocaml-cmdliner-dev
ocaml-findlib
ocaml-result-dev
ocaml-topkg-dev
ocaml-uchar-dev
ocamlbuild
opam
ocaml-topkg
ocaml-cmdliner-dev
cmd:opam-installer
"
options="!check" # FXIME: needs ocaml-topkg-care
options="!check"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.bz2::https://erratique.ch/software/uutf/releases/uutf-$pkgver.tbz"
builddir="$srcdir/$_pkgname-$pkgver"
_ocamldir=usr/lib/ocaml
# 32-bit archs
case "$CARCH" in
arm*|x86) options="$options textrels" ;;
esac
build() {
cd "$builddir"
ocaml pkg/pkg.ml build
ocaml pkg/pkg.ml build \
--with-cmdliner true
}
package() {
cd "$builddir"
opam-installer -i \
--prefix="$pkgdir/usr" \
--libdir="$pkgdir/usr/lib/ocaml" \
--libdir="$pkgdir/$_ocamldir" \
--docdir="$builddir/.omit" \
$_pkgname.install
# Remove annotation files.
rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
}
dev() {
local sitelib="usr/lib/ocaml/$_pkgname"
default_dev
cd "$pkgdir"/$sitelib
cd "$pkgdir"
mkdir -p "$subpkgdir"/$sitelib
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
local path; for path in $(find $_ocamldir \( \
-name '*.cmt' -o \
-name '*.cmti' -o \
-name '*.cmx' -o \
-name '*.cmxa' -o \
-name '*.ml' -o \
-name '*.mli' \
\))
do
amove "$path"
done
}
sha512sums="803ea3306f977bbe937233b02b86f5dbd80b031e32b627be038b5caa60ed84df26efb896910025d7cc0addbff9a3d33b0ccce76fe3ebc5aaabf34f99c2637937 ocaml-uutf-1.0.1.tar.gz"
sha512sums="
50cc4486021da46fb08156e9daec0d57b4ca469b07309c508d5a9a41e9dbcf1f32dec2ed7be027326544453dcaf9c2534919395fd826dc7768efc6cc4bfcc9f8 ocaml-uutf-1.0.3.tar.bz2
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment