summaryrefslogtreecommitdiffstats
path: root/office/ReText
diff options
context:
space:
mode:
Diffstat (limited to 'office/ReText')
-rw-r--r--office/ReText/README8
-rw-r--r--office/ReText/ReText.SlackBuild16
-rw-r--r--office/ReText/ReText.info2
3 files changed, 17 insertions, 9 deletions
diff --git a/office/ReText/README b/office/ReText/README
index 1874528975..5b2a0a78dc 100644
--- a/office/ReText/README
+++ b/office/ReText/README
@@ -1,8 +1,6 @@
ReText is a simple but powerful editor for Markdown and
-reStructuredText markup languages. ReText is written in
-Python language and works on Linux and other POSIX-
-compatible platforms.
+reStructuredText markup languages. ReText is written in Python
+language and works on Linux and other POSIX-compatible platforms.
-It has some optional dependencies, e.g. Pygments, MarkupSafe,
-docutils, Markdown, etc.
+It has some optional dependencies, e.g. MarkupSafe, Markdown, etc.
This depends on the functions you enabled in ReText.
diff --git a/office/ReText/ReText.SlackBuild b/office/ReText/ReText.SlackBuild
index 59684d3525..45111523aa 100644
--- a/office/ReText/ReText.SlackBuild
+++ b/office/ReText/ReText.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ReText
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ReText
VERSION=${VERSION:-7.0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -67,4 +77,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/office/ReText/ReText.info b/office/ReText/ReText.info
index 3dd43ad5fb..1f0ed3b32e 100644
--- a/office/ReText/ReText.info
+++ b/office/ReText/ReText.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/31/91/6eff0afd947ca945dd63bb4f
MD5SUM="06a9ff30858db23ea170a2c028392adb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3 Markups python3-PyQt5 Markdown python-markdown-math"
+REQUIRES="Markups python-markdown-math"
MAINTAINER="MDrights"
EMAIL="psychi2009@gmail.com"