aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorPedro R.M. Júnior <pedrormjunior@gmail.com>2018-11-08 10:27:07 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-10 07:46:58 +0700
commit63297af3cadf68051d63c5ce1e84b0297ebf4126 (patch)
treeb2b7b1867f66fd5ab4816f2bb36692ec2f382ce6 /office
parentc27771bdcbdf6417badf152e3d639d1b98033ad7 (diff)
office/bibtex2html: Added (translate BibTeX bibliographies to HTML).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/bibtex2html/README26
-rw-r--r--office/bibtex2html/bibtex2html.SlackBuild109
-rw-r--r--office/bibtex2html/bibtex2html.info10
-rw-r--r--office/bibtex2html/slack-desc19
4 files changed, 164 insertions, 0 deletions
diff --git a/office/bibtex2html/README b/office/bibtex2html/README
new file mode 100644
index 000000000000..3a9c8d97feb3
--- /dev/null
+++ b/office/bibtex2html/README
@@ -0,0 +1,26 @@
+bibtex2html (A translator of BibTeX bibliographies into HTML)
+
+BibTeX2HTML is a collection of tools for automatically producing HTML
+documents from bibliographies written in the BibTeX format. It
+consists of three command line tools:
+
+ - bib2bib: is a filter tool that reads one or several bibliography
+ files, filters the entries with respect to a given criterion, and
+ outputs the list of selected keys together with a new
+ bibliography file containing only the selected entries.
+
+ - bibtex2html: is a translator that reads a bibliography file and
+ outputs two HTML documents that contains respectively the cited
+ bibliography in a nice presentation, and the original BibTeX file
+ augmented with several transparent HTML links to allow easy
+ navigation. bibtex2html can handle any BibTeX style file,
+ including those producing multiple bibliographies.
+
+ - aux2bib: reads a .aux file as produced by LaTeX and writes to
+ standard output a BibTeX file containing exactly the BibTeX
+ entries refereed in the .aux file.
+
+As part of the documentation, a manual is generated with 'pdflatex'.
+For disabling generation of the manual, run:
+
+ DISABLE_DOC=yes ./bibtex2html.SlackBuild
diff --git a/office/bibtex2html/bibtex2html.SlackBuild b/office/bibtex2html/bibtex2html.SlackBuild
new file mode 100644
index 000000000000..86b38c06fcf3
--- /dev/null
+++ b/office/bibtex2html/bibtex2html.SlackBuild
@@ -0,0 +1,109 @@
+#!/bin/sh
+
+# Slackware build script for bibtex2html
+
+# Copyright 2018 Pedro R.M. Júnior, Campinas, SP, Brazil
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification,
+# is permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=bibtex2html
+VERSION=${VERSION:-1.99}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ $([ "${DISABLE_DOC:=no}" = "yes" ] && echo --disable-doc) \
+ --build=$ARCH-slackware-linux
+
+# For some reason, the generated Makefile have a hard coded `MANDIR`,
+# so we need to patch this to be based in ${prefix}, as for `BINDIR`.
+sed -i 's/MANDIR = \/usr\/man/MANDIR = ${prefix}\/man/' Makefile
+
+# Compile the application and install it into the $PKG directory. As
+# the Makefile does not support `DESTDIR`, in this case we need to use
+# `prefix`. Only `/usr/bin` and `/usr/man` are installed, so it is
+# enough to specify `$PKG/usr`.
+make
+make install prefix=$PKG/usr
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES COPYING GPL README \
+ $([ "$DISABLE_DOC" = "yes" ] || echo manual.pdf manual.html) \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/bibtex2html/bibtex2html.info b/office/bibtex2html/bibtex2html.info
new file mode 100644
index 000000000000..b3110ea0005c
--- /dev/null
+++ b/office/bibtex2html/bibtex2html.info
@@ -0,0 +1,10 @@
+PRGNAM="bibtex2html"
+VERSION="1.99"
+HOMEPAGE="https://www.lri.fr/~filliatr/bibtex2html"
+DOWNLOAD="https://www.lri.fr/~filliatr/ftp/bibtex2html/bibtex2html-1.99.tar.gz"
+MD5SUM="85f8d617b13d34a552261b3fbb406a0f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="hevea"
+MAINTAINER="Pedro R.M. Júnior"
+EMAIL="pedrormjunior@gmail.com"
diff --git a/office/bibtex2html/slack-desc b/office/bibtex2html/slack-desc
new file mode 100644
index 000000000000..6c7589d1d654
--- /dev/null
+++ b/office/bibtex2html/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+bibtex2html: bibtex2html (A translator of BibTeX bibliographies into HTML)
+bibtex2html:
+bibtex2html: BibTeX2HTML is a collection of tools for automatically producing HTML
+bibtex2html: documents from bibliographies written in the BibTeX format. It
+bibtex2html: consists of three command line tools:
+bibtex2html:
+bibtex2html: - bib2bib
+bibtex2html: - bibtex2html
+bibtex2html: - aux2bib
+bibtex2html:
+bibtex2html: