Monday, November 01, 2021

[update] graphics/jhead to 3.06.0.1

Hi,

It seems the development of jhead now happens on github, adapt it accordingly to
a new release and while here also change HOMEPAGE to https.

Comments? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/jhead/Makefile,v
retrieving revision 1.26
diff -u -p -u -r1.26 Makefile
--- Makefile 26 Feb 2021 18:20:35 -0000 1.26
+++ Makefile 1 Nov 2021 13:00:09 -0000
@@ -2,11 +2,13 @@

COMMENT = Exif jpeg camera setting parser and thumbnail remover

-DISTNAME = jhead-3.04
+GH_ACCOUNT = Matthias-Wandel
+GH_PROJECT = jhead
+GH_TAGNAME = 3.06.0.1
+
CATEGORIES = graphics

-HOMEPAGE = http://www.sentex.net/~mwandel/jhead/
-MASTER_SITES
= ${HOMEPAGE}
+HOMEPAGE = https://www.sentex.net/~mwandel/jhead/

MAINTAINER= Benoit Lecocq <benoit@openbsd.org>

Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/jhead/distinfo,v
retrieving revision 1.17
diff -u -p -u -r1.17 distinfo
--- distinfo 15 Dec 2019 17:00:12 -0000 1.17
+++ distinfo 1 Nov 2021 13:00:09 -0000
@@ -1,2 +1,2 @@
-SHA256 (jhead-3.04.tar.gz) = 74m7z09sJe2ICIzyQqR6au3/9PCMx9wgW/PiwPEKA8k=
-SIZE (jhead-3.04.tar.gz) = 67754
+SHA256 (jhead-3.06.0.1.tar.gz) = XFJYw9eoQL+DHiIXTkokyx3juvRC98tz1asxtK4LAFg=
+SIZE (jhead-3.06.0.1.tar.gz) = 1144608
Index: patches/patch-gpsinfo_c
===================================================================
RCS file: /cvs/ports/graphics/jhead/patches/patch-gpsinfo_c,v
retrieving revision 1.7
diff -u -p -u -r1.7 patch-gpsinfo_c
--- patches/patch-gpsinfo_c 26 Feb 2021 18:20:35 -0000 1.7
+++ patches/patch-gpsinfo_c 1 Nov 2021 13:00:09 -0000
@@ -1,16 +1,8 @@
$OpenBSD: patch-gpsinfo_c,v 1.7 2021/02/26 18:20:35 naddy Exp $
---- gpsinfo.c.orig Sun Dec 15 17:46:17 2019
-+++ gpsinfo.c Sun Dec 15 17:48:33 2019
-@@ -146,7 +146,7 @@
- FmtString[3+a*7] = (char)('0'+digits);
-
- Values[a] = ConvertAnyFormat(ValuePtr+a*ComponentSize, Format);
-- }
-+ }
-
- snprintf(TempString, sizeof(TempString), FmtString, Values[0], Values[1], Values[2]);
-
-@@ -162,8 +162,8 @@
+Index: gpsinfo.c
+--- gpsinfo.c.orig
++++ gpsinfo.c
+@@ -168,8 +168,8 @@ void ProcessGpsInfo(unsigned char * DirStart, unsigned
break;

case TAG_GPS_ALT:
Index: patches/patch-jhead_c
===================================================================
RCS file: /cvs/ports/graphics/jhead/patches/patch-jhead_c,v
retrieving revision 1.14
diff -u -p -u -r1.14 patch-jhead_c
--- patches/patch-jhead_c 15 Dec 2019 17:00:12 -0000 1.14
+++ patches/patch-jhead_c 1 Nov 2021 13:00:09 -0000
@@ -1,7 +1,8 @@
$OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
---- jhead.c.orig Fri Nov 22 15:27:34 2019
-+++ jhead.c Sun Dec 15 17:39:14 2019
-@@ -165,7 +165,8 @@
+Index: jhead.c
+--- jhead.c.orig
++++ jhead.c
+@@ -166,7 +166,8 @@ static int FileEditComment(char * TempFileName, char *
}
if (strlen(Editor) > PATH_MAX) ErrFatal("env too long");

@@ -11,7 +12,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/1
a = system(QuotedPath);
}

-@@ -272,7 +273,8 @@
+@@ -273,7 +274,8 @@ static int ModifyDescriptComment(char * OutComment, ch
if (!HasScandate && !ImageInfo.DateTime[0]){
// Scan date is not in the file yet, and it doesn't have one built in. Add it.
char Temp[40];
@@ -21,7 +22,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/1
strncat(OutComment, Temp, MAX_COMMENT_SIZE-5-strlen(OutComment));
Modified = TRUE;
}
-@@ -304,8 +306,10 @@
+@@ -305,8 +307,10 @@ static int AutoResizeCmdStuff(void)

if (scale < 0.4) scale = 0.4; // Don't scale down by too much.

@@ -34,7 +35,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/1
return TRUE;
}

-@@ -632,7 +636,8 @@
+@@ -641,7 +645,8 @@ static void DoFileRenaming(const char * FileName)
memcpy(pat, pattern+ppos, 4);
pat[a-ppos] = 'd'; // Replace 'i' with 'd' for '%d'
pat[a-ppos+1] = '\0';
@@ -44,7 +45,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/1
nl = strlen(num);
l = strlen(pattern+a+1);
if (ppos+nl+l+1 >= PATH_MAX) ErrFatal("str overflow");
-@@ -648,7 +653,7 @@
+@@ -657,7 +662,7 @@ static void DoFileRenaming(const char * FileName)
strftime(NewName, PATH_MAX, pattern, &tm);
}else{
// My favourite scheme.
@@ -53,7 +54,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/1
tm.tm_mon+1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
}

-@@ -692,7 +697,8 @@
+@@ -701,7 +706,8 @@ static void DoFileRenaming(const char * FileName)
printf("%s --> %s\n",FileName, NewName);
#ifdef _WIN32
if (RenameAssociatedFiles){
@@ -63,7 +64,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/1
RenameAssociated(FileName, NewName);
}

No comments:

Post a Comment