mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-07 06:17:14 +02:00
community/ocaml-camlp4: add -dev subpkg
This commit is contained in:
parent
8530b1bd92
commit
20e66fe784
@ -10,7 +10,7 @@ arch="x86_64 ppc64le"
|
|||||||
license="GPL"
|
license="GPL"
|
||||||
depends_dev="lablgtk gtk+-dev gtkspell-dev librsvg-dev gtksourceview2-dev"
|
depends_dev="lablgtk gtk+-dev gtkspell-dev librsvg-dev gtksourceview2-dev"
|
||||||
depends="ocaml-findlib ocaml-camlp4 ocaml"
|
depends="ocaml-findlib ocaml-camlp4 ocaml"
|
||||||
makedepends="$depends $depends_dev"
|
makedepends="$depends $depends_dev ocaml-camlp4-dev"
|
||||||
subpackages="$pkgname-doc $pkgname-dev"
|
subpackages="$pkgname-doc $pkgname-dev"
|
||||||
source="https://forge.ocamlcore.org/frs/download.php/1627/lablgtk-$pkgver.tar.gz"
|
source="https://forge.ocamlcore.org/frs/download.php/1627/lablgtk-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/lablgtk-$pkgver"
|
builddir="$srcdir/lablgtk-$pkgver"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Contributor: Jon Ong <jonongjs@rottenmage.com>
|
# Contributor: Jon Ong <jonongjs@rottenmage.com>
|
||||||
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||||
# Maintainer: Anil Madhavapeddy <anil@recoil.org>
|
# Maintainer: Anil Madhavapeddy <anil@recoil.org>
|
||||||
pkgname=ocaml-camlp4
|
pkgname=ocaml-camlp4
|
||||||
_pkgname=camlp4
|
_pkgname=camlp4
|
||||||
@ -12,9 +13,11 @@ url="https://github.com/ocaml/camlp4/releases"
|
|||||||
arch="all !x86 !armhf !s390x" # ocaml not avail on excluded platforms
|
arch="all !x86 !armhf !s390x" # ocaml not avail on excluded platforms
|
||||||
license="LGPL-2.0-or-later-WITH-linking-exception"
|
license="LGPL-2.0-or-later-WITH-linking-exception"
|
||||||
depends="ocaml"
|
depends="ocaml"
|
||||||
|
depends_dev="$pkgname=$pkgver-r$pkgrel"
|
||||||
makedepends="ocamlbuild"
|
makedepends="ocamlbuild"
|
||||||
replaces="camlp4" # for backward compatibility
|
replaces="camlp4" # for backward compatibility
|
||||||
provides="camlp4=$pkgver-r$pkgrel" # for backward compatibility
|
provides="camlp4=$pkgver-r$pkgrel" # for backward compatibility
|
||||||
|
subpackages="$pkgname-dev"
|
||||||
source="$_pkgname-$_pkgver.tar.gz::https://github.com/ocaml/$_pkgname/archive/$_pkgver.tar.gz"
|
source="$_pkgname-$_pkgver.tar.gz::https://github.com/ocaml/$_pkgname/archive/$_pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pkgname-${_pkgver/+/-}"
|
builddir="$srcdir/$_pkgname-${_pkgver/+/-}"
|
||||||
|
|
||||||
@ -34,4 +37,22 @@ package() {
|
|||||||
install install-META
|
install install-META
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dev() {
|
||||||
|
default_dev
|
||||||
|
replaces="camlp4" # for backward compatibility
|
||||||
|
local sitelib="usr/lib/ocaml/$_pkgname"
|
||||||
|
|
||||||
|
cd "$pkgdir"
|
||||||
|
|
||||||
|
mkdir -p "$subpkgdir"/usr
|
||||||
|
mv usr/bin "$subpkgdir"/usr/
|
||||||
|
|
||||||
|
local path
|
||||||
|
for path in $(find $sitelib/ -name '*.cmx' -o -name '*.cmxa'); do
|
||||||
|
mkdir -p "$subpkgdir"/${path%/*}
|
||||||
|
mv "$path" "$subpkgdir"/${path%/*}/
|
||||||
|
done
|
||||||
|
rmdir "$subpkgdir"/$sitelib 2>/dev/null || true
|
||||||
|
}
|
||||||
|
|
||||||
sha512sums="7db8eebcf3d230f60650ba62d9cb630c069394237e97b678a40b61d3dcaded752a2b7e089a50ff528f1ea0740d0291b722df123a072f2cee489cadc5201c6776 camlp4-4.04+1.tar.gz"
|
sha512sums="7db8eebcf3d230f60650ba62d9cb630c069394237e97b678a40b61d3dcaded752a2b7e089a50ff528f1ea0740d0291b722df123a072f2cee489cadc5201c6776 camlp4-4.04+1.tar.gz"
|
||||||
|
@ -8,7 +8,7 @@ url="https://opam.ocaml.org"
|
|||||||
arch="all !x86 !armhf !s390x" # ocaml not avail on excluded platforms
|
arch="all !x86 !armhf !s390x" # ocaml not avail on excluded platforms
|
||||||
license="LGPL-3.0"
|
license="LGPL-3.0"
|
||||||
depends="ocaml ocaml-camlp4 curl tar unzip rsync aspcud patch"
|
depends="ocaml ocaml-camlp4 curl tar unzip rsync aspcud patch"
|
||||||
makedepends="$depends_dev"
|
makedepends="ocaml-camlp4-dev"
|
||||||
source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz
|
source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz
|
||||||
fix-default-stubsdir.patch"
|
fix-default-stubsdir.patch"
|
||||||
builddir="$srcdir/$pkgname-full-$pkgver"
|
builddir="$srcdir/$pkgname-full-$pkgver"
|
||||||
|
@ -9,7 +9,7 @@ url="https://haxe.org"
|
|||||||
arch="x86_64 aarch64 ppc64le"
|
arch="x86_64 aarch64 ppc64le"
|
||||||
license="GPL MIT LGPL" # http://haxe.org/foundation/open-source.html
|
license="GPL MIT LGPL" # http://haxe.org/foundation/open-source.html
|
||||||
depends=""
|
depends=""
|
||||||
makedepends="ocaml-camlp4 ocaml neko-dev zlib-dev pcre-dev"
|
makedepends="ocaml-camlp4-dev ocaml neko-dev zlib-dev pcre-dev"
|
||||||
options="!strip !makeflags"
|
options="!strip !makeflags"
|
||||||
install=""
|
install=""
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
|
Loading…
Reference in New Issue
Block a user