Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Nov 2017 18:09:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223176] [revive port] archivers/zipios: small C++ library for reading and writing zip files
Message-ID:  <bug-223176-13-XHvuV5mGX0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223176-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223176-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223176

--- Comment #10 from bcomputerguy <owen94012@gmail.com> ---
Question:

I made the edits you suggested but selecting docs, build works fine because=
 I
have this to move and gzip the docs:
post-install:
        @(${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios.3
${STAGEDIR}${PREFIX}/share/man/zipios.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_CollectionCollecti=
on.3
${STAGEDIR}${PREFIX}/share/man/zipios_CollectionCollection.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_DirectoryEntry.3
${STAGEDIR}${PREFIX}/share/man/zipios_DirectoryEntry.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_FileCollection.3
${STAGEDIR}${PREFIX}/share/man/zipios_FileCollection.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_FileEntry.3
${STAGEDIR}${PREFIX}/share/man/zipios_FileEntry.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_FilePath.3
${STAGEDIR}${PREFIX}/share/man/zipios_FilePath.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_VirtualSeeker.3
${STAGEDIR}${PREFIX}/share/man/zipios_VirtualSeeker.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_ZipFile.3
${STAGEDIR}${PREFIX}/share/man/zipios_ZipFile.3 && \
        ${RM} -rf ${STAGEDIR}${PREFIX}/share/man/man3 && \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios.3 && \=20
        ${GZIP_CMD}
${STAGEDIR}${PREFIX}/share/man/zipios_CollectionCollection.3 && \=20=20
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_DirectoryEntry.3 =
&& \=20
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_FileCollection.3 =
&& \=20
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_FileEntry.3 && \=
=20=20
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_FilePath.3 && \=
=20=20
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_VirtualSeeker.3 &=
& \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_ZipFile.3);


the issue is if I do not select docs then the build fails because the files
aren't build.

I've been trying to understand this:
https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html

but i've tried


OPTIONS_DEFINE=3D         DOCS
DOCS_DESC=3D              build DOXYGEN documents
DOCS_CONFIGURE_ON=3D      -DBUILD_DOCUMENTATION:BOOL=3DON
DOCS_CONFIGURE_OFF=3D     -DBUILD_DOCUMENTATION:BOOL=3DOFF
DOCS_BUILD_DEPENDS=3D     doxygen:devel/doxygen
OPTIONS_SUB=3D            yes
USE_LDCONFIG=3D           yes

.include <bsd.port.options.mk>

.include <bsd.port.pre.mk>
post-install:
.if ${PORT_OPTIONS:DOCS}
        @(${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios.3
${STAGEDIR}${PREFIX}/share/man/zipios.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_CollectionCollecti=
on.3
${STAGEDIR}${PREFIX}/share/man/zipios_CollectionCollection.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_DirectoryEntry.3
${STAGEDIR}${PREFIX}/share/man/zipios_DirectoryEntry.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_FileCollection.3
${STAGEDIR}${PREFIX}/share/man/zipios_FileCollection.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_FileEntry.3
${STAGEDIR}${PREFIX}/share/man/zipios_FileEntry.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_FilePath.3
${STAGEDIR}${PREFIX}/share/man/zipios_FilePath.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_VirtualSeeker.3
${STAGEDIR}${PREFIX}/share/man/zipios_VirtualSeeker.3 && \
        ${MV} ${STAGEDIR}${PREFIX}/share/man/man3/zipios_ZipFile.3
${STAGEDIR}${PREFIX}/share/man/zipios_ZipFile.3 && \
        ${RM} -rf ${STAGEDIR}${PREFIX}/share/man/man3 && \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios.3 && \
        ${GZIP_CMD}
${STAGEDIR}${PREFIX}/share/man/zipios_CollectionCollection.3 && \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_DirectoryEntry.3 =
&& \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_FileCollection.3 =
&& \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_FileEntry.3 && \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_FilePath.3 && \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_VirtualSeeker.3 &=
& \
        ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/zipios_ZipFile.3);
.endif
.include <bsd.port.post.mk>

the project seems to build if I have docs options check or unchecked but I
don't know if I am doing this part correctly.

Can you provide some feedback on how to improve?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223176-13-XHvuV5mGX0>