development/OpenCobolIDE: Updated for version 4.7.4.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2016-08-19 15:01:53 +03:00 committed by Willy Sudiarto Raharjo
parent b26ca3ce37
commit 5546d36a93
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 13 additions and 22 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for OpenCobolIDE
# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=OpenCobolIDE
VERSION=${VERSION:-2.3.1}
VERSION=${VERSION:-4.7.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -69,23 +69,14 @@ 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
# Remove assertion about pyqode being in ocide package
sed -i "s/assert/# assert/" open_cobol_ide/main.py
python3 setup.py install --root=$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/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/pixmaps/
install -D -m644 share/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/man/man1/
install -D -m644 share/open-cobol-ide.1 $PKG/usr/man/man1/open-cobol-ide.1
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
cp -a LICENSE PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="OpenCobolIDE"
VERSION="2.3.1"
VERSION="4.7.4"
HOMEPAGE="https://github.com/OpenCobolIDE/OpenCobolIDE"
DOWNLOAD="https://pypi.python.org/packages/source/O/OpenCobolIDE/OpenCobolIDE-2.3.1.tar.gz"
MD5SUM="537d08b7a23ee6de9d740365738a953f"
DOWNLOAD="https://pypi.python.org/packages/88/a4/5345d465897159eea2ded7722d47c116765399ad666be5fcc1f073839764/OpenCobolIDE-4.7.4.tar.gz"
MD5SUM="d608a4abed36559f7cad193f6a5f41b7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pyqode.widgets python-chardet QDarkStyle"
REQUIRES="pyqode.cobol QDarkStyle python-keyring"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"