development/codeblocks: Updated for version 16.01.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
antonioleal 2017-11-12 21:45:08 +00:00 committed by Willy Sudiarto Raharjo
parent d3eac0628c
commit c9aefa321e
3 changed files with 20 additions and 14 deletions

View file

@ -12,5 +12,6 @@ N.B:
a) The path for codeblocks plugins is now /usr/lib{,64}/codeblocks/plugins. a) The path for codeblocks plugins is now /usr/lib{,64}/codeblocks/plugins.
Take care if upgrading from a previous version and you have already Take care if upgrading from a previous version and you have already
installed additional plugins (you might need to reinstall them). installed additional plugins (you might need to reinstall them).
b) All contrib-plugins are disabled by default. Please uncomment line 87 in the b) All contrib-plugins are disabled by default. Please invoke the script with
codeblocks.SlackBuild script in order to enable all contrib-plugins in your build. $ PLUGINS=yes ./codeblocks.SlackBuild
in order to enable all contrib-plugins in your build.

View file

@ -59,8 +59,8 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION.release
tar xvfz $CWD/$PRGNAM\_$VERSION.tar.gz tar xvf $CWD/$PRGNAM\_$VERSION.tar.gz
cd $PRGNAM-$VERSION.release cd $PRGNAM-$VERSION.release
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
@ -69,6 +69,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
WITHPLUGINS=''
if [ "${PLUGINS:-no}" = 'yes' ]; then
WITHPLUGINS='--with-contrib-plugins=all'
fi
./bootstrap ./bootstrap
LDFLAGS="-lX11" \ LDFLAGS="-lX11" \
@ -76,23 +81,24 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -fpermissive" \ CXXFLAGS="$SLKCFLAGS -fpermissive" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PKGNAME-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \ --disable-static \
--build=$ARCH-slackware-linux # --with-contrib-plugins=all $WITHPLUGINS \
--build=$ARCH-slackware-linux
# If you want to enable all contrib-plugins, uncomment the option --with-contrib-plugins=all in the line above.
make make
make install-strip DESTDIR=$PKG make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man?/*.? find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS BUGS BUILD COMPILERS COPYING ChangeLog NEWS README TODO \ cp -a \
AUTHORS BUGS BUILD COMPILERS COPYING ChangeLog NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -6,9 +6,8 @@ if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi fi
if [ -e usr/share/icons/gnome/icon-theme.cache ]; then if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/gnome >/dev/null 2>&1 /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi fi
fi fi