aboutsummaryrefslogtreecommitdiff
path: root/academic/gchemutils
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-08 04:48:57 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-09 17:20:43 +0700
commitcc304f87e3dccbb5021d4fdb98c296f50d507d1b (patch)
tree04c599cd744ee1016a6897b937b4fb7a62f1e97f /academic/gchemutils
parent73cb335d3b822ca688a9ab42a204f04b50328037 (diff)
academic/gchemutils: Disable mozilla/gnumeric plugins (broken).
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/gchemutils')
-rw-r--r--academic/gchemutils/README16
-rw-r--r--academic/gchemutils/gchemutils.SlackBuild36
2 files changed, 26 insertions, 26 deletions
diff --git a/academic/gchemutils/README b/academic/gchemutils/README
index 9b7f1eeb7fe2b..f8efabc980333 100644
--- a/academic/gchemutils/README
+++ b/academic/gchemutils/README
@@ -9,14 +9,10 @@ Six programs are available:
5) A Spectrum viewer (GSpectrum)
6) A periodic table of the elements application (GChemTable)
-Three plugins for external programs are included:
-1) A GOffice plugin allows embedding GChemPaint supported files in
- programs supporting the GOffice component framework
-2) A Gnumeric plugin provides a molar mass function for the spreadsheet
-3) A Mozilla plugin allows embedding 2D, 3D and crystal structures as
- well as spectra in web pages
+A GOffice plugin is included, which allows embedding GChemPaint
+supported files in programs supporting the GOffice component
+framework.
-An optional build-time dependency is gnumeric for building its plugin.
-
-NOTES: The Mozilla plugin might not be very stable, so if you want
-to prevent it from building, pass MOZILLA=NO to the script.
+Note: previously, there were also plugins for Mozilla and Gnumeric.
+These have been removed because they no longer build with modern
+versions of Mozilla and Gnumeric.
diff --git a/academic/gchemutils/gchemutils.SlackBuild b/academic/gchemutils/gchemutils.SlackBuild
index b4080cd4ec2bb..e3086a9593ade 100644
--- a/academic/gchemutils/gchemutils.SlackBuild
+++ b/academic/gchemutils/gchemutils.SlackBuild
@@ -22,16 +22,22 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220308 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - disable the mozilla plugin, since it doesn't build.
+# - disable the gnumeric plugin, since it doesn't build either.
+# - update the README to explain the above.
+# - do not install useless INSTALL in doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gchemutils
VERSION=${VERSION:-0.14.17}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=gnome-chemistry-utils
-MOZILLA=${MOZILLA:-YES} # Build the Mozilla plugin
+MOZILLA=${MOZILLA:-NO} # Don't build the Mozilla plugin (it doesn't build)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -41,9 +47,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
@@ -79,13 +82,19 @@ 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 \) -exec chmod 755 {} \; -o \
+ -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 {} \+
# Disable Mozilla plugin building if anything other than YES
# was given as an argument to MOZILLA= at runtime
-[ ! "$MOZILLA" = "YES" ] && mozplug="disable" || mozplug="enable"
+#[ ! "$MOZILLA" = "YES" ] && mozplug="disable" || mozplug="enable"
+
+# 20220308 bkw: force-disable, it no longer builds.
+mozplug=disable
+
+# 20220308 bkw: dike out the gnumeric support, since it's broken.
+sed -i.bak '/\(ver\|libspreadsheet\)/s,1\.12,999.99,g' configure
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -std=c++14" \
@@ -103,17 +112,12 @@ CXXFLAGS="$SLKCFLAGS -std=c++14" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-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
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS ChangeLog COPYING* INSTALL NEWS README TODO \
+ AUTHORS ChangeLog COPYING* NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild