Add recipe for ht hex editor

This commit is contained in:
François Revol
2020-08-06 02:16:13 +02:00
parent e8214d3ceb
commit 5c79becea7
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
SUMMARY="A file viewer, editor and analyzer for text, binary, and executable file"
DESCRIPTION="HT is a file editor/viewer/analyzer for executables.
The goal is to combine the low-level functionality of a debugger \
and the usability of IDEs. We plan to implement all (hex-)editing \
features and support of the most important file formats."
HOMEPAGE="http://hte.sourceforge.net/"
COPYRIGHT="1999-2002 Stefan Weyergraf
1999-2002 Sebastian Biallas"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/hte/files/ht-source/ht-$portVersion.tar.bz2"
CHECKSUM_SHA256="31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70"
SOURCE_DIR="ht-$portVersion"
PATCHES="hteditor-2.1.0.patchset"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
ht$secondaryArchSuffix = $portVersion
cmd:ht$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:liblzo2$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:liblzo2$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoheader
cmd:awk
cmd:bison$secondaryArchSuffix
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:makeinfo
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,27 @@
From f16e543f291c98ef5a09e44e42af6ff95b777c8b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Thu, 6 Aug 2020 02:06:25 +0200
Subject: [PATCH] Fix build (ambiguous overloaded abs warning)
---
htapp.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/htapp.cc b/htapp.cc
index 64d8d2f..2979c03 100644
--- a/htapp.cc
+++ b/htapp.cc
@@ -3021,8 +3021,8 @@ void do_modal_resize()
static uint isqr(uint u)
{
- uint a = 2;
- uint b = u/a;
+ int a = 2;
+ int b = u/a;
while (abs(a - b) > 1) {
a = (a+b)/2;
b = u/a;
--
2.28.0