diff options
author | DhabyX <slack.dhabyx@gmail.com> | 2017-04-05 09:28:42 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-08 06:57:47 +0700 |
commit | 31c104e521bd16ac691fb79b528859de324a523c (patch) | |
tree | 2c78923cd297861e2359f3b43b7b3b82c86694c3 /development/flow | |
parent | 7c05813182e86cd87ee16d31438462659bde11b8 (diff) | |
download | slackbuilds-31c104e521bd16ac691fb79b528859de324a523c.tar.gz |
development/flow: Updated for version 0.43.0 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/flow')
-rw-r--r-- | development/flow/flow-noarch.patch | 27 | ||||
-rw-r--r-- | development/flow/flow.SlackBuild | 39 | ||||
-rw-r--r-- | development/flow/flow.info | 10 |
3 files changed, 15 insertions, 61 deletions
diff --git a/development/flow/flow-noarch.patch b/development/flow/flow-noarch.patch deleted file mode 100644 index 2925164b1d..0000000000 --- a/development/flow/flow-noarch.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -u -r flow-0.29.0/hack/heap/hh_shared.c flow-0.29.0-patched/hack/heap/hh_shared.c ---- flow-0.29.0/hack/heap/hh_shared.c 2016-07-14 18:29:48.000000000 +0100 -+++ flow-0.29.0-patched/hack/heap/hh_shared.c 2016-07-23 17:55:27.041786018 +0100 -@@ -130,19 +130,14 @@ - * appeared in Linux 3.17. - ****************************************************************************/ - #if !defined __APPLE__ && !defined _WIN32 -+ - // Linux version for the architecture must support syscall memfd_create -- #if defined(__x86_64__) -- #define SYS_memfd_create 319 -- #elif defined(__powerpc64__) -- #define SYS_memfd_create 360 -- #elif defined(__aarch64__) -- #define SYS_memfd_create 385 -- #else -- #error "hh_shared.c requires a architecture that supports memfd_create" -+ #include <sys/syscall.h> -+ #if !defined(SYS_memfd_create) -+ #error "hh_shared.c requires an architecture that supports memfd_create" - #endif - - #define MEMFD_CREATE 1 -- #include <asm/unistd.h> - - /* Originally this function would call uname(), parse the linux - * kernel release version and make a decision based on whether diff --git a/development/flow/flow.SlackBuild b/development/flow/flow.SlackBuild index 9823339f39..e350546e04 100644 --- a/development/flow/flow.SlackBuild +++ b/development/flow/flow.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for flow # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org +# 2017 | Dhaby Xiloj | slack.dhabyx@gmail.com # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,16 +24,16 @@ # <https://www.gnu.org/licenses/>. PRGNAM=flow -VERSION=${VERSION:-0.37.4} +VERSION=${VERSION:-0.43.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac +ARCH=${ARCH:-$(uname -m)} +if [ "$ARCH" = x86_64 ]; then + SLKCFLAGS="-O2 -fPIC" +else + echo "$(uname -m) architecture is not supported." + exit 1 fi CWD=$(pwd) @@ -40,19 +41,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi +DOCS="Changelog.md CONTRIBUTING.md LICENSE PATENTS README.md examples" set -e @@ -73,14 +62,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -## This patch allows `flow` to -## be built on 32-bit systems. -## Although, `flow` doesn't pass its -## built-in tests on 32-bit. -## I'm leaving it here in case anyone -## decides to investigate that. -#patch -p1 < $CWD/$PRGNAM-noarch.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ make @@ -96,7 +77,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a Changelog.md CONTRIBUTING.md LICENSE PATENTS README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -ar $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/development/flow/flow.info b/development/flow/flow.info index 2f443fafba..16d6877884 100644 --- a/development/flow/flow.info +++ b/development/flow/flow.info @@ -1,10 +1,10 @@ PRGNAM="flow" -VERSION="0.37.4" +VERSION="0.43.0" HOMEPAGE="http://flowtype.org/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/facebook/flow/archive/v0.37.4.tar.gz" -MD5SUM_x86_64="afb7eb5e9a5d2ef3615e19392d8790b1" +DOWNLOAD_x86_64="https://github.com/facebook/flow/archive/v0.43.0/flow-0.43.0.tar.gz" +MD5SUM_x86_64="236d98c54f4a6d571c54d2729a81edb2" REQUIRES="ocamlbuild" -MAINTAINER="Ryan P.C. McQuen" -EMAIL="ryanpcmcquen@member.fsf.org" +MAINTAINER="DhabyX" +EMAIL="slack.dhabyx@gmail.com" |