wok-next diff ocaml/receipt @ rev 20634

oxine: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 27 12:51:30 2018 +0200 (2018-04-27)
parents d43bf7aae921
children 5669e8b3be70
line diff
     1.1 --- a/ocaml/receipt	Wed Mar 21 15:58:17 2018 +0200
     1.2 +++ b/ocaml/receipt	Fri Apr 27 12:51:30 2018 +0200
     1.3 @@ -1,30 +1,32 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="ocaml"
     1.7 -VERSION="3.12.1"
     1.8 +VERSION="4.06.1"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="General-purpose programming language designed for safety and reliability"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="QPL LGPL2"
    1.13 -WEB_SITE="http://caml.inria.fr/"
    1.14 +WEB_SITE="http://ocaml.org/"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WGET_URL="${WEB_SITE}pub/distrib/$PACKAGE-${VERSION%.*}/$TARBALL"
    1.18 +WGET_URL="https://github.com/ocaml/ocaml/archive/$VERSION.tar.gz"
    1.19 +
    1.20 +BUILD_DEPENDS="xorg-libX11-dev"
    1.21  
    1.22  compile_rules() {
    1.23 -	sed -i 's|PREFIX)/man|PREFIX)/share/man|' configure
    1.24 -	grep -q true build/camlp4-targets.sh ||
    1.25 -		sed -i 's/base=.*/& || true/' build/camlp4-targets.sh
    1.26  	./configure \
    1.27 -		--prefix /usr \
    1.28 -		$(echo $CONFIGURE_ARGS | sed 's/--build=[^ ]*//' | sed 's/=/ /g') &&
    1.29 -	make -j1 world opt &&
    1.30 -	sed -i "s|^PREFIX=.*|PREFIX=$DESTDIR/usr|" config/Makefile &&
    1.31 -	make install
    1.32 +		-prefix /usr \
    1.33 +		-x11include /usr/include \
    1.34 +		&&
    1.35 +	make world.opt &&
    1.36 +	make \
    1.37 +		PREFIX=/usr \
    1.38 +		MANDIR=/usr/share/man \
    1.39 +		install
    1.40  }
    1.41  
    1.42  genpkg_rules() {
    1.43 -	copy @std
    1.44 -	DEPENDS="xorg-libX11 xorg-libXau xorg-libXdmcp"
    1.45 +	copy @std @dev
    1.46 +	DEPENDS="libbfd ncurses xorg-libX11"
    1.47  	TAGS="language programming"
    1.48  }