wok-next rev 20405

Follow BLFS Chapter 9 "General Libraries": up apr, apr-util, aspell, autoconf213 (for js), dbus-glib, enchant, exempi, fftw, glib, glibmm, gmime, gobject-introspection, gsl, js, libboost.

js is 39.7MB / 87.6MB now. Looks like it's proper time to kick off polkit (Hi, Xander! You was right.)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 07 17:39:40 2017 +0200 (2017-12-07)
parents bb53e6d98ac8
children 2d54d154d5ca
files apr-util/receipt apr/receipt apr/stuff/patches/apr-fix-configure.patch apr/stuff/patches/series aspell/receipt autoconf213/receipt dbus-glib/receipt enchant/receipt exempi/receipt fftw-dev/receipt fftw/receipt glib/receipt glibmm/receipt gmime-dev/receipt gmime/receipt gobject-introspection/receipt grantlee/receipt gsl-dev/receipt gsl/receipt js/receipt js/stuff/patches/js38-38.2.1-upstream_fixes-2.patch js/stuff/patches/series libboost/receipt
line diff
     1.1 --- a/apr-util/receipt	Thu Dec 07 14:34:32 2017 +0200
     1.2 +++ b/apr-util/receipt	Thu Dec 07 17:39:40 2017 +0200
     1.3 @@ -1,24 +1,24 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="apr-util"
     1.7 -VERSION="1.5.4"
     1.8 +VERSION="1.6.0"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="APR Library Utilities"
    1.11  MAINTAINER="lehswe@gmail.com"
    1.12  LICENSE="Apache"
    1.13  WEB_SITE="http://apr.apache.org/"
    1.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/apr-util.html"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WGET_URL="http://archive.apache.org/dist/apr/$TARBALL"
    1.18 +WGET_URL="https://archive.apache.org/dist/apr/$TARBALL"
    1.19  
    1.20  BUILD_DEPENDS="apr-dev openssl-dev gdbm-dev postgresql-dev sqlite3-dev \
    1.21  unixODBC-dev expat-dev mysql-dev openldap-dev"
    1.22  SPLIT="apr-dbd-mysql apr-dbd-odbc apr-dbd-pgsql apr-dbd-sqlite apr-crypto \
    1.23  apr-dbm-gdbm apr-util-dev"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 +compile_rules() {
    1.29 +	fix ld &&
    1.30  	./configure \
    1.31  		--prefix=/usr \
    1.32  		--with-apr=/usr \
    1.33 @@ -32,49 +32,49 @@
    1.34  	make install
    1.35  }
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 +genpkg_rules() {
    1.41  	case $PACKAGE in
    1.42  		apr-util)
    1.43 +			copy libaprutil-1.so* aprutil.exp
    1.44  			DEPENDS="apr expat util-linux-uuid"
    1.45 -			copy libaprutil-1.so* aprutil.exp
    1.46  			;;
    1.47  		apr-dbd-mysql)
    1.48 +			copy *mysql*.so
    1.49  			DEPENDS="apr-util libcrypto libmysqlclient libssl zlib"
    1.50  			CAT="libdevel|MySQL DBD driver"
    1.51 -			copy *mysql*.so
    1.52  			;;
    1.53  		apr-dbd-odbc)
    1.54 +			copy *odbc*.so
    1.55  			DEPENDS="apr-util libunixODBC"
    1.56  			CAT="libdevel|ODBC DBD driver"
    1.57 -			copy *odbc*.so
    1.58  			;;
    1.59  		apr-dbd-pgsql)
    1.60 +			copy *pgsql*.so
    1.61  			DEPENDS="apr-util libpostgresqlclient"
    1.62  			CAT="libdevel|PostgreSQL DBD driver"
    1.63 -			copy *pgsql*.so
    1.64  			;;
    1.65  		apr-dbd-sqlite)
    1.66 +			copy *sqlite*.so
    1.67  			DEPENDS="apr-util libsqlite3"
    1.68  			CAT="libdevel|SQLite DBD driver"
    1.69 -			copy *sqlite*.so
    1.70  			;;
    1.71  		apr-crypto)
    1.72 +			copy *crypto*.so
    1.73  			DEPENDS="apr-util libcrypto libssl"
    1.74  			CAT="libdevel|OpenSSL crypto plugin"
    1.75 -			copy *crypto*.so
    1.76  			;;
    1.77  		apr-dbm-gdbm)
    1.78 +			copy *dbm*.so
    1.79  			DEPENDS="apr-util gdbm"
    1.80  			CAT="libdevel|GDBM plugin"
    1.81 -			copy *dbm*.so
    1.82  			;;
    1.83  		*-dev)
    1.84  			copy @dev
    1.85 -			DEPENDS="apr-dev expat-dev gdbm-dev libcrypto-dev mysql-dev \
    1.86 -			openldap-dev openssl-dev postgresql-dev sqlite3-dev unixODBC-dev \
    1.87 -			util-linux-uuid-dev zlib-dev"
    1.88 +			DEPENDS="apr-util apr-dbd-mysql apr-dbd-odbc apr-dbd-pgsql \
    1.89 +			apr-dbd-sqlite apr-crypto apr-dbm-gdbm \
    1.90 +			apr-dev expat-dev gdbm-dev mysql-dev openldap-dev openssl-dev \
    1.91 +			postgresql-dev sqlite3-dev unixODBC-dev util-linux-uuid-dev \
    1.92 +			zlib-dev"
    1.93  			;;
    1.94  	esac
    1.95  }
     2.1 --- a/apr/receipt	Thu Dec 07 14:34:32 2017 +0200
     2.2 +++ b/apr/receipt	Thu Dec 07 17:39:40 2017 +0200
     2.3 @@ -1,23 +1,23 @@
     2.4  # SliTaz package receipt v2.
     2.5  
     2.6  PACKAGE="apr"
     2.7 -VERSION="1.5.2"
     2.8 +VERSION="1.6.2"
     2.9  CATEGORY="misc"
    2.10  SHORT_DESC="Apache Portable Runtime Library"
    2.11  MAINTAINER="lehswe@gmail.com"
    2.12  LICENSE="Apache"
    2.13  WEB_SITE="http://apr.apache.org/"
    2.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/apr.html"
    2.15  CROSS="error: cannot check for file existence when cross compiling"
    2.16  
    2.17  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.18 -WGET_URL="http://archive.apache.org/dist/apr/$TARBALL"
    2.19 +WGET_URL="https://archive.apache.org/dist/apr/$TARBALL"
    2.20  
    2.21  BUILD_DEPENDS="util-linux-uuid-dev"
    2.22  SPLIT="apr-dev"
    2.23 +COOKOPTS="skip-log-errors"
    2.24  
    2.25 -# Rules to configure and make the package.
    2.26 -compile_rules()
    2.27 -{
    2.28 +compile_rules() {
    2.29  	./configure \
    2.30  		--prefix=/usr \
    2.31  		--disable-static \
    2.32 @@ -29,9 +29,7 @@
    2.33  	make && make install
    2.34  }
    2.35  
    2.36 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.37 -genpkg_rules()
    2.38 -{
    2.39 +genpkg_rules() {
    2.40  	case $PACKAGE in
    2.41  		apr)
    2.42  			copy *.so* *.exp
    2.43 @@ -39,7 +37,7 @@
    2.44  			;;
    2.45  		apr-dev)
    2.46  			copy @dev build/
    2.47 -			DEPENDS="apr glibc-dev util-linux-uuid-dev"
    2.48 +			DEPENDS="apr util-linux-uuid-dev"
    2.49  			;;
    2.50  	esac
    2.51  }
     3.1 --- a/apr/stuff/patches/apr-fix-configure.patch	Thu Dec 07 14:34:32 2017 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,38 +0,0 @@
     3.4 ---- a/configure
     3.5 -+++ b/configure
     3.6 -@@ -14744,7 +14744,7 @@
     3.7 -    $RM out/* && rmdir out
     3.8 -    cd ..
     3.9 -    $RM -r conftest
    3.10 --   $RM conftest*
    3.11 -+   $RM conftest* 2>/dev/null
    3.12 - 
    3.13 - fi
    3.14 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
    3.15 -@@ -16030,7 +16030,7 @@
    3.16 - if ${lt_cv_archive_cmds_need_lc+:} false; then :
    3.17 -   $as_echo_n "(cached) " >&6
    3.18 - else
    3.19 --  $RM conftest*
    3.20 -+  $RM conftest* 2>/dev/null
    3.21 - 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    3.22 - 
    3.23 - 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    3.24 -@@ -17744,7 +17744,7 @@
    3.25 - 
    3.26 - 
    3.27 -         # get libtool's setting of shlibpath_var
    3.28 --        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
    3.29 -+        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool 2>/dev/null`
    3.30 -         if test "x$shlibpath_var" = "x"; then
    3.31 -             shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
    3.32 -         fi
    3.33 -@@ -30203,7 +30203,7 @@
    3.34 - 
    3.35 -     cfgfile="${ofile}T"
    3.36 -     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    3.37 --    $RM "$cfgfile"
    3.38 -+    $RM "$cfgfile" 2>/dev/null
    3.39 - 
    3.40 -     cat <<_LT_EOF >> "$cfgfile"
    3.41 - #! $SHELL
     4.1 --- a/apr/stuff/patches/series	Thu Dec 07 14:34:32 2017 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,1 +0,0 @@
     4.4 -apr-fix-configure.patch
     5.1 --- a/aspell/receipt	Thu Dec 07 14:34:32 2017 +0200
     5.2 +++ b/aspell/receipt	Thu Dec 07 17:39:40 2017 +0200
     5.3 @@ -7,7 +7,7 @@
     5.4  MAINTAINER="paul@slitaz.org"
     5.5  LICENSE="LGPL2"
     5.6  WEB_SITE="http://aspell.net/"
     5.7 -TAGS="spell check"
     5.8 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/aspell.html"
     5.9  HOST_ARCH="i486 arm"
    5.10  
    5.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.12 @@ -16,24 +16,31 @@
    5.13  BUILD_DEPENDS="perl gettext ncurses-dev"
    5.14  SPLIT="aspell-dev"
    5.15  
    5.16 -# Rules to configure and make the package.
    5.17 -compile_rules()
    5.18 -{
    5.19 -	./configure $CONFIGURE_ARGS && make && make install
    5.20 +compile_rules() {
    5.21 +	# fix some problems identified by gcc7:
    5.22 +	sed -i '/ top.do_check ==/s/top.do_check/*&/' modules/filter/tex.cpp
    5.23 +	sed -i '/word ==/s/word/*&/'                  prog/check_funs.cpp
    5.24 +
    5.25 +	./configure $CONFIGURE_ARGS && make && make install || return 1
    5.26  
    5.27  	ln -svfn aspell-0.60 $install/usr/lib/aspell
    5.28 +
    5.29  	docdir="$install/usr/share/doc/aspell-$VERSION"
    5.30 -	install -v -m755 -d $docdir/aspell.html &&
    5.31 -	install -v -m755 -d $docdir/aspell-dev.html &&
    5.32 -	install -v -m644 manual/aspell.html/*		$docdir/aspell.html &&
    5.33 -	install -v -m644 manual/aspell-dev.html/*	$docdir/aspell-dev.html
    5.34 +	install -v -m755 -d $docdir/aspell.html
    5.35 +	install -v -m755 -d $docdir/aspell-dev.html
    5.36 +	install -v -m644 manual/aspell.html/*     $docdir/aspell.html
    5.37 +	install -v -m644 manual/aspell-dev.html/* $docdir/aspell-dev.html
    5.38  }
    5.39  
    5.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.41 -genpkg_rules()
    5.42 -{
    5.43 +genpkg_rules() {
    5.44  	case $PACKAGE in
    5.45 -		aspell) 	copy @std; DEPENDS="ncurses" ;;
    5.46 -		aspell-dev) copy @dev ;;
    5.47 +		aspell)
    5.48 +			copy @std
    5.49 +			DEPENDS="ncurses"
    5.50 +			TAGS="spell check"
    5.51 +			;;
    5.52 +		*-dev)
    5.53 +			copy @dev
    5.54 +			;;
    5.55  	esac
    5.56  }
     6.1 --- a/autoconf213/receipt	Thu Dec 07 14:34:32 2017 +0200
     6.2 +++ b/autoconf213/receipt	Thu Dec 07 17:39:40 2017 +0200
     6.3 @@ -7,15 +7,14 @@
     6.4  MAINTAINER="psychomaniak@xakep.ru"
     6.5  LICENSE="GPL2"
     6.6  WEB_SITE="http://www.gnu.org/software/autoconf/"
     6.7 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/autoconf213.html"
     6.8  
     6.9 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    6.10 -WGET_URL="http://ftpmirror.gnu.org/autoconf/autoconf-$VERSION.tar.gz"
    6.11 +TARBALL="autoconf-$VERSION.tar.gz"
    6.12 +WGET_URL="http://ftpmirror.gnu.org/autoconf/$TARBALL"
    6.13  
    6.14  BUILD_DEPENDS="m4 perl sed"
    6.15  
    6.16 -# Rules to configure and make the package.
    6.17 -compile_rules()
    6.18 -{
    6.19 +compile_rules() {
    6.20  	./configure \
    6.21  		--prefix=/usr \
    6.22  		--program-suffix=-2.13 &&
    6.23 @@ -23,9 +22,7 @@
    6.24  	make prefix="$DESTDIR/usr" install
    6.25  }
    6.26  
    6.27 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.28 -genpkg_rules()
    6.29 -{
    6.30 +genpkg_rules() {
    6.31  	copy @std @dev
    6.32  	DEPENDS="m4 perl"
    6.33  }
     7.1 --- a/dbus-glib/receipt	Thu Dec 07 14:34:32 2017 +0200
     7.2 +++ b/dbus-glib/receipt	Thu Dec 07 17:39:40 2017 +0200
     7.3 @@ -7,47 +7,50 @@
     7.4  MAINTAINER="pankso@slitaz.org"
     7.5  LICENSE="GPL2"
     7.6  WEB_SITE="https://freedesktop.org/wiki/Software/DBusBindings/#dbus-glibobsoleteunmaintained"
     7.7 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/dbus-glib.html"
     7.8  HOST_ARCH="i486 arm"
     7.9  
    7.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.11  WGET_URL="http://dbus.freedesktop.org/releases/dbus-glib/$TARBALL"
    7.12  
    7.13 +BUILD_DEPENDS_arm="dbus-dev glib-dev expat-dev"
    7.14  BUILD_DEPENDS="dbus-dev glib-dev expat-dev gettext gtk-doc"
    7.15 -BUILD_DEPENDS_arm="dbus-dev glib-dev expat-dev"
    7.16  SPLIT="dbus-glib-dev"
    7.17  
    7.18 -# Handle cross compilation. Host pkg-config/gettext are used
    7.19 -case "$ARCH" in
    7.20 -	arm*)
    7.21 -		export ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} ;;
    7.22 -esac
    7.23  
    7.24 -# Rules to configure and make the package.
    7.25 -compile_rules()
    7.26 -{
    7.27 +compile_rules() {
    7.28 +	case "$ARCH" in
    7.29 +		arm*) export ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} ;;
    7.30 +	esac
    7.31 +
    7.32 +	fix ld
    7.33  	./configure \
    7.34  		--sysconfdir=/etc \
    7.35  		--disable-static \
    7.36 -		$CONFIGURE_ARGS &&
    7.37 +		--disable-bash-completion \
    7.38 +		$CONFIGURE_ARGS || return 1
    7.39 +
    7.40  	case "$ARCH" in
    7.41  		arm)
    7.42  			patch -p1 < $stuff/dbus-glib.patch &&
    7.43  			patch -p0 < $stuff/dbus.patch ;;
    7.44 -	esac &&
    7.45 +	esac
    7.46 +
    7.47 +	fix libtool
    7.48  	make && make install
    7.49  }
    7.50  
    7.51 -# Rules to gen a SliTaz package suitable for Tazpkg.
    7.52 -genpkg_rules()
    7.53 -{
    7.54 +genpkg_rules() {
    7.55  	case $PACKAGE in
    7.56  		dbus-glib)
    7.57 -			copy bin/ *.so* # exclude bash completion
    7.58 -			DEPENDS="dbus glib expat"
    7.59 +			copy @std
    7.60 +			DEPENDS="dbus expat glib"
    7.61  			;;
    7.62  		*-dev)
    7.63  			copy @dev
    7.64 -			DEPENDS="dbus-glib dbus-dev glib-dev"
    7.65 +			DEPENDS="dbus-glib dbus-dev glib-dev libffi-dev pcre-dev \
    7.66 +			util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev \
    7.67 +			zlib-dev"
    7.68  			;;
    7.69  	esac
    7.70  }
     8.1 --- a/enchant/receipt	Thu Dec 07 14:34:32 2017 +0200
     8.2 +++ b/enchant/receipt	Thu Dec 07 17:39:40 2017 +0200
     8.3 @@ -7,30 +7,22 @@
     8.4  MAINTAINER="pankso@slitaz.org"
     8.5  LICENSE="LGPL2.1"
     8.6  WEB_SITE="https://abiword.github.io/enchant/"
     8.7 -TAGS="spell check"
     8.8 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/enchant.html"
     8.9  HOST_ARCH="i486 arm"
    8.10  
    8.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.12  WGET_URL="https://github.com/AbiWord/enchant/releases/download/enchant-${VERSION//./-}/$TARBALL"
    8.13  
    8.14  BUILD_DEPENDS="glib-dev hunspell-dev aspell-dev"
    8.15 -SPLIT="enchant-aspell enchant-hunspell enchant-dev"
    8.16 +SPLIT="enchant-aspell enchant-hunspell enchant enchant-dev"
    8.17  
    8.18 -# Rules to configure and make the package.
    8.19 -compile_rules()
    8.20 -{
    8.21 -	./configure $CONFIGURE_ARGS && make && make install
    8.22 +compile_rules() {
    8.23 +	fix ld &&
    8.24 +	./configure $CONFIGURE_ARGS && fix libtool && make && make install
    8.25  }
    8.26  
    8.27 -# Rules to gen a SliTaz package suitable for Tazpkg.
    8.28 -genpkg_rules()
    8.29 -{
    8.30 +genpkg_rules() {
    8.31  	case $PACKAGE in
    8.32 -		enchant)
    8.33 -			copy @std
    8.34 -			find $fs \( -name libenchant_aspell.so -o -name libenchant_myspell.so \) -delete
    8.35 -			SUGGESTED="aspell"
    8.36 -			;;
    8.37  		enchant-aspell)
    8.38  			copy libenchant_aspell.so
    8.39  			CAT="text|aspell backend"
    8.40 @@ -41,6 +33,12 @@
    8.41  			CAT="text|hunspell backend"
    8.42  			DEPENDS="enchant hunspell"
    8.43  			;;
    8.44 +		enchant)
    8.45 +			copy @std @rm
    8.46 +			DEPENDS="glib"
    8.47 +			SUGGESTED="aspell"
    8.48 +			TAGS="spell check"
    8.49 +			;;
    8.50  		enchant-dev)
    8.51  			copy @dev
    8.52  			DEPENDS="enchant enchant-aspell enchant-hunspell aspell hunspell \
    8.53 @@ -48,4 +46,3 @@
    8.54  			;;
    8.55  	esac
    8.56  }
    8.57 -
     9.1 --- a/exempi/receipt	Thu Dec 07 14:34:32 2017 +0200
     9.2 +++ b/exempi/receipt	Thu Dec 07 17:39:40 2017 +0200
     9.3 @@ -1,12 +1,13 @@
     9.4  # SliTaz package receipt v2.
     9.5  
     9.6  PACKAGE="exempi"
     9.7 -VERSION="2.4.2"
     9.8 +VERSION="2.4.3"
     9.9  CATEGORY="utilities"
    9.10  LICENSE="GPL3"
    9.11  SHORT_DESC="An implementation of XMP (Adobe's Extensible Metadata Platform)"
    9.12  MAINTAINER="yuripourre@gmail.com"
    9.13  WEB_SITE="https://libopenraw.freedesktop.org/wiki/Exempi/"
    9.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/exempi.html"
    9.15  
    9.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    9.17  WGET_URL="https://libopenraw.freedesktop.org/download/$TARBALL"
    9.18 @@ -14,21 +15,23 @@
    9.19  BUILD_DEPENDS="expat-dev zlib-dev libboost-dev libboost-unit-test-framework"
    9.20  SPLIT="exempi-dev"
    9.21  
    9.22 -# Rules to configure and make the package.
    9.23 -compile_rules()
    9.24 -{
    9.25 +compile_rules() {
    9.26  	./configure \
    9.27  		--disable-static \
    9.28  		$CONFIGURE_ARGS &&
    9.29  	make &&
    9.30 -	make DESTDIR=$DESTDIR install
    9.31 +	make install
    9.32  }
    9.33  
    9.34 -# Rules to gen a SliTaz package suitable for Tazpkg.
    9.35 -genpkg_rules()
    9.36 -{
    9.37 +genpkg_rules() {
    9.38  	case $PACKAGE in
    9.39 -		exempi) copy @std; DEPENDS="expat zlib";;
    9.40 -		*-dev)  copy @dev; DEPENDS="expat-dev zlib-dev";;
    9.41 +		exempi)
    9.42 +			copy @std
    9.43 +			DEPENDS="expat zlib"
    9.44 +			;;
    9.45 +		*-dev)
    9.46 +			copy @dev
    9.47 +			DEPENDS="exempi expat-dev zlib-dev"
    9.48 +			;;
    9.49  	esac
    9.50  }
    10.1 --- a/fftw-dev/receipt	Thu Dec 07 14:34:32 2017 +0200
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,19 +0,0 @@
    10.4 -# SliTaz package receipt.
    10.5 -
    10.6 -PACKAGE="fftw-dev"
    10.7 -VERSION="3.3.6-pl2"
    10.8 -CATEGORY="development"
    10.9 -SHORT_DESC="A library for computing the discrete Fourier transform (DFT) \
   10.10 -(development files)"
   10.11 -MAINTAINER="jozee@slitaz.org"
   10.12 -LICENSE="GPL2"
   10.13 -WEB_SITE="http://www.fftw.org/"
   10.14 -
   10.15 -WANTED="fftw"
   10.16 -DEPENDS="fftw"
   10.17 -
   10.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
   10.19 -genpkg_rules()
   10.20 -{
   10.21 -	copy @dev
   10.22 -}
    11.1 --- a/fftw/receipt	Thu Dec 07 14:34:32 2017 +0200
    11.2 +++ b/fftw/receipt	Thu Dec 07 17:39:40 2017 +0200
    11.3 @@ -1,4 +1,4 @@
    11.4 -# SliTaz package receipt.
    11.5 +# SliTaz package receipt v2.
    11.6  
    11.7  PACKAGE="fftw"
    11.8  VERSION="3.3.6-pl2"
    11.9 @@ -7,13 +7,14 @@
   11.10  MAINTAINER="jozee@slitaz.org"
   11.11  LICENSE="GPL2"
   11.12  WEB_SITE="http://www.fftw.org/"
   11.13 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/fftw.html"
   11.14  
   11.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
   11.16  WGET_URL="http://www.fftw.org/$TARBALL"
   11.17  
   11.18  BUILD_DEPENDS="gfortran"
   11.19 +SPLIT="fftw-dev"
   11.20  
   11.21 -# Rules to configure and make the package.
   11.22  compile_rules() {
   11.23  	# build double precision
   11.24  	./configure \
   11.25 @@ -44,8 +45,9 @@
   11.26  	make DESTDIR=$DESTDIR install
   11.27  }
   11.28  
   11.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
   11.30 -genpkg_rules()
   11.31 -{
   11.32 -	copy @std
   11.33 +genpkg_rules() {
   11.34 +	case $PACKAGE in
   11.35 +		fftw)  copy @std;;
   11.36 +		*-dev) copy @dev;;
   11.37 +	esac
   11.38  }
    12.1 --- a/glib/receipt	Thu Dec 07 14:34:32 2017 +0200
    12.2 +++ b/glib/receipt	Thu Dec 07 17:39:40 2017 +0200
    12.3 @@ -1,32 +1,32 @@
    12.4  # SliTaz package receipt v2.
    12.5  
    12.6  PACKAGE="glib"
    12.7 -VERSION="2.50.3"
    12.8 +VERSION="2.52.3"
    12.9  CATEGORY="x-window"
   12.10  SHORT_DESC="C routines"
   12.11  MAINTAINER="pankso@slitaz.org"
   12.12  LICENSE="GPL2"
   12.13  WEB_SITE="https://developer.gnome.org/glib/"
   12.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/glib2.html"
   12.15  HOST_ARCH="i486 arm"
   12.16  
   12.17  TARBALL="$PACKAGE-$VERSION.tar.xz"
   12.18  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
   12.19  
   12.20 +BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev"
   12.21  BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \
   12.22  pcre-dev gtk-doc libxslt libxml2-tools dbus-dev util-linux-mount-dev"
   12.23 -BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev"
   12.24  SPLIT="glib-dev"
   12.25  
   12.26 -# Rules to configure and make the package.
   12.27 -compile_rules()
   12.28 -{
   12.29 +compile_rules() {
   12.30 +	fix ld
   12.31  	case "$ARCH" in
   12.32  		i?86)
   12.33  			./configure \
   12.34 -			--sysconfdir=/etc \
   12.35 -			--with-pcre=system \
   12.36 -			--enable-static \
   12.37 -			$CONFIGURE_ARGS ;;
   12.38 +				--sysconfdir=/etc \
   12.39 +				--with-pcre=system \
   12.40 +				--enable-static \
   12.41 +				$CONFIGURE_ARGS ;;
   12.42  		arm*)
   12.43  			# Native ARM build --> if ARCH != SLITAZ_ARCH ?
   12.44  			export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
   12.45 @@ -50,6 +50,7 @@
   12.46  				--enable-static=yes \
   12.47  				--disable-rpath ;;
   12.48  	esac &&
   12.49 +	fix libtool &&
   12.50  	make &&
   12.51  	make DESTDIR=/ install &&
   12.52  	make DESTDIR=$DESTDIR install
   12.53 @@ -60,9 +61,7 @@
   12.54  	# Installing into / is safe since we working in the Aufs layer...
   12.55  }
   12.56  
   12.57 -# Rules to gen a SliTaz package suitable for Tazpkg.
   12.58 -genpkg_rules()
   12.59 -{
   12.60 +genpkg_rules() {
   12.61  	case $PACKAGE in
   12.62  		glib)
   12.63  			copy @std
   12.64 @@ -70,13 +69,11 @@
   12.65  			cd $fs/usr/bin
   12.66  			rm gdbus-codegen gtester* glib-mkenums glib-gettextize
   12.67  			rm -r $fs/usr/share
   12.68 -			DEPENDS="elfutils libffi pcre util-linux-blkid util-linux-mount \
   12.69 -			util-linux-uuid zlib"
   12.70 +			DEPENDS="elfutils libffi pcre util-linux-mount zlib"
   12.71  			PROVIDE="libgio"	# deprecated
   12.72  			;;
   12.73  		glib-dev)
   12.74 -			copy @std @dev
   12.75 -			remove_already_packed
   12.76 +			copy @std @dev @rm
   12.77  			DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \
   12.78  			util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python"
   12.79  			PROVIDE="libgio-dev"	# deprecated
    13.1 --- a/glibmm/receipt	Thu Dec 07 14:34:32 2017 +0200
    13.2 +++ b/glibmm/receipt	Thu Dec 07 17:39:40 2017 +0200
    13.3 @@ -13,36 +13,34 @@
    13.4  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
    13.5  
    13.6  BUILD_DEPENDS="glib-dev libsigc++-dev"
    13.7 -SPLIT="libgiomm libgiomm-dev glibmm-dev"
    13.8 +SPLIT="libgiomm glibmm-dev"
    13.9  
   13.10  compile_rules() {
   13.11  	sed -i "/^libdocdir =/ s|\$(book_name)|glibmm-$VERSION|" docs/Makefile.in
   13.12  
   13.13 -	./configure $CONFIGURE_ARGS && make && make install
   13.14 +	fix ld &&
   13.15 +	./configure $CONFIGURE_ARGS &&
   13.16 +	fix libtool &&
   13.17 +	make && make install
   13.18  }
   13.19  
   13.20  genpkg_rules() {
   13.21  	case $PACKAGE in
   13.22 +		glibmm)
   13.23 +			copy libglibmm*.so*
   13.24 +			DEPENDS="glib libsigc++"
   13.25 +			;;
   13.26  		libgiomm)
   13.27  			copy libgiomm*.so*
   13.28  			DEPENDS="glib glibmm libsigc++"
   13.29  			CAT="x-window|GIO Framework"
   13.30  			;;
   13.31 -		libgiomm-dev)
   13.32 -			copy giomm-2.4/ libgiomm*.la giomm-2.4.pc
   13.33 -			DEPENDS="libgiomm glib-dev glibmm-dev libffi-dev libsigc++-dev \
   13.34 -			pcre-dev util-linux-blkid-dev util-linux-mount-dev \
   13.35 -			util-linux-uuid-dev zlib-dev"
   13.36 -			CAT="development|GIO Framework development files"
   13.37 -			;;
   13.38 -		glibmm)
   13.39 -			copy libglibmm*.so*
   13.40 -			DEPENDS="glib libsigc++"
   13.41 -			;;
   13.42  		glibmm-dev)
   13.43 -			copy glibmm-2.4/ libglibmm*.la glibmm-2.4.pc
   13.44 -			DEPENDS="glibmm libgiomm-dev \
   13.45 -			glib-dev libffi-dev libsigc++-dev pcre-dev perl"
   13.46 +			copy @dev
   13.47 +			DEPENDS="glibmm libgiomm \
   13.48 +			glib-dev libffi-dev libsigc++-dev pcre-dev util-linux-blkid-dev \
   13.49 +			util-linux-mount-dev util-linux-uuid-dev zlib-dev perl"
   13.50 +			PROVIDE="libgiomm-dev" # single dev package now
   13.51  			;;
   13.52  	esac
   13.53  }
    14.1 --- a/gmime-dev/receipt	Thu Dec 07 14:34:32 2017 +0200
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,22 +0,0 @@
    14.4 -# SliTaz package receipt.
    14.5 -
    14.6 -PACKAGE="gmime-dev"
    14.7 -VERSION="2.6.7"
    14.8 -CATEGORY="development"
    14.9 -SHORT_DESC="library for parsing messages using MIME"
   14.10 -MAINTAINER="allan316@gmail.com"
   14.11 -LICENSE="LGPL2.1"
   14.12 -WEB_SITE="http://spruce.sourceforge.net/gmime"
   14.13 -WANTED="gmime"
   14.14 -
   14.15 -DEPENDS="gmime gpgme-dev pkg-config"
   14.16 -
   14.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
   14.18 -genpkg_rules()
   14.19 -{
   14.20 -	mkdir -p $fs/usr/lib
   14.21 -	cp -a $install/usr/include $fs/usr
   14.22 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
   14.23 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   14.24 -}
   14.25 -
    15.1 --- a/gmime/receipt	Thu Dec 07 14:34:32 2017 +0200
    15.2 +++ b/gmime/receipt	Thu Dec 07 17:39:40 2017 +0200
    15.3 @@ -1,34 +1,43 @@
    15.4 -# SliTaz package receipt.
    15.5 +# SliTaz package receipt v2.
    15.6  
    15.7  PACKAGE="gmime"
    15.8 -VERSION="2.6.7"
    15.9 +VERSION="2.6.23"
   15.10  CATEGORY="development"
   15.11 -SHORT_DESC="library for parsing messages using MIME"
   15.12 +SHORT_DESC="Parsing messages using MIME"
   15.13  MAINTAINER="allan316@gmail.com"
   15.14  LICENSE="LGPL2.1"
   15.15 +WEB_SITE="http://spruce.sourceforge.net/gmime/"
   15.16 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/gmime.html"
   15.17 +
   15.18  TARBALL="$PACKAGE-$VERSION.tar.xz"
   15.19 -WEB_SITE="http://spruce.sourceforge.net/gmime"
   15.20 -WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:3}/$TARBALL"
   15.21 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
   15.22  
   15.23 -DEPENDS="glib gpgme zlib"
   15.24 -BUILD_DEPENDS="glib-dev gpgme-dev zlib-dev"
   15.25 +BUILD_DEPENDS="gtk-doc zlib-dev glib-dev gpgme-dev gobject-introspection-dev \
   15.26 +vala"
   15.27 +SPLIT="gmime-dev"
   15.28 +COOKOPTS="skip-log-errors"
   15.29  
   15.30 -# Rules to configure and make the package.
   15.31 -compile_rules()
   15.32 -{
   15.33 -	cd $src
   15.34 +compile_rules() {
   15.35 +	fix ld
   15.36  	./configure \
   15.37 +		--disable-static \
   15.38  		--enable-smime \
   15.39 -		--disable-mono \
   15.40 -		--disable-static \
   15.41 -		--build=$HOST_SYSTEM \
   15.42 -		--host=$HOST_SYSTEM 2>&1 | grep -v "can't remove" &&
   15.43 -	make && make DESTDIR=$DESTDIR install
   15.44 +		$CONFIGURE_ARGS &&
   15.45 +	fix libtool &&
   15.46 +	make && make install
   15.47  }
   15.48  
   15.49 -# Rules to gen a SliTaz package suitable for Tazpkg.
   15.50 -genpkg_rules()
   15.51 -{
   15.52 -	mkdir -p $fs/usr/lib
   15.53 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
   15.54 +genpkg_rules() {
   15.55 +	case $PACKAGE in
   15.56 +		gmime)
   15.57 +			copy @std
   15.58 +			DEPENDS="glib gpgme zlib"
   15.59 +			;;
   15.60 +		*-dev)
   15.61 +			copy @dev
   15.62 +			DEPENDS="gmime glib-dev gpgme-dev libassuan-dev libffi-dev \
   15.63 +			libgpg-error-dev pcre-dev util-linux-blkid-dev \
   15.64 +			util-linux-mount-dev util-linux-uuid-dev zlib-dev"
   15.65 +			;;
   15.66 +	esac
   15.67  }
    16.1 --- a/gobject-introspection/receipt	Thu Dec 07 14:34:32 2017 +0200
    16.2 +++ b/gobject-introspection/receipt	Thu Dec 07 17:39:40 2017 +0200
    16.3 @@ -1,52 +1,48 @@
    16.4  # SliTaz package receipt v2.
    16.5  
    16.6  PACKAGE="gobject-introspection"
    16.7 -VERSION="1.50.0"
    16.8 +VERSION="1.52.1"
    16.9  CATEGORY="development"
   16.10  SHORT_DESC="Introspection system for GObject-based libraries"
   16.11  MAINTAINER="pankso@slitaz.org"
   16.12  LICENSE="LGPL2 MIT"
   16.13  WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection"
   16.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/gobject-introspection.html"
   16.15  #HOST_ARCH="i486 arm"
   16.16  
   16.17  TARBALL="$PACKAGE-$VERSION.tar.xz"
   16.18  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
   16.19  
   16.20 +BUILD_DEPENDS_arm="glib-dev libffi-dev cairo-dev dbus-dev"
   16.21  BUILD_DEPENDS="glib-dev cairo-dev gtk-doc python-dev util-linux-mount-dev"
   16.22 -BUILD_DEPENDS_arm="glib-dev libffi-dev cairo-dev dbus-dev"
   16.23  SPLIT="gobject-introspection-dev"
   16.24  
   16.25 -# Handle cross compilation
   16.26 -case "$ARCH" in
   16.27 -	arm*)
   16.28 -		export   CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
   16.29 -		export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
   16.30 -		export    PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
   16.31 -		;;
   16.32 -esac
   16.33 +compile_rules() {
   16.34 +	case "$ARCH" in
   16.35 +		arm*)
   16.36 +			export   CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
   16.37 +			export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
   16.38 +			export    PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
   16.39 +			;;
   16.40 +	esac
   16.41  
   16.42 -# Rules to configure and make the package.
   16.43 -compile_rules()
   16.44 -{
   16.45 +	fix ld
   16.46  	./configure \
   16.47  		--disable-static \
   16.48  		$CONFIGURE_ARGS &&
   16.49 +	fix libtool &&
   16.50  	make && make install
   16.51  }
   16.52  
   16.53 -# Rules to gen a SliTaz package suitable for Tazpkg.
   16.54 -genpkg_rules()
   16.55 -{
   16.56 +genpkg_rules() {
   16.57  	case $PACKAGE in
   16.58  		gobject-introspection)
   16.59  			copy @std *.typelib
   16.60  			rm -r $fs/usr/share
   16.61 -			DEPENDS="glib libffi pcre util-linux-blkid util-linux-mount \
   16.62 -			util-linux-uuid zlib"
   16.63 +			DEPENDS="glib libffi python"
   16.64  			;;
   16.65  		*-dev)
   16.66 -			copy @std @dev
   16.67 -			remove_already_packed
   16.68 +			copy @std @dev @rm
   16.69  			DEPENDS="gobject-introspection glib-dev libffi-dev \
   16.70  			pcre-dev util-linux-blkid-dev util-linux-mount-dev \
   16.71  			util-linux-uuid-dev zlib-dev"
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/grantlee/receipt	Thu Dec 07 17:39:40 2017 +0200
    17.3 @@ -0,0 +1,41 @@
    17.4 +# SliTaz package receipt v2.
    17.5 +
    17.6 +PACKAGE="grantlee"
    17.7 +VERSION="5.1.0"
    17.8 +CATEGORY="libdevel"
    17.9 +SHORT_DESC="Libraries for text templating with Qt"
   17.10 +MAINTAINER="al.bobylev@gmail.com"
   17.11 +LICENSE="LGPL2.1"
   17.12 +WEB_SITE="https://github.com/steveire/grantlee"
   17.13 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/grantlee.html"
   17.14 +
   17.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   17.16 +WGET_URL="http://downloads.grantlee.org/$TARBALL"
   17.17 +
   17.18 +BUILD_DEPENDS="cmake qt5-dev mesa17-dev"
   17.19 +SPLIT="grantlee-dev"
   17.20 +
   17.21 +compile_rules() {
   17.22 +	mkdir build
   17.23 +	cd    build
   17.24 +
   17.25 +	fix ld
   17.26 +	cmake \
   17.27 +		-DCMAKE_INSTALL_PREFIX=/usr \
   17.28 +		-DCMAKE_BUILD_TYPE=Release \
   17.29 +		.. &&
   17.30 +	make &&
   17.31 +	make install
   17.32 +}
   17.33 +
   17.34 +genpkg_rules() {
   17.35 +	case $PACKAGE in
   17.36 +		grantlee)
   17.37 +			copy @std
   17.38 +			DEPENDS="qt5-base qt5-script"
   17.39 +			;;
   17.40 +		*-dev)
   17.41 +			copy @dev
   17.42 +			;;
   17.43 +	esac
   17.44 +}
    18.1 --- a/gsl-dev/receipt	Thu Dec 07 14:34:32 2017 +0200
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,18 +0,0 @@
    18.4 -# SliTaz package receipt.
    18.5 -
    18.6 -PACKAGE="gsl-dev"
    18.7 -VERSION="2.3"
    18.8 -CATEGORY="development"
    18.9 -SHORT_DESC="GNU Scientific Library (development files)"
   18.10 -MAINTAINER="pankso@slitaz.org"
   18.11 -LICENSE="GPL3"
   18.12 -WEB_SITE="https://www.gnu.org/software/gsl/"
   18.13 -
   18.14 -WANTED="gsl"
   18.15 -DEPENDS="gsl"
   18.16 -
   18.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
   18.18 -genpkg_rules()
   18.19 -{
   18.20 -	copy *.h *.a *.la *.pc *.m4 gsl-config
   18.21 -}
    19.1 --- a/gsl/receipt	Thu Dec 07 14:34:32 2017 +0200
    19.2 +++ b/gsl/receipt	Thu Dec 07 17:39:40 2017 +0200
    19.3 @@ -1,27 +1,30 @@
    19.4 -# SliTaz package receipt.
    19.5 +# SliTaz package receipt v2.
    19.6  
    19.7  PACKAGE="gsl"
    19.8 -VERSION="2.3"
    19.9 +VERSION="2.4"
   19.10  CATEGORY="libdevel"
   19.11  SHORT_DESC="GNU Scientific Library"
   19.12  MAINTAINER="pankso@slitaz.org"
   19.13  LICENSE="GPL3"
   19.14  WEB_SITE="https://www.gnu.org/software/gsl/"
   19.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/gsl.html"
   19.16  
   19.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
   19.18  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   19.19  
   19.20 -# Rules to configure and make the package.
   19.21 -compile_rules()
   19.22 -{
   19.23 -	./configure $CONFIGURE_ARGS &&
   19.24 +SPLIT="gsl-dev"
   19.25 +
   19.26 +compile_rules() {
   19.27 +	./configure \
   19.28 +		--disable-static \
   19.29 +		$CONFIGURE_ARGS &&
   19.30  	make $MAKEFLAGS &&
   19.31  	make install
   19.32  }
   19.33  
   19.34 -# Rules to gen a SliTaz package suitable for Tazpkg.
   19.35 -genpkg_rules()
   19.36 -{
   19.37 -	copy bin/ *.so*
   19.38 -	find $fs -name gsl-config -delete
   19.39 +genpkg_rules() {
   19.40 +	case $PACKAGE in
   19.41 +		gsl)   copy @std;;
   19.42 +		*-dev) copy @dev;;
   19.43 +	esac
   19.44  }
    20.1 --- a/js/receipt	Thu Dec 07 14:34:32 2017 +0200
    20.2 +++ b/js/receipt	Thu Dec 07 17:39:40 2017 +0200
    20.3 @@ -1,45 +1,64 @@
    20.4  # SliTaz package receipt v2.
    20.5  
    20.6  PACKAGE="js"
    20.7 -VERSION="17.0.0"
    20.8 +VERSION="38.2.1"
    20.9  CATEGORY="libdevel"
   20.10  SHORT_DESC="Mozilla's JavaScript engine written in C/C++"
   20.11  MAINTAINER="al.bobylev@gmail.com"
   20.12  LICENSE="MPL2"
   20.13  WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
   20.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/js38.html"
   20.15  
   20.16 -TARBALL="mozjs$VERSION.tar.gz"
   20.17 -WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
   20.18 +TARBALL="mozjs-$VERSION.rc0.tar.bz2"
   20.19 +#WGET_URL="https://people.mozilla.org/~sstangl/$TARBALL"
   20.20 +# SpiderMonkey no more released separately, URL is wrong, see:
   20.21 +# https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38
   20.22 +# Use BLFS 8.1 source mirror:
   20.23 +WGET_URL="http://ftp.osuosl.org/pub/blfs/8.1/m/$TARBALL"
   20.24  
   20.25 -BUILD_DEPENDS="perl python nspr-dev zlib-dev"
   20.26 +BUILD_DEPENDS="autoconf213 xorg-libXt-dev python-dev xorg-libX11-dev nspr-dev \
   20.27 +zlib-dev icu-dev"
   20.28  SPLIT="js-dev"
   20.29  
   20.30 -# Rules to configure and make the package.
   20.31 -compile_rules()
   20.32 -{
   20.33 -	cd js/src &&
   20.34 +compile_rules() {
   20.35 +	cd js/src
   20.36  
   20.37 -	sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl &&
   20.38 +	autoconf-2.13 &&
   20.39  
   20.40  	./configure \
   20.41 -		--enable-readline \
   20.42 -		--enable-threadsafe \
   20.43 +		--with-intl-api \
   20.44 +		--with-system-zlib \
   20.45  		--with-system-ffi \
   20.46  		--with-system-nspr \
   20.47 +		--with-system-icu \
   20.48 +		--enable-threadsafe \
   20.49 +		--enable-readline \
   20.50  		$CONFIGURE_ARGS &&
   20.51 -	make && make install &&
   20.52 +	make && make install || return 1
   20.53  
   20.54 -	find $install/usr/include/js-${VERSION%.*}/ \
   20.55 -		 $install/usr/lib/libmozjs-${VERSION%.*}.a \
   20.56 -		 $install/usr/lib/pkgconfig/mozjs-${VERSION%.*}.pc \
   20.57 +	cd $install/usr/include/mozjs-38
   20.58 +	for link in $(find . -type l); do
   20.59 +		header=$(readlink $link)
   20.60 +		rm -f $link
   20.61 +		cp -pv $header $link
   20.62 +		chmod 644 $link
   20.63 +	done
   20.64 +	cd - >/dev/null
   20.65 +
   20.66 +	find $install/usr/include/ \
   20.67 +		 $install/usr/lib/pkgconfig/ \
   20.68  		-type f -exec chmod -v 644 '{}' \;
   20.69  }
   20.70  
   20.71 -# Rules to gen a SliTaz package suitable for Tazpkg.
   20.72 -genpkg_rules()
   20.73 -{
   20.74 +genpkg_rules() {
   20.75  	case $PACKAGE in
   20.76 -		js)     copy @std; DEPENDS="ncurses nspr readline zlib";;
   20.77 -		js-dev) copy @dev; DEPENDS="js nspr-dev";;
   20.78 +		js)
   20.79 +			copy @std
   20.80 +			DEPENDS="icu libicu ncurses nspr readline zlib"
   20.81 +			;;
   20.82 +		js-dev)
   20.83 +			copy @dev
   20.84 +			DEPENDS="js nspr-dev"
   20.85 +			;;
   20.86  	esac
   20.87  }
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/js/stuff/patches/js38-38.2.1-upstream_fixes-2.patch	Thu Dec 07 17:39:40 2017 +0200
    21.3 @@ -0,0 +1,231 @@
    21.4 +Submitted By: Douglas R. Reno <renodr at linuxfromscratch dot org>
    21.5 +Date: 2017-04-01
    21.6 +Inital Package Version: 38.2.1
    21.7 +Upstream Status: Declined
    21.8 +Origin: https://git.gnome.org/browse/jhbuild/tree/patches
    21.9 +Description: Fixes build and functionality problems within mozjs38.
   21.10 +
   21.11 +
   21.12 +diff -Naurp mozjs-38.0.0.orig/build/autoconf/icu.m4 mozjs-38.0.0/build/autoconf/icu.m4
   21.13 +--- mozjs-38.0.0.orig/build/autoconf/icu.m4	2015-09-17 15:12:19.000000000 -0500
   21.14 ++++ mozjs-38.0.0/build/autoconf/icu.m4	2017-04-01 19:31:59.957994136 -0500
   21.15 +@@ -73,7 +73,8 @@ if test -n "$USE_ICU"; then
   21.16 +         fi
   21.17 +     fi
   21.18 + 
   21.19 +-    version=`sed -n 's/^[[:space:]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
   21.20 ++    #version=`sed -n 's/^[[:space:]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
   21.21 ++    version=57.1
   21.22 +     if test x"$version" = x; then
   21.23 +        AC_MSG_ERROR([cannot determine icu version number from uvernum.h header file $lineno])
   21.24 +     fi
   21.25 +diff -Naurp mozjs-38.0.0.orig/js/src/configure mozjs-38.0.0/js/src/configure
   21.26 +--- mozjs-38.0.0.orig/js/src/configure	2015-09-17 15:38:10.000000000 -0500
   21.27 ++++ mozjs-38.0.0/js/src/configure	2017-04-01 19:31:59.958994141 -0500
   21.28 +@@ -1662,9 +1662,9 @@ esac
   21.29 + 
   21.30 + fi
   21.31 + 
   21.32 +-MOZILLA_VERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir`
   21.33 +-MOZILLA_UAVERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --uaversion`
   21.34 +-MOZILLA_SYMBOLVERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --symbolversion`
   21.35 ++MOZILLA_VERSION=`python $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir`
   21.36 ++MOZILLA_UAVERSION=`python $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --uaversion`
   21.37 ++MOZILLA_SYMBOLVERSION=`python $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --symbolversion`
   21.38 + 
   21.39 + cat >> confdefs.pytmp <<EOF
   21.40 +     (''' MOZILLA_VERSION ''', r''' "$MOZILLA_VERSION" ''')
   21.41 +@@ -1696,8 +1696,13 @@ MOZJS_MINOR_VERSION=`echo $MOZILLA_VERSI
   21.42 + MOZJS_PATCH_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9]*[^0-9]*||"`
   21.43 + IS_ALPHA=`echo $MOZILLA_VERSION | grep '[ab]'`
   21.44 + 
   21.45 ++if test -n "$JS_STANDALONE"; then
   21.46 ++JS_SHELL_NAME=js$MOZJS_MAJOR_VERSION
   21.47 ++JS_CONFIG_NAME=js$MOZJS_MAJOR_VERSION-config
   21.48 ++else
   21.49 + JS_SHELL_NAME=js
   21.50 + JS_CONFIG_NAME=js-config
   21.51 ++fi
   21.52 + 
   21.53 + 
   21.54 + if test -n "$IS_ALPHA"; then
   21.55 +diff -Naurp mozjs-38.0.0.orig/js/src/configure.in mozjs-38.0.0/js/src/configure.in
   21.56 +--- mozjs-38.0.0.orig/js/src/configure.in	2015-09-17 15:12:18.000000000 -0500
   21.57 ++++ mozjs-38.0.0/js/src/configure.in	2017-04-01 19:31:59.959994147 -0500
   21.58 +@@ -236,9 +236,9 @@ fi
   21.59 + dnl ==============================================================
   21.60 + dnl Get mozilla version from central milestone file
   21.61 + dnl ==============================================================
   21.62 +-MOZILLA_VERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir`
   21.63 +-MOZILLA_UAVERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --uaversion`
   21.64 +-MOZILLA_SYMBOLVERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --symbolversion`
   21.65 ++MOZILLA_VERSION=`python $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir`
   21.66 ++MOZILLA_UAVERSION=`python $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --uaversion`
   21.67 ++MOZILLA_SYMBOLVERSION=`python $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --symbolversion`
   21.68 + 
   21.69 + AC_DEFINE_UNQUOTED(MOZILLA_VERSION,"$MOZILLA_VERSION")
   21.70 + AC_DEFINE_UNQUOTED(MOZILLA_VERSION_U,$MOZILLA_VERSION)
   21.71 +@@ -252,16 +252,13 @@ MOZJS_MINOR_VERSION=`echo $MOZILLA_VERSI
   21.72 + MOZJS_PATCH_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9]*[^0-9]*||"`
   21.73 + IS_ALPHA=`echo $MOZILLA_VERSION | grep '[ab]'`
   21.74 + 
   21.75 +-dnl XXX in a temporary bid to avoid developer anger at renaming files
   21.76 +-dnl XXX before "js" symlinks exist, don't change names.
   21.77 +-dnl
   21.78 +-dnl if test -n "$JS_STANDALONE"; then
   21.79 +-dnl JS_SHELL_NAME=js$MOZJS_MAJOR_VERSION
   21.80 +-dnl JS_CONFIG_NAME=js$MOZJS_MAJOR_VERSION-config
   21.81 +-dnl else
   21.82 ++if test -n "$JS_STANDALONE"; then
   21.83 ++JS_SHELL_NAME=js$MOZJS_MAJOR_VERSION
   21.84 ++JS_CONFIG_NAME=js$MOZJS_MAJOR_VERSION-config
   21.85 ++else
   21.86 + JS_SHELL_NAME=js
   21.87 + JS_CONFIG_NAME=js-config
   21.88 +-dnl fi
   21.89 ++fi
   21.90 + 
   21.91 + changequote([,])
   21.92 + if test -n "$IS_ALPHA"; then
   21.93 +diff -Naurp mozjs-38.0.0.orig/js/src/jit/RegisterSets.h mozjs-38.0.0/js/src/jit/RegisterSets.h
   21.94 +--- mozjs-38.0.0.orig/js/src/jit/RegisterSets.h	2015-09-17 15:12:22.000000000 -0500
   21.95 ++++ mozjs-38.0.0/js/src/jit/RegisterSets.h	2017-04-01 19:31:59.961994157 -0500
   21.96 +@@ -7,7 +7,6 @@
   21.97 + #ifndef jit_RegisterSets_h
   21.98 + #define jit_RegisterSets_h
   21.99 + 
  21.100 +-#include "mozilla/Alignment.h"
  21.101 + #include "mozilla/MathAlgorithms.h"
  21.102 + 
  21.103 + #include "jit/JitAllocPolicy.h"
  21.104 +@@ -26,8 +25,8 @@ struct AnyRegister {
  21.105 +     Code code_;
  21.106 + 
  21.107 +   public:
  21.108 +-    AnyRegister()
  21.109 +-    { }
  21.110 ++    AnyRegister() = default;
  21.111 ++
  21.112 +     explicit AnyRegister(Register gpr) {
  21.113 +         code_ = gpr.code();
  21.114 +     }
  21.115 +@@ -156,7 +155,7 @@ class ValueOperand
  21.116 +     }
  21.117 + #endif
  21.118 + 
  21.119 +-    ValueOperand() {}
  21.120 ++    ValueOperand() = default;
  21.121 + };
  21.122 + 
  21.123 + // Registers to hold either either a typed or untyped value.
  21.124 +@@ -165,46 +164,25 @@ class TypedOrValueRegister
  21.125 +     // Type of value being stored.
  21.126 +     MIRType type_;
  21.127 + 
  21.128 +-    // Space to hold either an AnyRegister or a ValueOperand.
  21.129 +     union U {
  21.130 +-        mozilla::AlignedStorage2<AnyRegister> typed;
  21.131 +-        mozilla::AlignedStorage2<ValueOperand> value;
  21.132 ++        AnyRegister typed;
  21.133 ++        ValueOperand value;
  21.134 +     } data;
  21.135 + 
  21.136 +-    AnyRegister& dataTyped() {
  21.137 +-        MOZ_ASSERT(hasTyped());
  21.138 +-        return *data.typed.addr();
  21.139 +-    }
  21.140 +-    ValueOperand& dataValue() {
  21.141 +-        MOZ_ASSERT(hasValue());
  21.142 +-        return *data.value.addr();
  21.143 +-    }
  21.144 +-
  21.145 +-    AnyRegister dataTyped() const {
  21.146 +-        MOZ_ASSERT(hasTyped());
  21.147 +-        return *data.typed.addr();
  21.148 +-    }
  21.149 +-    const ValueOperand& dataValue() const {
  21.150 +-        MOZ_ASSERT(hasValue());
  21.151 +-        return *data.value.addr();
  21.152 +-    }
  21.153 +-
  21.154 +   public:
  21.155 + 
  21.156 +-    TypedOrValueRegister()
  21.157 +-      : type_(MIRType_None)
  21.158 +-    {}
  21.159 ++    TypedOrValueRegister() = default;
  21.160 + 
  21.161 +     TypedOrValueRegister(MIRType type, AnyRegister reg)
  21.162 +       : type_(type)
  21.163 +     {
  21.164 +-        dataTyped() = reg;
  21.165 ++        data.typed = reg;
  21.166 +     }
  21.167 + 
  21.168 +     MOZ_IMPLICIT TypedOrValueRegister(ValueOperand value)
  21.169 +       : type_(MIRType_Value)
  21.170 +     {
  21.171 +-        dataValue() = value;
  21.172 ++        data.value = value;
  21.173 +     }
  21.174 + 
  21.175 +     MIRType type() const {
  21.176 +@@ -220,11 +198,13 @@ class TypedOrValueRegister
  21.177 +     }
  21.178 + 
  21.179 +     AnyRegister typedReg() const {
  21.180 +-        return dataTyped();
  21.181 ++        MOZ_ASSERT(hasTyped());
  21.182 ++        return data.typed;
  21.183 +     }
  21.184 + 
  21.185 +     ValueOperand valueReg() const {
  21.186 +-        return dataValue();
  21.187 ++        MOZ_ASSERT(hasValue());
  21.188 ++        return data.value;
  21.189 +     }
  21.190 + 
  21.191 +     AnyRegister scratchReg() {
  21.192 +@@ -240,19 +220,18 @@ class ConstantOrRegister
  21.193 +     // Whether a constant value is being stored.
  21.194 +     bool constant_;
  21.195 + 
  21.196 +-    // Space to hold either a Value or a TypedOrValueRegister.
  21.197 +     union U {
  21.198 +-        mozilla::AlignedStorage2<Value> constant;
  21.199 +-        mozilla::AlignedStorage2<TypedOrValueRegister> reg;
  21.200 ++        Value constant;
  21.201 ++        TypedOrValueRegister reg;
  21.202 +     } data;
  21.203 + 
  21.204 +     Value& dataValue() {
  21.205 +         MOZ_ASSERT(constant());
  21.206 +-        return *data.constant.addr();
  21.207 ++        return data.constant;
  21.208 +     }
  21.209 +     TypedOrValueRegister& dataReg() {
  21.210 +         MOZ_ASSERT(!constant());
  21.211 +-        return *data.reg.addr();
  21.212 ++        return data.reg;
  21.213 +     }
  21.214 + 
  21.215 +   public:
  21.216 +diff -Naurp mozjs-38.0.0.orig/js/src/Makefile.in mozjs-38.0.0/js/src/Makefile.in
  21.217 +--- mozjs-38.0.0.orig/js/src/Makefile.in	2015-09-17 15:12:18.000000000 -0500
  21.218 ++++ mozjs-38.0.0/js/src/Makefile.in	2017-04-01 19:31:59.961994157 -0500
  21.219 +@@ -208,10 +208,13 @@ endif
  21.220 + SCRIPTS = $(JS_CONFIG_NAME)
  21.221 + SDK_BINARY = $(JS_CONFIG_NAME)
  21.222 + 
  21.223 +-$(LIBRARY_NAME).pc: js.pc
  21.224 ++$(JS_CONFIG_NAME): js-config
  21.225 + 	cp $^ $@
  21.226 + 
  21.227 +-install:: $(LIBRARY_NAME).pc
  21.228 ++$(JS_LIBRARY_NAME).pc: js.pc
  21.229 ++	cp $^ $@
  21.230 ++
  21.231 ++install:: $(JS_LIBRARY_NAME).pc
  21.232 + 	$(SYSINSTALL) $^ $(DESTDIR)$(libdir)/pkgconfig
  21.233 + 
  21.234 + install:: js-config.h
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/js/stuff/patches/series	Thu Dec 07 17:39:40 2017 +0200
    22.3 @@ -0,0 +1,2 @@
    22.4 +# http://www.linuxfromscratch.org/patches/blfs/8.1/js38-38.2.1-upstream_fixes-2.patch
    22.5 +js38-38.2.1-upstream_fixes-2.patch
    23.1 --- a/libboost/receipt	Thu Dec 07 14:34:32 2017 +0200
    23.2 +++ b/libboost/receipt	Thu Dec 07 17:39:40 2017 +0200
    23.3 @@ -1,7 +1,7 @@
    23.4  # SliTaz package receipt v2.
    23.5  
    23.6  PACKAGE="libboost"
    23.7 -VERSION="1.63.0"
    23.8 +VERSION="1.64.0"
    23.9  CATEGORY="meta"
   23.10  SHORT_DESC="Boost C++ libraries"
   23.11  MAINTAINER="chadi.elahmad@gmail.com"
   23.12 @@ -9,7 +9,7 @@
   23.13  WEB_SITE="http://www.boost.org/"
   23.14  
   23.15  TARBALL="boost-$VERSION.tar.bz2"
   23.16 -WGET_URL="$SF_MIRROR/boost/boost_${VERSION//./_}.tar.bz2"
   23.17 +WGET_URL="https://dl.bintray.com/boostorg/release/$VERSION/source/boost_${VERSION//./_}.tar.bz2"
   23.18  
   23.19  BUILD_DEPENDS="icu-dev zlib-dev bzip2-dev python-dev"
   23.20  l="libboost"
   23.21 @@ -39,25 +39,17 @@
   23.22  # libboost-x-dev by the pair libboost-x and libboost-dev.
   23.23  
   23.24  
   23.25 -# Rules to configure and make the package.
   23.26 -compile_rules()
   23.27 -{
   23.28 +compile_rules() {
   23.29  	./bootstrap.sh --prefix=$install/usr &&
   23.30  	./b2 stage   threading=multi link=shared &&
   23.31 -	./b2 install threading=multi link=shared &&
   23.32 +	./b2 install threading=multi link=shared || return 1
   23.33  
   23.34 -	docdir=$install/share/doc/boost-$VERSION &&
   23.35 -	mkdir -p $docdir &&
   23.36 -	cp -a $src/doc/html/* $docdir &&
   23.37 -	chown -R root:root $docdir &&
   23.38 -	find $docdir -type f -exec chmod 644 '{}' \;
   23.39 +	cook_pick_docs doc/html/*
   23.40  
   23.41  	find $install -name '*.hpp' -exec chmod 644 '{}' \;
   23.42  }
   23.43  
   23.44 -# Rules to gen a SliTaz package suitable for Tazpkg.
   23.45 -genpkg_rules()
   23.46 -{
   23.47 +genpkg_rules() {
   23.48  	DEPENDS=" "
   23.49  	case $PACKAGE in
   23.50  		*-chrono)				DEPENDS="$l-system";;
   23.51 @@ -90,8 +82,7 @@
   23.52  			CAT="doc|documentation"
   23.53  			;;
   23.54  		libboost-dev)
   23.55 -			copy @dev
   23.56 -			remove_already_packed
   23.57 +			copy @dev @rm
   23.58  			;;
   23.59  		*)
   23.60  			p=${PACKAGE#*-}