ports/176042: archivers/hlextract update and maintainer change
Danilo Egêa Gondolfo
danilogondolfo at gmail.com
Tue Feb 12 01:00:00 UTC 2013
>Number: 176042
>Category: ports
>Synopsis: archivers/hlextract update and maintainer change
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 12 01:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Danilo Egêa Gondolfo
>Release: FreeBSD 9.1-RELEASE
>Organization:
Universidade Estadual de Maringá
>Environment:
FreeBSD projeto 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243752M: Sat Dec 1 13:35:03 BRST 2012 root at projeto:/usr/obj/usr/src/sys/PROJETO amd64
>Description:
archivers/hlextract update and maintainer change.
Related PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=176040 (dependence of hlextract)
Changes:
- Patch to silence clang warnings
- Update from 2.4.3 to 2.4.4
- Maintainer change
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 312084)
+++ Makefile (working copy)
@@ -2,12 +2,12 @@
# $FreeBSD$
PORTNAME= hlextract
-PORTVERSION= 2.4.3
+PORTVERSION= 2.4.4
CATEGORIES= archivers games
MASTER_SITES= http://nemesis.thewavelength.net/files/files/
DISTNAME= hllib${PORTVERSION:S/.//g}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= danilogondolfo at gmail.com
COMMENT= Utility to extract data from various Half-Life file formats
LICENSE= GPLv2
@@ -17,12 +17,10 @@
USE_ZIP= yes
WRKSRC= ${WRKDIR}/HLExtract
+PATCH_WRKSRC= ${WRKDIR}
+
PLIST_FILES= bin/${PORTNAME}
-post-patch:
- @${REINPLACE_CMD} -e 's,linux/limits,sys/param, ; \
- s,HLExtract\.exe,${PORTNAME},' ${WRKSRC}/Main.c
-
do-build:
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
${WRKSRC}/Main.c -o ${WRKSRC}/${PORTNAME} -lhl
Index: distinfo
===================================================================
--- distinfo (revision 312084)
+++ distinfo (working copy)
@@ -1,2 +1,2 @@
-SHA256 (hllib243.zip) = 2eafa706ab4cccea0c9966f45e5eabf4bad27b5b4b224cc6592ba68debd54ae0
-SIZE (hllib243.zip) = 591480
+SHA256 (hllib244.zip) = cb94da1c32e9577dce1aa2bbb77f283212684afcd7814d42228c9ffff71d3699
+SIZE (hllib244.zip) = 593745
Index: files/patch-hlextract
===================================================================
--- files/patch-hlextract (revision 0)
+++ files/patch-hlextract (working copy)
@@ -0,0 +1,82 @@
+diff -ru ../orig/HLExtract/Main.c ./HLExtract/Main.c
+--- ../orig/HLExtract/Main.c 2011-09-17 00:41:54.000000000 -0300
++++ ./HLExtract/Main.c 2013-02-11 18:29:02.880217165 -0200
+@@ -52,7 +52,7 @@
+ # define WIN32_LEAN_AND_MEAN
+ # include <windows.h>
+ #else
+-# include <linux/limits.h>
++# include <sys/param.h>
+ # define MAX_PATH PATH_MAX
+
+ # define FOREGROUND_BLUE 0x0001
+@@ -618,15 +618,15 @@
+ printf("\n");
+ printf("Example HLExtract usage:\n");
+ #ifdef _WIN32
+- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -d \"C:\\backup\" -e \"root\\valve\\models\" -e \"root\\valve\\config.cfg\"\n");
+- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -c -m -v\n");
+- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -lf \"C:\\half-life.txt\" -m -s\n");
+- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -m -f\n");
++ printf("hlextract -p \"C:\\half-life.gcf\" -d \"C:\\backup\" -e \"root\\valve\\models\" -e \"root\\valve\\config.cfg\"\n");
++ printf("hlextract -p \"C:\\half-life.gcf\" -c -m -v\n");
++ printf("hlextract -p \"C:\\half-life.gcf\" -lf \"C:\\half-life.txt\" -m -s\n");
++ printf("hlextract -p \"C:\\half-life.gcf\" -m -f\n");
+ #else
+- printf("HLExtract.exe -p \"~/half-life.gcf\" -d \"~/backup\" -e \"root/valve/models\" -e \"root/valve/config.cfg\"\n");
+- printf("HLExtract.exe -p \"~/half-life.gcf\" -c -m -v\n");
+- printf("HLExtract.exe -p \"~/half-life.gcf\" -lf \"~/half-life.txt\" -m -s\n");
+- printf("HLExtract.exe -p \"~/half-life.gcf\" -m -f\n");
++ printf("hlextract -p \"~/half-life.gcf\" -d \"~/backup\" -e \"root/valve/models\" -e \"root/valve/config.cfg\"\n");
++ printf("hlextract -p \"~/half-life.gcf\" -c -m -v\n");
++ printf("hlextract -p \"~/half-life.gcf\" -lf \"~/half-life.txt\" -m -s\n");
++ printf("hlextract -p \"~/half-life.gcf\" -m -f\n");
+ #endif
+ }
+
+@@ -657,6 +657,8 @@
+ fprintf(pFile, "%s\n", lpPath);
+ }
+ break;
++ default:
++ ;
+ }
+ }
+
+@@ -843,6 +845,8 @@
+ PrintValidation(eValidation);
+ printf("\n");
+ break;
++ default:
++ ;
+ }
+ }
+ else
+@@ -851,6 +855,8 @@
+ printf(" \n");
+ }
+ break;
++ default:
++ ;
+ }
+
+ return eValidation;
+@@ -882,6 +888,8 @@
+ case HL_ATTRIBUTE_STRING:
+ printf("%s%s: %s%s\n", lpPrefix, pAttribute->lpName, pAttribute->Value.String.lpValue, lpPostfix);
+ break;
++ default:
++ ;
+ }
+ }
+
+@@ -1151,6 +1159,8 @@
+ printf(" Size: %u B\n", hlFileGetSize(pSubItem));
+ printf(" Size On Disk: %u B\n", hlFileGetSizeOnDisk(pSubItem));
+ break;
++ default:
++ ;
+ }
+
+ uiItemCount = hlPackageGetItemAttributeCount();
+Only in ./HLExtract: Main.c.bak
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list