diff options
author | Konrad J Hambrick <kjhambrick@gmail.com> | 2018-03-04 17:05:17 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:52:24 -0500 |
commit | b29d32bd87f0300bff2aa500bb4648cc970e9577 (patch) | |
tree | 4376699ccca12b2818ab691ddcd4e41ea8b72f94 /office | |
parent | 7b44ef316c334ee2b2691b138b4b8e47b361a3c5 (diff) |
office/pdftk: Switch using gcc5.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/pdftk/README | 7 | ||||
-rw-r--r-- | office/pdftk/pdftk-1.44-add_custom_optflags.patch | 26 | ||||
-rw-r--r-- | office/pdftk/pdftk-2.02-use-gcc5.patch | 15 | ||||
-rw-r--r-- | office/pdftk/pdftk.SlackBuild | 11 | ||||
-rw-r--r-- | office/pdftk/pdftk.info | 2 |
5 files changed, 28 insertions, 33 deletions
diff --git a/office/pdftk/README b/office/pdftk/README index c84c0b6589d7..6f0d6399e0aa 100644 --- a/office/pdftk/README +++ b/office/pdftk/README @@ -4,3 +4,10 @@ command-line tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to merge PDF documents, split PDF documents, apply watermarks, repair corrupt PDF, update PDF metadata, and more. pdftk does not require Acrobat and is free software. + +NOTE: Starting with Slackware 15.0 pdftk compilation requires SBo gcc-5 +because gcc-java was dropped from the GNU Compiler Collection as of gcc-7: +don't forget to source /etc/profile.d/gcc5.sh before starting to build +this, like + + . /etc/profile.d/gcc5.sh diff --git a/office/pdftk/pdftk-1.44-add_custom_optflags.patch b/office/pdftk/pdftk-1.44-add_custom_optflags.patch deleted file mode 100644 index 660073115f7e..000000000000 --- a/office/pdftk/pdftk-1.44-add_custom_optflags.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -Nurp pdftk-1.44-dist-orig/pdftk/Makefile.Slackware-13.1 pdftk-1.44-dist/pdftk/Makefile.Slackware-13.1 ---- pdftk-1.44-dist-orig/pdftk/Makefile.Slackware-13.1 2010-10-25 20:04:51.000000000 +0100 -+++ pdftk-1.44-dist/pdftk/Makefile.Slackware-13.1 2010-10-31 01:44:31.000000000 +0000 -@@ -34,7 +34,7 @@ export CXX= $(TOOLPATH)g++ - export GCJ= $(TOOLPATH)gcj - export GCJH= $(TOOLPATH)gcjh - export GJAR= $(TOOLPATH)gjar --export LIBGCJ= /usr/share/java/libgcj$(VERSUFF).jar -+export LIBGCJ= /usr/share/java - export AR= ar - export RM= rm - export ARFLAGS= rs -@@ -71,9 +71,10 @@ export RMFLAGS= -vf - # only effects libraries following option on the command line - # - # --export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers --export CXXFLAGS= -Wall -Wextra -Weffc++ -O2 --export GCJFLAGS= -Wall -fsource=1.3 -O2 -+export OPT= -O2 -+export CPPFLAGS= $(OPT) -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -+export CXXFLAGS= $(OPT) -Wall -Wextra -Weffc++ -+export GCJFLAGS= $(OPT) -Wall -fsource=1.3 - export GCJHFLAGS= -force - export LDLIBS= -lgcj - diff --git a/office/pdftk/pdftk-2.02-use-gcc5.patch b/office/pdftk/pdftk-2.02-use-gcc5.patch new file mode 100644 index 000000000000..d1e6e124de2b --- /dev/null +++ b/office/pdftk/pdftk-2.02-use-gcc5.patch @@ -0,0 +1,15 @@ +# diff -Nurp pdftk/Makefile.Slackware-13.1.orig pdftk/Makefile.Slackware-13.1 +--- orig/pdftk/Makefile.Slackware-13.1 2013-07-24 13:27:46.000000000 -0500 ++++ pdftk/Makefile.Slackware-13.1 2018-03-04 06:20:55.312900883 -0600 +@@ -21,8 +21,9 @@ + # tools + # need direct path to libgcj for gcjh (starting in gcj 4.1.2 per AurĂ©lien GĂRĂME) + TOOLPATH= +-export VERSUFF=-4.4.4 +-export CXX= $(TOOLPATH)g++ ++GCCMAJORTAG=-5 # kjh was here ++export VERSUFF=-5.5.0 # kjh was here ++export CXX= $(TOOLPATH)g++$(GCCMAJORTAG) # kjh was here + export GCJ= $(TOOLPATH)gcj + export GCJH= $(TOOLPATH)gcjh + export GJAR= $(TOOLPATH)gjar diff --git a/office/pdftk/pdftk.SlackBuild b/office/pdftk/pdftk.SlackBuild index aa5bad4885ff..854b6da93502 100644 --- a/office/pdftk/pdftk.SlackBuild +++ b/office/pdftk/pdftk.SlackBuild @@ -30,7 +30,7 @@ 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 @@ -41,8 +41,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" @@ -68,10 +68,9 @@ find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Use our SLKCFLAGS -patch -p1 < $CWD/pdftk-1.44-add_custom_optflags.patch +patch -p1 < $CWD/pdftk-2.02-use-gcc5.patch cd $PRGNAM # Hardcode "-j1" since this fails with multiple make jobs diff --git a/office/pdftk/pdftk.info b/office/pdftk/pdftk.info index 01151c62f191..b4e36211a901 100644 --- a/office/pdftk/pdftk.info +++ b/office/pdftk/pdftk.info @@ -5,6 +5,6 @@ DOWNLOAD="https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-src.zip MD5SUM="6534365fd6727724f288a556ede33faa" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="gcc5" MAINTAINER="ArTourter" EMAIL="artourter@gmail.com" |