View | Details | Raw Unified | Return to bug 184904
Collapse All | Expand All

(-)textproc/humanzip/Makefile (-13 / +18 lines)
Lines 9-30 Link Here
9
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
10
COMMENT=	Compresses text to human readable output
10
COMMENT=	Compresses text to human readable output
11
11
12
NO_STAGE=	yes
12
LICENSE=	GPLv2 # (or later)
13
post-patch:
14
	@${REINPLACE_CMD} -e 's|g++|${CXX}|;s|-O2|${CFLAGS}|' \
15
		${WRKSRC}/${MAKEFILE}
16
13
17
MAN1=	${PORTNAME}.1
18
MLINKS=	${PORTNAME}.1 humanunzip.1
19
PLIST_FILES=	bin/${PORTNAME} bin/humanunzip
20
PORTDOCS=	CHANGELOG README TODO
14
PORTDOCS=	CHANGELOG README TODO
15
PLIST_FILES=	bin/humanunzip bin/humanzip \
16
		man/man1/humanunzip.1.gz man/man1/humanzip.1.gz
17
18
post-patch:
19
	@${REINPLACE_CMD} -e \
20
		's|g++|$${CXX}| ; \
21
		 s|-O2|$${CFLAGS}|' ${WRKSRC}/${MAKEFILE}
21
22
22
do-install:
23
do-install:
23
	@${INSTALL_PROGRAM} ${WRKSRC}/human*zip ${PREFIX}/bin/
24
.for i in humanzip humanunzip
24
	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
25
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
25
.ifndef NOPORTDOCS
26
.endfor
26
	@${INSTALL} -d ${DOCSDIR}/
27
	(cd ${WRKSRC} && ${INSTALL_MAN} humanzip.1 \
27
	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
28
		${STAGEDIR}${MAN1PREFIX}/man/man1)
28
.endif
29
	${LN} -sf humanzip.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/humanunzip.1
30
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
31
.for i in ${PORTDOCS}
32
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
33
.endfor
29
34
30
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)textproc/humanzip/files/patch-humanunzip.cpp (+10 lines)
Line 0 Link Here
1
--- humanunzip.cpp.orig
2
+++ humanunzip.cpp
3
@@ -22,6 +22,7 @@
4
 #include <fstream>
5
 #include <sstream>
6
 #include <vector>
7
+#include <unistd.h>
8
 #include <sys/stat.h>
9
 #include "humanzip.h"
10
 
(-)textproc/humanzip/files/patch-humanzip.cpp (+10 lines)
Line 0 Link Here
1
--- humanzip.cpp.orig
2
+++ humanzip.cpp
3
@@ -24,6 +24,7 @@
4
 #include <getopt.h>
5
 #include <vector>
6
 #include <iomanip>
7
+#include <unistd.h>
8
 #include <sys/stat.h>
9
 #include "humanzip.h"
10

Return to bug 184904