On Fri, Dec 07, 2018 at 09:13:27AM +0100, Klemens Nanni wrote:
> * make -> gmake symlink is needed for tests only as tests/Makefile uses
>   `make' whereas Makefile already goes with proper $(MAKE) so turn
>   do-configure into pre-test 
> * post-install is pretty much a do-install, so simply pass the proper
>   mandir and just uncompress the manual as that's the only required step
The update went without them, so I'd like to get it in now.

No package change, hence no bump.

Feedback? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/fuse-zip/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile    7 Dec 2018 13:20:31 -0000       1.12
+++ Makefile    9 Dec 2018 19:43:10 -0000
@@ -20,18 +20,17 @@ COMPILER =          base-clang ports-gcc base-gc
 LIB_DEPENDS =          archivers/libzip>=0.11.2
 
 MAKE_FLAGS =           CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
-                       LDFLAGS="${LDFLAGS}" prefix="${PREFIX}"
+                       LDFLAGS="${LDFLAGS}"
+FAKE_FLAGS =           prefix="${PREFIX}" mandir="${PREFIX}/man"
 
 USE_GMAKE =            Yes
 
 TEST_TARGET =          check
 
-do-configure:
-       ln -s ${LOCALBASE}/bin/gmake ${WRKDIR}/bin/make
+pre-test:
+       ln -sf ${LOCALBASE}/bin/gmake ${WRKDIR}/bin/make
 
 post-install:
-       ${INSTALL_PROGRAM} ${WRKBUILD}/fuse-zip ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/fuse-zip.1 ${PREFIX}/man/man1
-       rm -Rf ${PREFIX}/share/man
+       gzip -d ${PREFIX}/man/man[0-9]/*.gz
 
 .include <bsd.port.mk>

Reply via email to