[Bug 223176] [revive port] archivers/zipios: small C++ library for reading and writing zip files
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 3 18:09:30 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223176
--- Comment #10 from bcomputerguy <owen94012 at 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_CollectionCollection.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);
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= DOCS
DOCS_DESC= build DOXYGEN documents
DOCS_CONFIGURE_ON= -DBUILD_DOCUMENTATION:BOOL=ON
DOCS_CONFIGURE_OFF= -DBUILD_DOCUMENTATION:BOOL=OFF
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
OPTIONS_SUB= yes
USE_LDCONFIG= 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_CollectionCollection.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?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list