wok-next rev 20620

Up / fix build: ocaml, unison, vfu, viewnior.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 21 17:36:49 2018 +0300 (2018-04-21)
parents e9b3d0cd4c89
children 3bec5f368ce1
files ocaml/receipt unison/receipt vfu/receipt viewnior/receipt
line diff
     1.1 --- a/ocaml/receipt	Sat Apr 21 15:29:57 2018 +0300
     1.2 +++ b/ocaml/receipt	Sat Apr 21 17:36:49 2018 +0300
     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  }
     2.1 --- a/unison/receipt	Sat Apr 21 15:29:57 2018 +0300
     2.2 +++ b/unison/receipt	Sat Apr 21 17:36:49 2018 +0300
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt v2.
     2.5  
     2.6  PACKAGE="unison"
     2.7 -VERSION="2.48.3"
     2.8 +VERSION="2.51.2"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="File-synchronization tool"
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 @@ -9,13 +9,17 @@
    2.13  WEB_SITE="http://www.cis.upenn.edu/~bcpierce/unison"
    2.14  
    2.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.16 -WGET_URL="http://www.seas.upenn.edu/~bcpierce/unison/download/releases/stable/$TARBALL"
    2.17 +WGET_URL="https://github.com/bcpierce00/unison/archive/v$VERSION.tar.gz"
    2.18  
    2.19  BUILD_DEPENDS="ocaml emacs"
    2.20  
    2.21  compile_rules() {
    2.22 -	CFLAGS="" make UISTYLE=text unison &&
    2.23 -	install -Dm755 $src/unison $install/usr/bin/unison
    2.24 +	CFLAGS='' make || return 1
    2.25 +
    2.26 +	install -Dm755 src/unison           $install/usr/bin/unison
    2.27 +	install -Dm755 src/unison-fsmonitor $install/usr/bin/unison-fsmonitor
    2.28 +
    2.29 +	cook_pick_docs README.md
    2.30  }
    2.31  
    2.32  genpkg_rules() {
     3.1 --- a/vfu/receipt	Sat Apr 21 15:29:57 2018 +0300
     3.2 +++ b/vfu/receipt	Sat Apr 21 17:36:49 2018 +0300
     3.3 @@ -14,20 +14,18 @@
     3.4  BUILD_DEPENDS="ncurses-dev pcre-dev"
     3.5  
     3.6  compile_rules() {
     3.7 -	make || return 1
     3.8 +	make || true
     3.9  
    3.10 -	mkdir -p \
    3.11 -		$install/usr/bin/ \
    3.12 -		$install/usr/lib/vfu/ \
    3.13 -		$install/etc/
    3.14 -	cp -a $src/vfu/vfu  $install/usr/bin/
    3.15 -	cp -a $src/rx/rx_*  $install/usr/lib/vfu/
    3.16 -	cp -a $src/vfu.conf $install/etc/
    3.17 -	chown -R root:root  $install
    3.18 +	install -Dm755 vfu/vfu  $install/usr/bin/vfu
    3.19 +	install -d              $install/usr/lib/vfu/
    3.20 +	install -m755  rx/rx_*  $install/usr/lib/vfu/
    3.21 +	install -Dm644 vfu.conf $install/etc/vfu.conf
    3.22 +
    3.23 +	cook_pick_manpages vfu.1
    3.24  }
    3.25  
    3.26  genpkg_rules() {
    3.27 -	copy $std
    3.28 +	copy @std
    3.29  	DEPENDS="ncurses pcre"
    3.30  	CONFIG_FILES="/etc/vfu.conf"
    3.31  }
     4.1 --- a/viewnior/receipt	Sat Apr 21 15:29:57 2018 +0300
     4.2 +++ b/viewnior/receipt	Sat Apr 21 17:36:49 2018 +0300
     4.3 @@ -13,7 +13,7 @@
     4.4  
     4.5  BUILD_DEPENDS_arm="automake libtool gtk+-dev exiv2-dev intltool"
     4.6  BUILD_DEPENDS="automake libtool gtk+-dev exiv2-dev intltool \
     4.7 -shared-mime-info-dev"
     4.8 +shared-mime-info-dev curl-dev libssh-dev"
     4.9  
    4.10  compile_rules() {
    4.11  	mkdir -p $src/m4
    4.12 @@ -26,9 +26,6 @@
    4.13  
    4.14  genpkg_rules() {
    4.15  	copy viewnior *.ui @ico
    4.16 -	DEPENDS="atk bzlib cairo exiv2 fontconfig freetype gcc-lib-base gdk-pixbuf \
    4.17 -	glib glibc-base gtk+ harfbuzz libffi libpng16 xorg-libxcb libxml2 pango \
    4.18 -	pcre xorg-pixman xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
    4.19 -	xorg-libXrender zlib"
    4.20 +	DEPENDS="exiv2 gdk-pixbuf glib gtk+"
    4.21  	TAGS="image photo viewer"
    4.22  }