From 726a9a522b23aa86ca509c0c54f08d0e25c974e9 Mon Sep 17 00:00:00 2001 From: Henkjan Gersen Date: Sun, 26 Apr 2015 00:09:09 +0700 Subject: development/sourcenav: Added (source code analysis tool). Signed-off-by: Willy Sudiarto Raharjo --- development/sourcenav/README | 11 +++ development/sourcenav/slack-desc | 19 +++++ development/sourcenav/sn_logo.xpm | 125 +++++++++++++++++++++++++++++ development/sourcenav/sourcenav.SlackBuild | 100 +++++++++++++++++++++++ development/sourcenav/sourcenav.desktop | 10 +++ development/sourcenav/sourcenav.info | 10 +++ 6 files changed, 275 insertions(+) create mode 100644 development/sourcenav/README create mode 100644 development/sourcenav/slack-desc create mode 100644 development/sourcenav/sn_logo.xpm create mode 100644 development/sourcenav/sourcenav.SlackBuild create mode 100644 development/sourcenav/sourcenav.desktop create mode 100644 development/sourcenav/sourcenav.info (limited to 'development/sourcenav') diff --git a/development/sourcenav/README b/development/sourcenav/README new file mode 100644 index 0000000000..6da1e61239 --- /dev/null +++ b/development/sourcenav/README @@ -0,0 +1,11 @@ +Source Navigator NG is a source code analysis tool. With it, you can edit your +source code, display relationships between classes and functions and members, +and display call trees. + +You can navigate your source code and easily get to declarations or +implementations of functions, variables and macros (commonly called "symbols") +which helps you discovering and mapping unknown source code for enhancement or +maintenance tasks. + +source navigator NG is free software and released under the GPL v2. It is based +upon the old source navigator and strives to improve usability and performance. \ No newline at end of file diff --git a/development/sourcenav/slack-desc b/development/sourcenav/slack-desc new file mode 100644 index 0000000000..5de4df46e6 --- /dev/null +++ b/development/sourcenav/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +sourcenav: sourcenav (source code analysis tool) +sourcenav: +sourcenav: This programs enables you to edit your source code, display +sourcenav: relationships between classes and functions and members, +sourcenav: and display call trees. +sourcenav: +sourcenav: It allows navigate your source code and easily get to declarations +sourcenav: or implementations of functions, variables and macros (commonly +sourcenav: called "symbols") which helps you discovering and mapping unknown +sourcenav: source code for enhancement or maintenance tasks. +sourcenav: diff --git a/development/sourcenav/sn_logo.xpm b/development/sourcenav/sn_logo.xpm new file mode 100644 index 0000000000..3e120c531c --- /dev/null +++ b/development/sourcenav/sn_logo.xpm @@ -0,0 +1,125 @@ +/* XPM */ +static char *sn_logo[] = { +/* columns rows colors chars-per-pixel */ +"55 55 64 1 ", +" c #8CB1D8", +". c #8CB2D8", +"X c #8CB6D8", +"o c #8CBAD8", +"O c #8CBED8", +"+ c #8CC2DA", +"@ c #8CC6DA", +"# c #8CC6DE", +"$ c #8CCADE", +"% c #8CCEDE", +"& c #8CCEE2", +"* c #8CD2E2", +"= c #8ED2E2", +"- c #92D2E6", +"; c #96D6E6", +": c #9AD6E6", +"> c #9ED6E6", +", c #9EDAE6", +"< c #9EDAEA", +"1 c #A2DAE6", +"2 c #A2DAEA", +"3 c #A6DAEA", +"4 c #AADAEA", +"5 c #A6DEEA", +"6 c #AADEEA", +"7 c #AEDEEA", +"8 c #AEDEEE", +"9 c #B2DEEA", +"0 c #B2DEEE", +"q c #B6DEEE", +"w c #B2E2EE", +"e c #B6E2EE", +"r c #BAE2EE", +"t c #BEE6EE", +"y c #BEE6F2", +"u c #C2E6F2", +"i c #CAE6F2", +"p c #C6EAF2", +"a c #CAEAF2", +"s c #CEEAF2", +"d c #D2EAF2", +"f c #D2EEF2", +"g c #D2EEF6", +"h c #D6EEF6", +"j c #DAEEF6", +"k c #DAF2F6", +"l c #DEF2F6", +"z c #E2F2F6", +"x c #E2F2FA", +"c c #E6F2FA", +"v c #E6F6FA", +"b c #EAF6FA", +"n c #EEF6FA", +"m c #EEFAFA", +"M c #F2FAFA", +"N c #F2FAFE", +"B c #F6FAFE", +"V c #FAFEFE", +"C c #FEFEFE", +"Z c white", +"A c white", +"S c white", +"D c white", +"F c None", +/* pixels */ +" .", +" ", +" .Oo ", +" X7vNnh# ", +" .hCCCCCV= ", +" 9CCCCCCCNo ", +" BCCCCCCCC2 ", +" oCCCCCCCCCi ", +" .. oCCCCCCCCCt ", +" =zCCl* bCCCCCCCC& @tllr+ ", +" qCCCCCCq *CCCCCCCx. wCCCCCC> ", +" &CCCCCCCV$ >CCCCClo :CCCCCCCV$ ", +" dCCCCCCCCu +5ay&. .cCCCCCCCCg ", +" .lCCCCCCCCl. +VCCCCCCCCB. ", +" .lCCCCCCCCh +VCCCCCCCCC. ", +" 8CCCCCCCC7 o. oNCCCCCCCCb. ", +" ONCCCCCCvo +ibk$ gCCCCCCCC0 ", +" $bCCCCv+ XvCCCNO +mCCCCCCxX ", +" o2uu-X X$O $CCCCC6 .X @kVCCVfX ", +" &NCVq %CCCCC4 &zmso .+&*+ ", +" oBCCCC$omCCCV@OVCCCj. ", +" &CCCCCy @vCn$ ;CCCCCX ", +" @CCCCC< -CCCCB. ", +" .aCCCNX onCCCr X%72@ ", +" X:a4o o2w*. &nCCCVhO ", +" .o $VCCCCCCvX ", +" 1vnuo zCCCCCCCV3 ", +" $VCCCt OCCCCCCCCCz ", +" rCCCCbX $CCCCCCCCCbX ", +" ;e2X 8CCCCz. @CCCCCCCCCz ", +" 3CCCj. ONCCC, .mCCCCCCCCr ", +" BCCCC# O0u# :CCCCCCCmo ", +" VCCCC$ o57@ 5CCCCCn@ ", +" 3CCCxX OnCCC: +6ha;X ", +" =a,X 5CCCCc. ", +" @sbl; 7CCCCn. ", +" +nCCCV> &CCCCt ", +" tCCCCCm ,bmp. o$&O ", +" kCCCCCVo XX XrnCCVh# ", +" rCCCCCm .hCCCCCCM$ ", +" @mCCCB; 6CCCCCCCCb. ", +" +gmz- XcCCCCCCCCC$ ", +" owzmh& OBCCCCCCCCC2 ", +" +vCCCCC0 oMCCCCCCCCC, ", +" hCCCCCCC& .bCCCCCCCCC$ ", +" +VCCCCCCCa 3CCCCCCCCb. ", +" +CCCCCCCCz XsCCCCCCB+ ", +" +CCCCCCCCd. X7NCCCf+ ", +" XvCCCCCCC- o@#O. ", +" &VCCCCChX ", +" &xVVNt. ", +" XOOo ", +" ", +" ", +" " +}; diff --git a/development/sourcenav/sourcenav.SlackBuild b/development/sourcenav/sourcenav.SlackBuild new file mode 100644 index 0000000000..49e3b5c3bf --- /dev/null +++ b/development/sourcenav/sourcenav.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/sh + +# Slackware build script for sourcenavigator-NG + +# Copyright 2015, Henkjan Gersen, Bristol, UK +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=sourcenav +FULL_PRGNAM=sourcenavigator-NG +VERSION=${VERSION:-4.5} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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 +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $FULL_PRGNAM$VERSION +tar xvf $CWD/$FULL_PRGNAM$VERSION.tar.bz2 +cd $FULL_PRGNAM$VERSION + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +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 +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/usr/share/snavigator/html/* $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/snavigator/html + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +mkdir -p $PKG/usr/share/{applications,pixmaps} +cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications +cp $CWD/sn_logo.xpm $PKG/usr/share/pixmaps + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/sourcenav/sourcenav.desktop b/development/sourcenav/sourcenav.desktop new file mode 100644 index 0000000000..7e2a08faf8 --- /dev/null +++ b/development/sourcenav/sourcenav.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=sourcenav +Comment=Source code analysis tool +Exec=snavigator +Icon=sn_logo +Terminal=false +Type=Application +Categories=Application;Development +StartupNotify=true diff --git a/development/sourcenav/sourcenav.info b/development/sourcenav/sourcenav.info new file mode 100644 index 0000000000..664329c7f7 --- /dev/null +++ b/development/sourcenav/sourcenav.info @@ -0,0 +1,10 @@ +PRGNAM="sourcenav" +VERSION="4.5" +HOMEPAGE="http://sourcenav.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/project/sourcenav/NG4.5/sourcenavigator-NG4.5.tar.bz2" +MD5SUM="2be76f1e35b1b55630db9c8603473382" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Henkjan Gersen" +EMAIL="h.gersen@gmail.com" -- cgit v1.2.3