diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-05-12 20:25:07 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-05-16 13:45:47 +0700 |
commit | ffbc2448c00c75a3b3003a949749db29b4eb1aac (patch) | |
tree | 32284b9453451117fb03b1b82429576f2188dbea /graphics/dblatex | |
parent | 7d4aa27705feea60f9edffd11d16a0e6a1474972 (diff) |
graphics/dblatex: Updated for version 0.3.12.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/dblatex')
-rw-r--r-- | graphics/dblatex/dblatex-0.3.4-build-fix.patch | 14 | ||||
-rw-r--r-- | graphics/dblatex/dblatex.SlackBuild | 29 | ||||
-rw-r--r-- | graphics/dblatex/dblatex.info | 12 |
3 files changed, 16 insertions, 39 deletions
diff --git a/graphics/dblatex/dblatex-0.3.4-build-fix.patch b/graphics/dblatex/dblatex-0.3.4-build-fix.patch deleted file mode 100644 index c9424d08bf8a..000000000000 --- a/graphics/dblatex/dblatex-0.3.4-build-fix.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- setup.py.old 2012-11-08 20:33:26.224458028 +0100 -+++ setup.py 2012-11-08 20:33:41.656633881 +0100 -@@ -365,10 +365,7 @@ class Install(install): - raise OSError("not found: %s" % ", ".join(mis_stys)) - - def run(self): -- if self.install_layout == "deb": -- db = DebianInstaller(self) -- else: -- db = None -+ db = None - - if not(db) and not(self.nodeps): - try: diff --git a/graphics/dblatex/dblatex.SlackBuild b/graphics/dblatex/dblatex.SlackBuild index d3a96042c010..a178b128d48d 100644 --- a/graphics/dblatex/dblatex.SlackBuild +++ b/graphics/dblatex/dblatex.SlackBuild @@ -7,8 +7,9 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dblatex -VERSION=${VERSION:-0.3.10} -BUILD=${BUILD:-2} +SRCNAM=dblatex3 +VERSION=${VERSION:-0.3.12} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -20,9 +21,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -51,9 +49,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.*z? -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -61,18 +59,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix build -patch -p0 -i $CWD/dblatex-0.3.4-build-fix.patch +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -# latex in slackware 14.2 doesn't have this package -unzip "$CWD/bookmark.tds.zip" -cp -pav "./tex/latex/bookmark/" "./latex/" - -python setup.py build -python setup.py install --root=$PKG - -mv $PKG/usr/share/man $PKG/usr/ +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$PKG" dist/*.whl +mv $PKG/usr/share/man $PKG/usr/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 diff --git a/graphics/dblatex/dblatex.info b/graphics/dblatex/dblatex.info index 9746c5632d5a..138af57d5a15 100644 --- a/graphics/dblatex/dblatex.info +++ b/graphics/dblatex/dblatex.info @@ -1,12 +1,10 @@ PRGNAM="dblatex" -VERSION="0.3.10" -HOMEPAGE="http://dblatex.sourceforge.net/" -DOWNLOAD="https://downloads.sourceforge.net/dblatex/dblatex-0.3.10.tar.bz2 \ - https://mirrors.ctan.org/install/macros/latex/contrib/bookmark.tds.zip" -MD5SUM="437513c07101cefe5be3cbe83f313878 \ - c47d7e393fe4129df5bb7217abcc4676" +VERSION="0.3.12" +HOMEPAGE="https://dblatex.sourceforge.net/" +DOWNLOAD="https://sourceforge.net/projects/dblatex/files/dblatex/dblatex-0.3.12/dblatex3-0.3.12.tar.bz2" +MD5SUM="550adafd078432ff144b57d90c647714" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="python3-wheel python3-build texlive-extra" MAINTAINER="Vincent Batts" EMAIL="vbatts@hashbangbash.com" |