X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx12.valuehost.ru (mx12.valuehost.ru [217.112.42.215]) by lists.alpinelinux.org (Postfix) with ESMTP id 53D40F831B7 for ; Fri, 22 Feb 2019 13:25:11 +0000 (UTC) Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx12.valuehost.ru (Postfix) with ESMTP id 9328258711 for ; Fri, 22 Feb 2019 16:25:10 +0300 (MSK) From: alpine-mips-patches Date: Fri, 22 Feb 2019 12:53:47 +0000 Subject: [alpine-aports] [PATCH 5/x] testing/ocaml-camlp5: new aport To: alpine-aports@lists.alpinelinux.org Message-Id: <20190222132510.9328258711@mx12.valuehost.ru> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: This is an indirect prerequisite (via coq) for CompCert. It is for temporary use only as coq-8.10 (currently in development) will drop the camlp5 dependency. Tested with ocaml-4.07.1 only. --- testing/ocaml-camlp5/APKBUILD | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testing/ocaml-camlp5/APKBUILD diff --git a/testing/ocaml-camlp5/APKBUILD b/testing/ocaml-camlp5/APKBUILD new file mode 100644 index 0000000000..cf39012760 --- /dev/null +++ b/testing/ocaml-camlp5/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: alpine-mips-patches +# Maintainer: alpine-mips-patches +pkgname=ocaml-camlp5 +_pkgname=camlp5 +pkgver=7.07 +_pkgver="rel707" +pkgrel=0 +pkgdesc="Preprocessor-pretty-printer of OCaml" +url="https://camlp5.github.io" +arch="aarch64 ppc64le x86_64" # reflect ocaml aport platforms +license="BSD" +depends="ocaml-runtime" +makedepends="ocaml ocaml-compiler-libs" +options="!check" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$_pkgver.tar.gz::https://github.com/camlp5/$_pkgname/archive/$_pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$_pkgver" + +build() { + cd "$builddir" + ./configure \ + --prefix /usr \ + --bindir /usr/bin \ + --libdir /usr/lib/ocaml \ + --mandir /usr/share/man + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +dev() { + # mkcamlp5* call ocamlc + depends="$pkgname=$pkgver-r$pkgrel ocaml ocaml-compiler-libs" + pkgdesc="$pkgdesc (development files)" + + local _bindir="usr/bin" + mkdir -p "$subpkgdir/$_bindir" + mv "$pkgdir/$_bindir/"mkcamlp5* "$subpkgdir/$_bindir" + + local _camlp5dir="usr/lib/ocaml/camlp5" + mkdir -p "$subpkgdir/$_camlp5dir" + for p in '*.a' '*.cmx' '*.cmxa' '*.mli' '*.o'; do + mv "$pkgdir/$_camlp5dir/"$p "$subpkgdir/$_camlp5dir" + done +} + +sha512sums="e396c109c67383ba56f3ada43f5b5ece8b2339528553802386a1d9637a151a14d7dfc48c0a4219b24ca53fad7acfddfd4dc2c1fe109ced8b71f16202b94b8cf6 ocaml-camlp5-rel707.tar.gz" -- 2.20.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---