Browse Source

ht: Remove package

$PREFIX/bin/ht from this package conflicts with texlive-bin. Let's
remove this package for now and add it back if needed.
android-5
Fredrik Fornwall 7 years ago
parent
commit
26bee40fbf
  1. 14
      packages/ht/build.sh
  2. 12
      packages/ht/htapp.cc.patch

14
packages/ht/build.sh

@ -1,14 +0,0 @@
TERMUX_PKG_HOMEPAGE=http://hte.sourceforge.net/
TERMUX_PKG_DESCRIPTION="File editor/viewer/analyzer for executables"
TERMUX_PKG_VERSION=2.1.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/hte/ht-source/ht-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70
TERMUX_PKG_DEPENDS="ncurses, liblzo"
termux_step_post_configure () {
mkdir -p $TERMUX_PKG_BUILDDIR/tools/
g++ -Os $TERMUX_PKG_SRCDIR/tools/bin2c.c -o $TERMUX_PKG_BUILDDIR/tools/bin2c
# Update timestamps so that the binary does not get rebuilt:
touch -d "next hour" $TERMUX_PKG_BUILDDIR/tools/bin2c
}

12
packages/ht/htapp.cc.patch

@ -1,12 +0,0 @@
diff -u -r ../ht-2.1.0/htapp.cc ./htapp.cc
--- ../ht-2.1.0/htapp.cc 2014-09-14 17:55:26.000000000 +0200
+++ ./htapp.cc 2017-07-13 11:21:19.614513024 +0200
@@ -3023,7 +3023,7 @@
{
uint a = 2;
uint b = u/a;
- while (abs(a - b) > 1) {
+ while (abs(a - (long long) b) > 1) {
a = (a+b)/2;
b = u/a;
}
Loading…
Cancel
Save