mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
development/sip: Added to 12.0 repository
This commit is contained in:
parent
be1197df69
commit
621bdb523e
4 changed files with 117 additions and 0 deletions
29
development/sip/README
Normal file
29
development/sip/README
Normal file
|
@ -0,0 +1,29 @@
|
|||
One of the features of Python that makes it so powerful is the ability
|
||||
to take existing libraries, written in C or C++, and make them
|
||||
available as Python extension modules. Such extension modules are
|
||||
often called bindings for the library.
|
||||
|
||||
SIP is a tool that makes it very easy to create Python bindings for C
|
||||
and C++ libraries. It was originally developed to create PyQt, the
|
||||
Python bindings for the Qt toolkit, but can be used to create bindings
|
||||
for any C or C++ library.
|
||||
|
||||
NOTE:
|
||||
This package will, by default, overwrite some files contained in the
|
||||
stock kdebindings package included in Slackware. The version of sip
|
||||
included with kdebindings is an older version which works fine for
|
||||
generating qt3/kde3 python bindings, but the newer versions are needed
|
||||
to generate qt4 python bindings (pyqt4 on SlackBuilds.org). To the
|
||||
best of our knowledge, sip is backwards compatible, so there shouldn't
|
||||
be any adverse effects from the overwritten files, but we cannot make
|
||||
any promises. If you do encounter problems, remove this sip package
|
||||
and reinstall the stock kdebinding package, and then notify the
|
||||
maintainer of this build script (see the sip.info file).
|
||||
As an alternative, this build script provides a PREFIX variable that
|
||||
can be set to select a different installation prefix (such as /opt).
|
||||
Doing so will require you to add the directory in which the sip binary
|
||||
is located to your PATH, add the sip includes directory to your
|
||||
compiler includes search path, and add the sip python module path to
|
||||
your PYTHONPATH environment variable. All of these things will have
|
||||
to be done manually and in such a way that they take priority over the
|
||||
files installed in /usr prefix.
|
61
development/sip/sip.SlackBuild
Normal file
61
development/sip/sip.SlackBuild
Normal file
|
@ -0,0 +1,61 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for SIP
|
||||
|
||||
# Written by Aleksandar B. Samardzic <asamardzic@matf.bg.ac.yu>
|
||||
|
||||
NAME=sip
|
||||
VERSION=4.7.4
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=${PKG:-$TMP/package-$NAME}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# See ./README for more information
|
||||
PREFIX=${PREFIX:-/usr}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $NAME-$VERSION
|
||||
tar xvf $CWD/$NAME-$VERSION.tar.gz
|
||||
cd $NAME-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
python configure.py \
|
||||
-b "$PREFIX/bin" \
|
||||
-d "$PREFIX/lib/python2.5/site-packages" \
|
||||
-e "$PREFIX/include/python2.5" \
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS"
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$NAME-$VERSION
|
||||
install -m 0644 ChangeLog LICENSE NEWS README THANKS TODO \
|
||||
doc/* $CWD/$NAME.SlackBuild $PKG/usr/doc/$NAME-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$NAME-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
development/sip/sip.info
Normal file
8
development/sip/sip.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="sip"
|
||||
VERSION="4.7.4"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/sip/"
|
||||
DOWNLOAD="http://www.riverbankcomputing.com/Downloads/sip4/sip-4.7.4.tar.gz"
|
||||
MD5SUM="3bae6d0fb931fe2ddcd6f6c1da245afa"
|
||||
MAINTAINER="Aleksandar B. Samardzic"
|
||||
EMAIL="asamardzic@matf.bg.ac.yu"
|
||||
APPROVED="David Somero,rworkman"
|
19
development/sip/slack-desc
Normal file
19
development/sip/slack-desc
Normal file
|
@ -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 ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
sip: SIP (a tool for generating Python bindings)
|
||||
sip:
|
||||
sip: SIP is a tool that makes it very easy to create Python bindings
|
||||
sip: for C and C++ libraries. It was originally developed to create
|
||||
sip: PyQt, the Python bindings for the Qt toolkit, but can be used to
|
||||
sip: create bindings for any C or C++ library.
|
||||
sip:
|
||||
sip: Homepage: http://www.riverbankcomputing.co.uk/sip/
|
||||
sip:
|
||||
sip:
|
||||
sip:
|
Loading…
Reference in a new issue