From 9b696c695da6116342f09738395e498b47fab2d8 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Sat, 13 Jun 2015 13:52:15 +0000 Subject: - Use DISTVERSIONSUFFIX instead of DISTFILES - Add my LOCAL to MASTER_SITES - Simplify WRKSRC - Use USES=tar:tgz - Regenerate patch file with makepatch: - Reformat pkg-descr - Take maintainership --- editors/hexedit/Makefile | 15 ++++++++------- editors/hexedit/files/patch--search.c | 21 --------------------- editors/hexedit/files/patch-search.c | 21 +++++++++++++++++++++ editors/hexedit/pkg-descr | 10 ++++------ 4 files changed, 33 insertions(+), 34 deletions(-) delete mode 100644 editors/hexedit/files/patch--search.c create mode 100644 editors/hexedit/files/patch-search.c (limited to 'editors') diff --git a/editors/hexedit/Makefile b/editors/hexedit/Makefile index fa27e999e0b9..55479bb957e9 100644 --- a/editors/hexedit/Makefile +++ b/editors/hexedit/Makefile @@ -3,23 +3,24 @@ PORTNAME= hexedit PORTVERSION= 1.2.13 +DISTVERSIONSUFFIX= .src CATEGORIES= editors -MASTER_SITES= http://rigaux.org/ -DISTFILES= ${DISTNAME}.src.tgz +MASTER_SITES= http://rigaux.org/ \ + LOCAL/sunpoet -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= View and edit files in hexadecimal or ASCII LICENSE= GPLv2 -WRKSRC= ${WRKDIR}/${DISTNAME:S/-${PORTVERSION}//} - GNU_CONFIGURE= yes +USES= tar:tgz +WRKSRC= ${WRKDIR}/${PORTNAME} PLIST_FILES= bin/hexedit man/man1/hexedit.1.gz do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/hexedit ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/hexedit.1 ${STAGEDIR}${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/hexedit ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/hexedit.1 ${STAGEDIR}${PREFIX}/man/man1/ .include diff --git a/editors/hexedit/files/patch--search.c b/editors/hexedit/files/patch--search.c deleted file mode 100644 index a9dbb6ca1ae1..000000000000 --- a/editors/hexedit/files/patch--search.c +++ /dev/null @@ -1,21 +0,0 @@ ---- search.c.orig Tue Nov 8 17:16:47 2005 -+++ search.c Sat Jul 29 15:21:47 2006 -@@ -30,6 +30,18 @@ - if (!ask_about_save_and_redisplay()) return FALSE; - if (!displayMessageAndGetString(msg, last, tmp, tmp_size)) return FALSE; - -+ if( hexOrAscii ) { -+ char* cp = tmp; -+ char* cp2 = tmp; -+ char c; -+ while( (c = *cp++) ) { -+ if( isspace( c ) ) -+ continue; -+ *cp2++ = c; -+ } -+ *cp2 = '\0'; -+ } -+ - *sizea = strlen(tmp); - if (hexOrAscii) if (!hexStringToBinString(tmp, sizea)) return FALSE; - diff --git a/editors/hexedit/files/patch-search.c b/editors/hexedit/files/patch-search.c new file mode 100644 index 000000000000..177daa1ac004 --- /dev/null +++ b/editors/hexedit/files/patch-search.c @@ -0,0 +1,21 @@ +--- search.c.orig 2008-11-07 15:50:57 UTC ++++ search.c +@@ -30,6 +30,18 @@ static int searchA(char **string, int *s + if (!ask_about_save_and_redisplay()) return FALSE; + if (!displayMessageAndGetString(msg, last, tmp, tmp_size)) return FALSE; + ++ if( hexOrAscii ) { ++ char* cp = tmp; ++ char* cp2 = tmp; ++ char c; ++ while( (c = *cp++) ) { ++ if( isspace( c ) ) ++ continue; ++ *cp2++ = c; ++ } ++ *cp2 = '\0'; ++ } ++ + *sizea = strlen(tmp); + if (hexOrAscii) if (!hexStringToBinString(tmp, sizea)) return FALSE; + diff --git a/editors/hexedit/pkg-descr b/editors/hexedit/pkg-descr index 3c34a0975423..fdf1bb48d3ff 100644 --- a/editors/hexedit/pkg-descr +++ b/editors/hexedit/pkg-descr @@ -1,8 +1,6 @@ -Hexedit view and edit files in hexadecimal or in ASCII. -hexedit shows a file both in ASCII and in hexadecimal. -The file can be a device as the file is not whole read. -You can modify the file and search through it. -You have also copy&paste, and save to file functions. -Modifications are shown in bold. +Hexedit view and edit files in hexadecimal or in ASCII. hexedit shows a file +both in ASCII and in hexadecimal. The file can be a device as the file is not +whole read. You can modify the file and search through it. You have also +copy&paste, and save to file functions. Modifications are shown in bold. WWW: http://rigaux.org/hexedit.html -- cgit