Index: devel/protobuf-c/Makefile =================================================================== --- devel/protobuf-c/Makefile (revision 362173) +++ devel/protobuf-c/Makefile (working copy) @@ -2,16 +2,33 @@ # $FreeBSD$ PORTNAME= protobuf-c -PORTVERSION= 0.15 -PORTREVISION= 2 +PORTVERSION= 1.0.0 CATEGORIES= devel -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +MASTER_SITES= https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/v${PORTVERSION}/ \ + http://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/v${PORTVERSION}/ MAINTAINER= ahurt@anbcs.com -COMMENT= This package provides a code generator and runtime libraries to use Protocol Buffers from pure C (not C++) +COMMENT= Code generator and libraries to use Protocol Buffers from pure C +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + LIB_DEPENDS= libprotobuf.so:${PORTSDIR}/devel/protobuf +OPTIONS_DEFINE= DOCS +OPTIONS_SUB= yes + +.include + +GITHUB_USER= protobuf-c +GITHUB_REPO= protobuf-c + +ALL_TARGET= all +.if ${PORT_OPTIONS:MDOCS} +BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen +ALL_TARGET+= html-local +.endif + USES= gmake libtool:keepla pathfix pkgconfig GNU_CONFIGURE= yes USE_LDCONFIG= yes @@ -22,6 +39,13 @@ post-patch: @${REINPLACE_CMD} -e 's|GREP "\\-L"|GREP "bin/ld"|g' ${WRKSRC}/configure +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libprotobuf-c.so.1.0.0 +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/html + ${INSTALL_DATA} ${WRKSRC}/html/* ${STAGEDIR}${DOCSDIR}/html +.endif + tests: build @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check) Index: devel/protobuf-c/distinfo =================================================================== --- devel/protobuf-c/distinfo (revision 362173) +++ devel/protobuf-c/distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (protobuf-c-0.15.tar.gz) = 8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036 -SIZE (protobuf-c-0.15.tar.gz) = 500911 +SHA256 (protobuf-c-1.0.0.tar.gz) = de453698d693bd1a3842759964d436e66a7afee18f3be1e324b7b74e8c0eaaea +SIZE (protobuf-c-1.0.0.tar.gz) = 448440 Index: devel/protobuf-c/pkg-descr =================================================================== --- devel/protobuf-c/pkg-descr (revision 362173) +++ devel/protobuf-c/pkg-descr (working copy) @@ -2,4 +2,4 @@ Protocol Buffers from pure C (not C++). It uses a modified version of protoc called protoc-c. -WWW: http://code.google.com/p/protobuf-c/ +WWW: http://github.com/protobuf-c/protobuf-c Index: devel/protobuf-c/pkg-plist =================================================================== --- devel/protobuf-c/pkg-plist (revision 362173) +++ devel/protobuf-c/pkg-plist (working copy) @@ -1,13 +1,96 @@ bin/protoc-c -include/google/protobuf-c/protobuf-c-dispatch.h -include/google/protobuf-c/protobuf-c-private.h -include/google/protobuf-c/protobuf-c-rpc.h include/google/protobuf-c/protobuf-c.h +include/protobuf-c/protobuf-c.h lib/libprotobuf-c.a lib/libprotobuf-c.la lib/libprotobuf-c.so -lib/libprotobuf-c.so.0 -lib/libprotobuf-c.so.0.0.0 +lib/libprotobuf-c.so.1 +lib/libprotobuf-c.so.1.0.0 libdata/pkgconfig/libprotobuf-c.pc +%%DOCS%%%%DOCSDIR%%/html/annotated.html +%%DOCS%%%%DOCSDIR%%/html/annotated.js +%%DOCS%%%%DOCSDIR%%/html/bc_s.png +%%DOCS%%%%DOCSDIR%%/html/bdwn.png +%%DOCS%%%%DOCSDIR%%/html/classes.html +%%DOCS%%%%DOCSDIR%%/html/closed.png +%%DOCS%%%%DOCSDIR%%/html/dir_2c96eb53f97134aa5468aeff4257fb45.html +%%DOCS%%%%DOCSDIR%%/html/doxygen.css +%%DOCS%%%%DOCSDIR%%/html/doxygen.png +%%DOCS%%%%DOCSDIR%%/html/dynsections.js +%%DOCS%%%%DOCSDIR%%/html/ftv2blank.png +%%DOCS%%%%DOCSDIR%%/html/ftv2cl.png +%%DOCS%%%%DOCSDIR%%/html/ftv2doc.png +%%DOCS%%%%DOCSDIR%%/html/ftv2folderclosed.png +%%DOCS%%%%DOCSDIR%%/html/ftv2folderopen.png +%%DOCS%%%%DOCSDIR%%/html/ftv2lastnode.png +%%DOCS%%%%DOCSDIR%%/html/ftv2link.png +%%DOCS%%%%DOCSDIR%%/html/ftv2mlastnode.png +%%DOCS%%%%DOCSDIR%%/html/ftv2mnode.png +%%DOCS%%%%DOCSDIR%%/html/ftv2mo.png +%%DOCS%%%%DOCSDIR%%/html/ftv2node.png +%%DOCS%%%%DOCSDIR%%/html/ftv2ns.png +%%DOCS%%%%DOCSDIR%%/html/ftv2plastnode.png +%%DOCS%%%%DOCSDIR%%/html/ftv2pnode.png +%%DOCS%%%%DOCSDIR%%/html/ftv2splitbar.png +%%DOCS%%%%DOCSDIR%%/html/ftv2vertline.png +%%DOCS%%%%DOCSDIR%%/html/functions.html +%%DOCS%%%%DOCSDIR%%/html/functions_vars.html +%%DOCS%%%%DOCSDIR%%/html/gencode.html +%%DOCS%%%%DOCSDIR%%/html/group__api.html +%%DOCS%%%%DOCSDIR%%/html/group__api.js +%%DOCS%%%%DOCSDIR%%/html/index.html +%%DOCS%%%%DOCSDIR%%/html/jquery.js +%%DOCS%%%%DOCSDIR%%/html/modules.html +%%DOCS%%%%DOCSDIR%%/html/modules.js +%%DOCS%%%%DOCSDIR%%/html/nav_f.png +%%DOCS%%%%DOCSDIR%%/html/nav_g.png +%%DOCS%%%%DOCSDIR%%/html/nav_h.png +%%DOCS%%%%DOCSDIR%%/html/navtree.css +%%DOCS%%%%DOCSDIR%%/html/navtree.js +%%DOCS%%%%DOCSDIR%%/html/navtreeindex0.js +%%DOCS%%%%DOCSDIR%%/html/open.png +%%DOCS%%%%DOCSDIR%%/html/pack.html +%%DOCS%%%%DOCSDIR%%/html/pages.html +%%DOCS%%%%DOCSDIR%%/html/resize.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCAllocator.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCAllocator.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCBinaryData.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCBinaryData.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCBuffer.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCBuffer.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCBufferSimple.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCBufferSimple.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCEnumDescriptor.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCEnumDescriptor.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCEnumValue.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCEnumValue.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCEnumValueIndex.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCEnumValueIndex.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCFieldDescriptor.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCFieldDescriptor.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCIntRange.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCIntRange.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMessage.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMessage.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMessageDescriptor.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMessageDescriptor.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMessageUnknownField.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMessageUnknownField.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMethodDescriptor.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCMethodDescriptor.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCService.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCService.js +%%DOCS%%%%DOCSDIR%%/html/structProtobufCServiceDescriptor.html +%%DOCS%%%%DOCSDIR%%/html/structProtobufCServiceDescriptor.js +%%DOCS%%%%DOCSDIR%%/html/sync_off.png +%%DOCS%%%%DOCSDIR%%/html/sync_on.png +%%DOCS%%%%DOCSDIR%%/html/tab_a.png +%%DOCS%%%%DOCSDIR%%/html/tab_b.png +%%DOCS%%%%DOCSDIR%%/html/tab_h.png +%%DOCS%%%%DOCSDIR%%/html/tab_s.png +%%DOCS%%%%DOCSDIR%%/html/tabs.css @dirrm include/google/protobuf-c +@dirrm include/protobuf-c @dirrmtry include/google +%%DOCS%%@dirrmtry %%DOCSDIR%%/html +%%DOCS%%@dirrmtry %%DOCSDIR%%