mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
development/THE: Updated for version 3.3RC8.
Upstream swear that this is rc8 apparently. Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
750b2ddb4d
commit
673032bfdb
6 changed files with 54 additions and 60 deletions
|
@ -1,11 +0,0 @@
|
|||
--- configure.orig Thu Oct 30 15:13:56 2014
|
||||
+++ configure Sun Dec 28 17:25:25 2014
|
||||
@@ -3381,7 +3381,7 @@
|
||||
osis64bit=yes
|
||||
fi
|
||||
;;
|
||||
- *-freebsd*)
|
||||
+ *-freebsd* | *-openbsd* | *-bitrig*)
|
||||
mach="`uname -m`"
|
||||
if test "$mach" = "amd64"; then
|
||||
bitflag="64"
|
|
@ -1,11 +0,0 @@
|
|||
--- file.c.orig 2013-07-09 17:06:21.000000000 -0700
|
||||
+++ file.c 2018-06-14 22:20:32.667616957 -0700
|
||||
@@ -759,7 +759,7 @@ bool called_from_get_command;
|
||||
if (feof(fp))
|
||||
{
|
||||
eof_reached = TRUE;
|
||||
- for (;*(trec+read_start+chars_read-1)==DOSEOF;chars_read--)
|
||||
+ for (;chars_read>0 && *(trec+read_start+chars_read-1)==DOSEOF;chars_read--)
|
||||
;
|
||||
}
|
||||
/*
|
|
@ -1,11 +0,0 @@
|
|||
--- a//the.c.orig 2013-12-28 20:08:15.000000000 -0800
|
||||
+++ b/the.c 2018-06-14 14:49:04.152326981 -0700
|
||||
@@ -1113,7 +1113,7 @@
|
||||
#endif
|
||||
curses_started = TRUE;
|
||||
|
||||
-#if defined(USE_WINGUICURSES) || defined(USE_XCURSES)
|
||||
+#if defined(USE_WINGUICURSES)
|
||||
/*
|
||||
* Tell PDCurses which key should be returned when the window close button is clicked
|
||||
*/
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for The Hessling Editor
|
||||
|
||||
# Copyright 2012-2018 Richard Narron, California, USA
|
||||
# Copyright 2012-2022 Richard Narron, California, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,11 +25,13 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=THE
|
||||
VERSION=${VERSION:-3.3RC4}
|
||||
BUILD=${BUILD:-5}
|
||||
VERSION=${VERSION:-3.3RC8}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
TARFILE=the-3.3
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
|
@ -38,9 +40,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
|
||||
|
@ -70,8 +69,9 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
rm -rf $PRGNAM-$VERSION $TARFILE
|
||||
tar xvf $CWD/$TARFILE.tar.gz
|
||||
mv $TARFILE $PRGNAM-$VERSION
|
||||
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
|
@ -81,9 +81,6 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
cat $CWD/THE-file-c.patch | patch -p0
|
||||
cat $CWD/THE-xcurses.patch | patch -p1
|
||||
|
||||
# make the ncurses version of THE and the documentation
|
||||
mkdir ncurses
|
||||
cd ncurses
|
||||
|
@ -91,7 +88,7 @@ cd ncurses
|
|||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
../configure \
|
||||
--with-ncurses \
|
||||
--with-curses=ncurses \
|
||||
--with-rexx=regina \
|
||||
--build=$ARCH-slackware-linux \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
|
@ -103,27 +100,42 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
rm -rf doc/html
|
||||
make html
|
||||
|
||||
rm -f $PKG/usr/bin/the ; ln -fs nthe $PKG/usr/bin/the
|
||||
rm -f $PKG/usr/bin/the
|
||||
ln -fs the-con $PKG/usr/bin/the
|
||||
ln -fs the-con $PKG/usr/bin/nthe
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
install -m0644 *.html $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
install -m0644 the64.png the64.gif $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
install -m0644 the64.gif the64.png doc/html/*.html \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
install -m0644 COPYING FAQ HISTORY INSTALL README* THE*spec TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
install -m0644 COPYING FAQ HISTORY README* TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
# if PDCurses (XCurses) then make the X11 version
|
||||
if ldconfig -p | grep -q libXCurses.so ; then
|
||||
# Try to make the X11 version of THE by using PDCurses (XCurses)
|
||||
|
||||
if ldconfig -p | grep -q libXCurses.so; then
|
||||
mkdir xcurses
|
||||
cd xcurses
|
||||
|
||||
# for XCurses, create pdcurses-x11.pc pkg-config
|
||||
XLIBDIR=lib${LIBDIRSUFFIX}
|
||||
XVERSION=$(xcurses-config --version)
|
||||
mkdir -p pkgconfig
|
||||
sed -e "s/XLIBDIR/${XLIBDIR}/" \
|
||||
-e "s/XVERSION/${XVERSION}/" \
|
||||
< $CWD/libpdcurses-x11.pc \
|
||||
> pkgconfig/libpdcurses-x11.pc
|
||||
|
||||
PKG_CONFIG_PATH=pkgconfig \
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
../configure \
|
||||
--with-xcurses \
|
||||
--with-curses=pdcurses-x11 \
|
||||
--with-rexx=regina \
|
||||
--build=$ARCH-slackware-linux \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
|
@ -132,9 +144,10 @@ if ldconfig -p | grep -q libXCurses.so ; then
|
|||
--mandir=/usr/man \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make xthe
|
||||
install -m0755 xthe $PKG/usr/bin
|
||||
|
||||
make the-x11
|
||||
install -m0755 the-x11 $PKG/usr/bin
|
||||
ln -fs the-x11 $PKG/usr/bin/xthe
|
||||
fi
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="THE"
|
||||
VERSION="3.3RC4"
|
||||
VERSION="3.3RC8"
|
||||
HOMEPAGE="http://hessling-editor.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/hessling-editor/THE-3.3RC4.tar.gz"
|
||||
MD5SUM="34e6b45a023edaf4f2de112528e156e1"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/hessling-editor/the-3.3.tar.gz"
|
||||
MD5SUM="27cea01b790a1a57a80f578f69602411"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="regina-rexx"
|
||||
|
|
14
development/THE/libpdcurses-x11.pc
Normal file
14
development/THE/libpdcurses-x11.pc
Normal file
|
@ -0,0 +1,14 @@
|
|||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
libdir=${prefix}/XLIBDIR
|
||||
includedir=${prefix}/include/xcurses
|
||||
version=XVERSION
|
||||
|
||||
Name: PDCurses
|
||||
Description: PDCurses ${version} X11 library
|
||||
Version: ${version}
|
||||
URL: https://pdcurses.org
|
||||
Requires.private:
|
||||
Libs: -lXCurses
|
||||
Libs.private: -l:libXCurses.a -lXaw -lXmu -lXt -lX11 -lXpm -lSM -lICE -lXext
|
||||
Cflags: -DXCURSES -I${includedir} -I/usr/include/X11
|
Loading…
Reference in a new issue