Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2013 14:42:35 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337357 - in head/textproc/humanzip: . files
Message-ID:  <201312241442.rBOEgZ3a027483@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Dec 24 14:42:35 2013
New Revision: 337357
URL: http://svnweb.freebsd.org/changeset/ports/337357

Log:
  - Fix biuld with clang
  - Add LICENSE
  - Support staging
  
  PR:		ports/184904
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Added:
  head/textproc/humanzip/files/
  head/textproc/humanzip/files/patch-humanunzip.cpp   (contents, props changed)
  head/textproc/humanzip/files/patch-humanzip.cpp   (contents, props changed)
Modified:
  head/textproc/humanzip/Makefile   (contents, props changed)
  head/textproc/humanzip/pkg-descr   (contents, props changed)

Modified: head/textproc/humanzip/Makefile
==============================================================================
--- head/textproc/humanzip/Makefile	Tue Dec 24 14:23:21 2013	(r337356)
+++ head/textproc/humanzip/Makefile	Tue Dec 24 14:42:35 2013	(r337357)
@@ -9,22 +9,27 @@ MASTER_SITES=	SAVANNAH CENKES
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Compresses text to human readable output
 
-NO_STAGE=	yes
-post-patch:
-	@${REINPLACE_CMD} -e 's|g++|${CXX}|;s|-O2|${CFLAGS}|' \
-		${WRKSRC}/${MAKEFILE}
+LICENSE=	GPLv2 # (or later)
 
-MAN1=	${PORTNAME}.1
-MLINKS=	${PORTNAME}.1 humanunzip.1
-PLIST_FILES=	bin/${PORTNAME} bin/humanunzip
 PORTDOCS=	CHANGELOG README TODO
+PLIST_FILES=	bin/humanunzip bin/humanzip \
+		man/man1/humanunzip.1.gz man/man1/humanzip.1.gz
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|g++|$${CXX}| ; \
+		 s|-O2|$${CFLAGS}|' ${WRKSRC}/${MAKEFILE}
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/human*zip ${PREFIX}/bin/
-	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
-.ifndef NOPORTDOCS
-	@${INSTALL} -d ${DOCSDIR}/
-	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
-.endif
+.for i in humanzip humanunzip
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
+.endfor
+	(cd ${WRKSRC} && ${INSTALL_MAN} humanzip.1 \
+		${STAGEDIR}${MAN1PREFIX}/man/man1)
+	${LN} -sf humanzip.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/humanunzip.1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in ${PORTDOCS}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
+.endfor
 
 .include <bsd.port.mk>

Added: head/textproc/humanzip/files/patch-humanunzip.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/humanzip/files/patch-humanunzip.cpp	Tue Dec 24 14:42:35 2013	(r337357)
@@ -0,0 +1,10 @@
+--- humanunzip.cpp.orig
++++ humanunzip.cpp
+@@ -22,6 +22,7 @@
+ #include <fstream>
+ #include <sstream>
+ #include <vector>
++#include <unistd.h>
+ #include <sys/stat.h>
+ #include "humanzip.h"
+ 

Added: head/textproc/humanzip/files/patch-humanzip.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/humanzip/files/patch-humanzip.cpp	Tue Dec 24 14:42:35 2013	(r337357)
@@ -0,0 +1,9 @@
+--- humanzip.cpp.orig
++++ humanzip.cpp
+@@ -24,6 +24,7 @@
+ #include <getopt.h>
+ #include <vector>
+ #include <iomanip>
++#include <unistd.h>
+ #include <sys/stat.h>
+ #include "humanzip.h"

Modified: head/textproc/humanzip/pkg-descr
==============================================================================
--- head/textproc/humanzip/pkg-descr	Tue Dec 24 14:23:21 2013	(r337356)
+++ head/textproc/humanzip/pkg-descr	Tue Dec 24 14:42:35 2013	(r337357)
@@ -9,5 +9,4 @@ print size of documents.  Humanzip does 
 size of the file as measured in bytes, although this usually happens 
 incidentally.
 
-Author: Matthew Strait
 WWW: http://savannah.nongnu.org/projects/humanzip/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312241442.rBOEgZ3a027483>