diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2022-02-08 23:25:10 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-09 09:35:04 +0700 |
commit | dbb7b8afd1c2dc520cabd0a9b2d5487fd86c2f61 (patch) | |
tree | d4e34a544fe1c77509e8580b43c62fc68847a5ae /development | |
parent | b44d3a690cf226f4bcc9a2446842cc358a40ce41 (diff) |
development/ninja-ide: Updated for version 2.4.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/ninja-ide/ninja-ide.SlackBuild | 18 | ||||
-rw-r--r-- | development/ninja-ide/ninja-ide.info | 8 |
2 files changed, 18 insertions, 8 deletions
diff --git a/development/ninja-ide/ninja-ide.SlackBuild b/development/ninja-ide/ninja-ide.SlackBuild index 04ccbf7fe48fc..5cedda5472649 100644 --- a/development/ninja-ide/ninja-ide.SlackBuild +++ b/development/ninja-ide/ninja-ide.SlackBuild @@ -4,7 +4,7 @@ # Copyright 2012 Binh Nguyen <binhvng@gmail.com> # Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org -# Copyright 2017 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2017-2022 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ninja-ide -VERSION=${VERSION:-2.3} +VERSION=${VERSION:-2.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -58,7 +58,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -67,7 +67,17 @@ 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 {} \; -python setup.py install --root=$PKG -O1 +# This was missed in the v2.4 backport (Thanks aur repository) + sed -r "s/(print) ('.+')$/\1\(\2\)/" \ + -i "ninja_tests/core/examples/file_for_tests.py" + +# Work around not being prepared for python 3.8 (Thanks aur repository) + sed -e "s/_ast.Num/_ast.Constant/" \ + -e "/_ast.Str/ s/^/#/" \ + -i ninja_ide/tools/introspection.py \ + ninja_ide/tools/completion/analyzer.py + +python3 setup.py install --root=$PKG -O1 find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/development/ninja-ide/ninja-ide.info b/development/ninja-ide/ninja-ide.info index f2bc75af872da..eb4d63797336c 100644 --- a/development/ninja-ide/ninja-ide.info +++ b/development/ninja-ide/ninja-ide.info @@ -1,10 +1,10 @@ PRGNAM="ninja-ide" -VERSION="2.3" +VERSION="2.4" HOMEPAGE="http://ninja-ide.org/" -DOWNLOAD="https://github.com/ninja-ide/ninja-ide/archive/v2.3.tar.gz" -MD5SUM="196d0374eaef5ea35cd8612869d90016" +DOWNLOAD="https://github.com/ninja-ide/ninja-ide/archive/v2.4/ninja-ide-2.4.tar.gz" +MD5SUM="d819fb54309e632420219b1d1e5e930f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="pyinotify" +REQUIRES="" MAINTAINER="Dimitris Zlatanidis" EMAIL="d.zlatanidis@gmail.com" |