# HG changeset patch # User Hans-G?nter Theisgen # Date 1573836163 -3600 # Node ID e549186a3cd353415010670bb3db4cbb985a996a # Parent 5ccc69eb9042694aede7ca53490f6efbbb85cb1c copied recipes from wok-next diff -r 5ccc69eb9042 -r e549186a3cd3 libx11/.icon.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libx11/.icon.png Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,1 @@ +../xorg/.icon.png \ No newline at end of file diff -r 5ccc69eb9042 -r e549186a3cd3 libx11/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libx11/receipt Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,40 @@ +# SliTaz package receipt v2. + +PACKAGE="libx11" +VERSION="1.6.7" +CATEGORY="x-window" +SHORT_DESC="X11 Client library" +MAINTAINER="devel@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.x.org/wiki/" +LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/x7lib.html" + +TARBALL="libX11-$VERSION.tar.bz2" +WGET_URL="$XORG_MIRROR/lib/$TARBALL" +TARBALL_SHA1="5076f7853713d7db958a05f6fd1c18f7e111a0ad" + +BUILD_DEPENDS="xtrans libxcb-dev xorgproto libxau-dev libxdmcp-dev perl" +SPLIT="$PACKAGE-dev" + +COPY_std="*.so* XErrorDB Xcms.txt compose.dir locale.alias locale.dir \ +C/ en_US.UTF-8/" # split -> locale-* packages + +DEPENDS_std="libxcb" +DEPENDS_dev="$PACKAGE xorgproto libxcb-dev" + +compile_rules() { + ./configure \ + --disable-static \ + $CONFIGURE_ARGS && + fix libtool && + make && + make install + + # strip whitespace - reduce size + find $install -name Compose -exec sed -i 's|\t| |g; s| *| |g; /^$/d' '{}' \+ +} + +TAGS="Xorg" + +PROVIDE_std="xorg-libX11" +PROVIDE_dev="xorg-libX11-dev" diff -r 5ccc69eb9042 -r e549186a3cd3 meson/.icon.png Binary file meson/.icon.png has changed diff -r 5ccc69eb9042 -r e549186a3cd3 meson/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meson/description.txt Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,4 @@ +Meson is a cross-platform build system designed to be both as fast and as user +friendly as possible. It supports many languages and compilers, including GCC, +Clang and Visual Studio. Its build definitions are written in a simple +non-turing complete DSL. diff -r 5ccc69eb9042 -r e549186a3cd3 meson/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meson/receipt Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,25 @@ +# SliTaz package receipt v2. + +PACKAGE="meson" +VERSION="0.49.0" +CATEGORY="development" +SHORT_DESC="A high performance build system" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="Apache" +WEB_SITE="https://mesonbuild.com/" +LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/meson.html" +HOST_ARCH="any" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/mesonbuild/meson/releases/download/$VERSION/$TARBALL" + +BUILD_DEPENDS="python3" +DEPENDS_std="python3" + +TAGS_std="LFS" + +compile_rules() { + python3 -B setup.py install --root=$install || return 1 + + install -m755 $stuff/meson-wrapper $install/usr/bin/ +} diff -r 5ccc69eb9042 -r e549186a3cd3 meson/stuff/meson-wrapper --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meson/stuff/meson-wrapper Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,21 @@ +#!/bin/sh -ex +# Meson wrapper for SliTaz Linux packaging + +exec meson setup \ + --prefix /usr \ + --libdir /usr/lib \ + --libexecdir /usr/lib \ + --bindir /usr/bin \ + --sbindir /usr/bin \ + --includedir /usr/include \ + --datadir /usr/share \ + --mandir /usr/share/man \ + --infodir /usr/share/info \ + --localedir /usr/share/locale \ + --sysconfdir /etc \ + --localstatedir /var \ + --sharedstatedir /var/lib \ + --buildtype release \ + --wrap-mode nofallback \ + "$@" \ + -D b_lto=true diff -r 5ccc69eb9042 -r e549186a3cd3 ninja/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ninja/receipt Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,31 @@ +# SliTaz package receipt v2. + +PACKAGE="ninja" +VERSION="1.8.2" +CATEGORY="development" +SHORT_DESC="Small build system with a focus on speed" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="Apache" +WEB_SITE="https://ninja-build.org/" +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/ninja.html" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/ninja-build/ninja/archive/v$VERSION/$TARBALL" + +BUILD_DEPENDS="python" + +compile_rules() { + export NINJAJOBS=4 # Should be OK for our 6x Intel(R) Xeon(R) CPU W3530 @ 2.8GHz + + python configure.py --bootstrap || return 1 + + install -Dm755 ninja $install/usr/bin/ninja + install -Dm644 misc/bash-completion $install/usr/share/bash-completion/completions/ninja + install -Dm644 misc/zsh-completion $install/usr/share/zsh/site-functions/_ninja + cook_pick_docs doc/manual.asciidoc +} + +genpkg_rules() { + copy /usr/bin/ninja + TAGS="LFS" +} diff -r 5ccc69eb9042 -r e549186a3cd3 ninja/stuff/patches/ninja-1.8.2-add_NINJAJOBS_var-1.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ninja/stuff/patches/ninja-1.8.2-add_NINJAJOBS_var-1.patch Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,65 @@ +Submitted By: Bruce Dubbs +Date: 2017-10-14 +Initial Package Version: 1.9.2 +Upstream Status: Not submitted +Origin: Self +Description: Ninja normally uses all cores+2 when building + a package. This patch allows useers to limit the + cores used by setting an environment variable: + NINJAJOBS to an integer. + + The patch also fixes a few warnings. + + +diff -Naur ninja-1.8.2.orig/src/build_log.cc ninja-1.8.2/src/build_log.cc +--- ninja-1.8.2.orig/src/build_log.cc 2017-09-10 20:20:10.000000000 -0500 ++++ ninja-1.8.2/src/build_log.cc 2017-10-12 14:38:00.988957823 -0500 +@@ -75,12 +75,12 @@ + } + switch (len & 7) + { +- case 7: h ^= uint64_t(data[6]) << 48; +- case 6: h ^= uint64_t(data[5]) << 40; +- case 5: h ^= uint64_t(data[4]) << 32; +- case 4: h ^= uint64_t(data[3]) << 24; +- case 3: h ^= uint64_t(data[2]) << 16; +- case 2: h ^= uint64_t(data[1]) << 8; ++ case 7: h ^= uint64_t(data[6]) << 48; __attribute__ ((fallthrough)); ++ case 6: h ^= uint64_t(data[5]) << 40; __attribute__ ((fallthrough)); ++ case 5: h ^= uint64_t(data[4]) << 32; __attribute__ ((fallthrough)); ++ case 4: h ^= uint64_t(data[3]) << 24; __attribute__ ((fallthrough)); ++ case 3: h ^= uint64_t(data[2]) << 16; __attribute__ ((fallthrough)); ++ case 2: h ^= uint64_t(data[1]) << 8; __attribute__ ((fallthrough)); + case 1: h ^= uint64_t(data[0]); + h *= m; + }; +diff -Naur ninja-1.8.2.orig/src/hash_map.h ninja-1.8.2/src/hash_map.h +--- ninja-1.8.2.orig/src/hash_map.h 2017-09-10 20:20:10.000000000 -0500 ++++ ninja-1.8.2/src/hash_map.h 2017-10-12 14:30:29.563974429 -0500 +@@ -39,8 +39,8 @@ + len -= 4; + } + switch (len) { +- case 3: h ^= data[2] << 16; +- case 2: h ^= data[1] << 8; ++ case 3: h ^= data[2] << 16; __attribute__ ((fallthrough)); ++ case 2: h ^= data[1] << 8; __attribute__ ((fallthrough)); + case 1: h ^= data[0]; + h *= m; + }; +diff -Naur ninja-1.8.2.orig/src/ninja.cc ninja-1.8.2/src/ninja.cc +--- ninja-1.8.2.orig/src/ninja.cc 2017-09-10 20:20:10.000000000 -0500 ++++ ninja-1.8.2/src/ninja.cc 2017-10-12 14:47:34.143936739 -0500 +@@ -221,6 +221,12 @@ + + /// Choose a default value for the -j (parallelism) flag. + int GuessParallelism() { ++ ++ int j = 0; ++ char* jobs = getenv( "NINJAJOBS" ); ++ if ( jobs != NULL ) j = atoi( jobs ); ++ if ( j > 0 ) return j; ++ + switch (int processors = GetProcessorCount()) { + case 0: + case 1: diff -r 5ccc69eb9042 -r e549186a3cd3 ninja/stuff/patches/series --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ninja/stuff/patches/series Fri Nov 15 17:42:43 2019 +0100 @@ -0,0 +1,1 @@ +ninja-1.8.2-add_NINJAJOBS_var-1.patch