Date: Sat, 17 Dec 2016 12:57:13 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r428734 - in head/devel/protobuf: . files Message-ID: <201612171257.uBHCvDUX077941@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sat Dec 17 12:57:13 2016 New Revision: 428734 URL: https://svnweb.freebsd.org/changeset/ports/428734 Log: - Allow make test PR: 215346 Submitted by: jbeich Added: head/devel/protobuf/files/patch-src-google-protobuf-testing-zcgunzip.cc (contents, props changed) head/devel/protobuf/files/patch-src-google-protobuf-testing-zcgzip.cc (contents, props changed) Modified: head/devel/protobuf/Makefile head/devel/protobuf/files/patch-src-google-protobuf-stubs-atomicops.h Modified: head/devel/protobuf/Makefile ============================================================================== --- head/devel/protobuf/Makefile Sat Dec 17 12:57:08 2016 (r428733) +++ head/devel/protobuf/Makefile Sat Dec 17 12:57:13 2016 (r428734) @@ -12,17 +12,25 @@ COMMENT= Data interchange format library LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +TEST_DEPENDS= googlemock>=0:devel/googlemock \ + googletest>=0:devel/googletest + BROKEN_sparc64= fails to compile: no atomic ops available CFLAGS+= -DGOOGLE_PROTOBUF_NO_RTTI GNU_CONFIGURE= yes INSTALL_TARGET= install-strip +TEST_ARGS= ${MAKE_ARGS} ${_MAKE_JOBS} TEST_TARGET= check USE_CSTD= c99 # for audio/clementine-player support USE_LDCONFIG= yes -USES= autoreconf gmake libtool pathfix pkgconfig +USES= autoreconf gmake libtool localbase pathfix pkgconfig GH_ACCOUNT= google USE_GITHUB= yes +post-patch: + @${REINPLACE_CMD} -e 's|^check-local:|disabled-&|' ${WRKSRC}/Makefile.am + @${REINPLACE_CMD} -Ee '/gtest|mock/ s|[^ ]*lib(.*)\.la|-l\1|' ${WRKSRC}/src/Makefile.am + .include <bsd.port.mk> Modified: head/devel/protobuf/files/patch-src-google-protobuf-stubs-atomicops.h ============================================================================== --- head/devel/protobuf/files/patch-src-google-protobuf-stubs-atomicops.h Sat Dec 17 12:57:08 2016 (r428733) +++ head/devel/protobuf/files/patch-src-google-protobuf-stubs-atomicops.h Sat Dec 17 12:57:13 2016 (r428734) @@ -1,6 +1,6 @@ ---- src/google/protobuf/stubs/atomicops.h.orig 2015-05-06 14:28:24 UTC +--- src/google/protobuf/stubs/atomicops.h.orig 2016-09-24 02:12:45 UTC +++ src/google/protobuf/stubs/atomicops.h -@@ -202,6 +202,8 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR +@@ -202,6 +202,8 @@ Atomic64 Release_Load(volatile const Ato #elif defined(__GNUC__) #if defined(GOOGLE_PROTOBUF_ARCH_IA32) || defined(GOOGLE_PROTOBUF_ARCH_X64) #include <google/protobuf/stubs/atomicops_internals_x86_gcc.h> Added: head/devel/protobuf/files/patch-src-google-protobuf-testing-zcgunzip.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/protobuf/files/patch-src-google-protobuf-testing-zcgunzip.cc Sat Dec 17 12:57:13 2016 (r428734) @@ -0,0 +1,10 @@ +--- src/google/protobuf/testing/zcgunzip.cc.orig 2016-09-24 02:12:45 UTC ++++ src/google/protobuf/testing/zcgunzip.cc +@@ -42,6 +42,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <fcntl.h> ++#include <unistd.h> + + #ifdef _WIN32 + #ifndef STDIN_FILENO Added: head/devel/protobuf/files/patch-src-google-protobuf-testing-zcgzip.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/protobuf/files/patch-src-google-protobuf-testing-zcgzip.cc Sat Dec 17 12:57:13 2016 (r428734) @@ -0,0 +1,10 @@ +--- src/google/protobuf/testing/zcgzip.cc.orig 2016-09-24 02:12:45 UTC ++++ src/google/protobuf/testing/zcgzip.cc +@@ -41,6 +41,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <fcntl.h> ++#include <unistd.h> + + #ifdef _WIN32 + #ifndef STDIN_FILENO
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612171257.uBHCvDUX077941>