Update hexcurse to 1.60.0.
Notable changes: - Fix the license marker, hexcurse is GPLv2+ licensed - Switch to using GitHub, the old HOMEPAGE/MASTER_SITES domain expired - Add a patch from upstream to show help if no filename argument is supplied, otherwise it's not possible to quit the editor
This commit is contained in:
parent
8b6e1fa585
commit
48929cf681
@ -1,20 +1,18 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2019/07/17 14:49:21 danj Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2019/11/17 21:03:29 fcambus Exp $
|
||||
|
||||
COMMENT= user-friendly ncurses-based hexeditor with many features
|
||||
|
||||
DISTNAME= hexcurse-1.55
|
||||
GH_ACCOUNT= lonnygomes
|
||||
GH_PROJECT= hexcurse
|
||||
GH_TAGNAME= v1.60.0
|
||||
|
||||
CATEGORIES= editors
|
||||
REVISION = 2
|
||||
|
||||
HOMEPAGE= http://www.jewfish.net/description.php?title=HexCurse
|
||||
|
||||
# GPL
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB= c curses
|
||||
|
||||
MASTER_SITES= http://jewfish.net/downloads/
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (hexcurse-1.55.tar.gz) = uNWJ+ArPpZD93WDZSCz2ujiylb94WuTgr/N7WrQ2yxY=
|
||||
SIZE (hexcurse-1.55.tar.gz) = 113512
|
||||
SHA256 (hexcurse-1.60.0.tar.gz) = 9pGeSoJO41TwA/DELkxM75ipOqfjqkScrt0T+aLbVTA=
|
||||
SIZE (hexcurse-1.60.0.tar.gz) = 171904
|
||||
|
@ -1,22 +0,0 @@
|
||||
$OpenBSD: patch-src_getopt_c,v 1.1 2010/05/23 16:42:07 espie Exp $
|
||||
--- src/getopt.c.orig Thu Mar 21 17:55:54 2002
|
||||
+++ src/getopt.c Sun May 23 18:41:03 2010
|
||||
@@ -32,6 +32,7 @@
|
||||
#undef optind
|
||||
#undef alloca
|
||||
|
||||
+#if 0
|
||||
/* The following modification was submited by Claudio Fanin. This change *
|
||||
* enables hexcurse to be compiled with SGI's proprietary compiler */
|
||||
#ifdef _SGIAPI
|
||||
@@ -39,8 +40,9 @@
|
||||
#else
|
||||
char *alloca ();
|
||||
#endif
|
||||
-#define __alloca alloca
|
||||
/* end of modification */
|
||||
+#endif
|
||||
+#define __alloca alloca
|
||||
|
||||
#ifdef HAVE_OPTIND
|
||||
extern char* optarg;
|
25
editors/hexcurse/patches/patch-src_hexcurse_c
Normal file
25
editors/hexcurse/patches/patch-src_hexcurse_c
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-src_hexcurse_c,v 1.1 2019/11/17 21:03:29 fcambus Exp $
|
||||
|
||||
Show help if no filename argument is supplied, otherwise it's not possible
|
||||
to quit the editor.
|
||||
|
||||
Upstream commit 37f94f2c1d0a3cc5110b2771e02ed894522d65d3.
|
||||
|
||||
Index: src/hexcurse.c
|
||||
--- src/hexcurse.c.orig
|
||||
+++ src/hexcurse.c
|
||||
@@ -217,9 +217,13 @@ off_t parseArgs(int argc, char *argv[])
|
||||
fpINfilename = strdup(argv[0]);
|
||||
}
|
||||
|
||||
- if (fpINfilename && strcmp(fpINfilename, ""))
|
||||
+ if (fpINfilename == NULL) {
|
||||
+ print_usage();
|
||||
+ exit(-1);
|
||||
+ } else if (fpINfilename && strcmp(fpINfilename, "")) {
|
||||
if ((fpIN = fopen(fpINfilename, "r")) == NULL)
|
||||
exit_err("Could not open file");
|
||||
+ }
|
||||
|
||||
return ((fpIN != NULL) ? maxLoc(fpIN):0); /* return file length */
|
||||
}
|
Loading…
Reference in New Issue
Block a user