summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorMarkus Rinne <markus.ka.rinne@gmail.com>2017-09-29 03:08:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-09-30 07:19:14 +0700
commitd15d2c5e610aafaacb2e1e0e7f3407d0e0b957c0 (patch)
tree55fc153d9b872e8de6908d26d47e1be33ef9bb96 /development
parent89da5b3040af5975d402f26016af5b6c7fbe029f (diff)
downloadslackbuilds-d15d2c5e610aafaacb2e1e0e7f3407d0e0b957c0.tar.gz
development/ninja: Updated to match slackware current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/ninja/ninja.SlackBuild38
-rw-r--r--development/ninja/slack-desc4
2 files changed, 27 insertions, 15 deletions
diff --git a/development/ninja/ninja.SlackBuild b/development/ninja/ninja.SlackBuild
index 4d7a3f206f..2d6fceca27 100644
--- a/development/ninja/ninja.SlackBuild
+++ b/development/ninja/ninja.SlackBuild
@@ -40,6 +40,20 @@ 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
+
set -e
rm -rf $PKG
@@ -55,25 +69,23 @@ 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 {} \;
-./configure.py --bootstrap
-
-mkdir -p $PKG/usr/bin
-cp ninja $PKG/usr/bin
-
-mkdir -p $PKG/usr/share/bash-completion/completions
-cp misc/bash-completion $PKG/usr/share/bash-completion/completions/ninja
-
-mkdir -p $PKG/usr/share/zsh/site-functions
-cp misc/zsh-completion $PKG/usr/share/zsh/site-functions/_ninja
+CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS" \
+ python configure.py --bootstrap
-mkdir -p $PKG/usr/share/emacs/site-lisp
-cp misc/ninja-mode.el $PKG/usr/share/emacs/site-lisp
+install -D -m0755 ninja $PKG/usr/bin/ninja
+install -D -m0644 misc/bash-completion $PKG/usr/share/bash-completion/completions/ninja
+install -D -m0644 misc/zsh-completion $PKG/usr/share/zsh/site-functions/_ninja
+install -D -m0644 misc/ninja.vim $PKG/usr/share/vim/vimfiles/syntax/ninja.vim
+install -D -m0644 misc/ninja-mode.el $PKG/usr/share/emacs/site-lisp/ninja-mode.el
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING doc/manual.asciidoc $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYING* HACKING* README* RELEASING \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/development/ninja/slack-desc b/development/ninja/slack-desc
index a04b84adce..35a65f0947 100644
--- a/development/ninja/slack-desc
+++ b/development/ninja/slack-desc
@@ -6,9 +6,9 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-ninja: ninja (small build system with a focus on speed)
+ninja: ninja (build system with a focus on speed)
ninja:
-ninja: Ninja is a small build system with a focus on speed. It differs from
+ninja: Ninja is a small build system with a focus on speed. It differs from
ninja: other build systems in two major respects: it is designed to have its
ninja: input files generated by a higher-level build system, and it is
ninja: designed to run builds as fast as possible.