development/pudb: Changed options.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Woodfall 2018-08-09 21:53:07 +01:00 committed by Willy Sudiarto Raharjo
parent 22db108cd5
commit ad3a81a2e1
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 9 additions and 9 deletions

View File

@ -17,11 +17,11 @@ OPTIONS
To *ONLY* build the python2 version, use: To *ONLY* build the python2 version, use:
NO_PYTHON3=1 ./pudb.SlackBuild NO_PYTHON3=yes ./pudb.SlackBuild
To *ONLY* build the python3 version, use: To *ONLY* build the python3 version, use:
NO_PYTHON2=1 ./pudb.SlackBuild NO_PYTHON2=yes ./pudb.SlackBuild
The python2 version requires a newer version of urwid than the stock Slackware The python2 version requires a newer version of urwid than the stock Slackware
one, therefore this also builds a custom urwid named py2_urwid, which it can one, therefore this also builds a custom urwid named py2_urwid, which it can
@ -29,8 +29,8 @@ use. This should not conflict with the stock Slackware version.
OPTIONAL DEPENDENCIES OPTIONAL DEPENDENCIES
python3-urwid for the python3 version. Note that it will still build without python3-urwid is a runtime for the python3 version. Note that it will still
this, so it can be installed later if needed. build without this, so it can be installed later if needed.
############################################################################### ###############################################################################

View File

@ -25,7 +25,7 @@
PRGNAM=pudb PRGNAM=pudb
VERSION=${VERSION:-2017.1.4} VERSION=${VERSION:-2017.1.4}
URWIDVER=2.0.1 URWIDVER=2.0.1
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -55,7 +55,7 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
if [ -n "$NO_PYTHON2" ] && [ -n "$NO_PYTHON3" ]; then if [ "$NO_PYTHON2" = "yes" ] && [ "$NO_PYTHON3" = "yes" ]; then
printf "%s\n" "You appear to not want to install anything." printf "%s\n" "You appear to not want to install anything."
exit 1 exit 1
fi fi
@ -70,7 +70,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
# install custom urwid package # install custom urwid package
if [ -z "$NO_PYTHON2" ]; then if [ "$NO_PYTHON2" != "yes" ]; then
rm -rf urwid-$URWIDVER rm -rf urwid-$URWIDVER
tar xfv $CWD/urwid-$URWIDVER.tar.gz tar xfv $CWD/urwid-$URWIDVER.tar.gz
cd urwid-$URWIDVER cd urwid-$URWIDVER
@ -107,12 +107,12 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# install the python3 version before we wreck the python2 build # install the python3 version before we wreck the python2 build
if [ -n "$PY3" ] && [ -z "$NO_PYTHON3" ]; then if [ -n "$PY3" ] && [ "$NO_PYTHON3" != "yes" ]; then
python3 setup.py install --root=$PKG python3 setup.py install --root=$PKG
fi fi
# install the edited python2 version # install the edited python2 version
if [ -z "$NO_PYTHON2" ]; then if [ "$NO_PYTHON2" != "yes" ]; then
# change all references to urwid to our custom py2_urwid # change all references to urwid to our custom py2_urwid
for py in \ for py in \
settings.py \ settings.py \