diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2020-04-23 10:41:24 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-24 08:18:56 +0700 |
commit | 73d4c3502f29964288dc71fd7ef93c2172c440e2 (patch) | |
tree | 65b7d69c7a5027931cc23806cdfb2b0a7c378f0f /libraries | |
parent | 7779f1091b2bb12275c0731bd6b50b947cf0b478 (diff) | |
download | slackbuilds-73d4c3502f29964288dc71fd7ef93c2172c440e2.tar.gz |
libraries/BeautifulSoup4: Updated for version 4.9.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/BeautifulSoup4/BeautifulSoup4.SlackBuild | 18 | ||||
-rw-r--r-- | libraries/BeautifulSoup4/BeautifulSoup4.info | 12 | ||||
-rw-r--r-- | libraries/BeautifulSoup4/README | 26 |
3 files changed, 32 insertions, 24 deletions
diff --git a/libraries/BeautifulSoup4/BeautifulSoup4.SlackBuild b/libraries/BeautifulSoup4/BeautifulSoup4.SlackBuild index 38b98401fa..5fe2f506d4 100644 --- a/libraries/BeautifulSoup4/BeautifulSoup4.SlackBuild +++ b/libraries/BeautifulSoup4/BeautifulSoup4.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for BeautifulSoup4 -# Copyright 2014-2018 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2014-2018 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2020 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,11 +24,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=BeautifulSoup4 -SRCNAM=${PRGNAM,,} -VERSION=${VERSION:-4.6.1} +VERSION=${VERSION:-4.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCNAM=beautifulsoup4 + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -70,10 +72,12 @@ 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 +if $(python2 -c 'import soupsieve' 2>/dev/null); then + python setup.py install --root=$PKG +fi -# Python 3 support. -if $(python3 -c 'import sys' 2>/dev/null); then +# Python 3 support (requires python3-soupsieve) +if $(python3 -c 'import soupsieve' 2>/dev/null); then cd $TMP rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz @@ -93,7 +97,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.txt COPYING.txt AUTHORS.txt NEWS.txt TODO.txt doc/* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md COPYING.txt NEWS.txt TODO.txt doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/libraries/BeautifulSoup4/BeautifulSoup4.info b/libraries/BeautifulSoup4/BeautifulSoup4.info index 0d38418d94..41649766ff 100644 --- a/libraries/BeautifulSoup4/BeautifulSoup4.info +++ b/libraries/BeautifulSoup4/BeautifulSoup4.info @@ -1,10 +1,10 @@ PRGNAM="BeautifulSoup4" -VERSION="4.6.1" +VERSION="4.9.0" HOMEPAGE="https://www.crummy.com/software/BeautifulSoup/" -DOWNLOAD="https://www.crummy.com/software/BeautifulSoup/bs4/download/4.6/beautifulsoup4-4.6.1.tar.gz" -MD5SUM="ff719d65b9653b7b56645c7634b6e314" +DOWNLOAD="https://www.crummy.com/software/BeautifulSoup/bs4/download/4.9/beautifulsoup4-4.9.0.tar.gz" +MD5SUM="54e86045e37b578036f34b0e4927c85f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Dimitris Zlatanidis" -EMAIL="d.zlatanidis@gmail.com" +REQUIRES="python-soupsieve" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu1@isaacyu1.com" diff --git a/libraries/BeautifulSoup4/README b/libraries/BeautifulSoup4/README index 41925ef89e..177bad7002 100644 --- a/libraries/BeautifulSoup4/README +++ b/libraries/BeautifulSoup4/README @@ -11,17 +11,21 @@ navigating, searching, and modifying a parse tree: a toolkit for dissecting a document and extracting what you need. You don't have to create a custom parser for each application. -3. Beautiful Soup automatically converts incoming documents to Unicode and -outgoing documents to UTF-8. You don't have to think about encodings, -unless the document doesn't specify an encoding and Beautiful Soup -can't autodetect one. Then you just have to specify the original -encoding. +3. Beautiful Soup automatically converts incoming documents to Unicode +and outgoing documents to UTF-8. You don't have to think about +encodings, unless the document doesn't specify an encoding and +Beautiful Soup can't autodetect one. Then you just have to specify the +original encoding. Beautiful Soup parses anything you give it, and does the tree traversal -stuff for you. You can tell it "Find all the links", or "Find all the links -of class externalLink", or "Find all the links whose urls match "foo.com", -or "Find the table heading that's got bold text, then give me that text." +stuff for you. You can tell it "Find all the links", or "Find all the +links of class externalLink", or "Find all the links whose urls match +"foo.com", or "Find the table heading that's got bold text, then give +me that text." -Valuable data that was once locked up in poorly-designed websites is now -within your reach. Projects that would have taken hours take only minutes -with Beautiful Soup. +Valuable data that was once locked up in poorly-designed websites is +now within your reach. Projects that would have taken hours take only +minutes with Beautiful Soup. + +If python3-soupsieve is installed, then this will also build for +Python 3. |