pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/protobuf-c Import protobuf-c 1.1.1 as devel/prot...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/894622dc12d2
branches:  trunk
changeset: 652907:894622dc12d2
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Wed Jun 10 01:39:33 2015 +0000

description:
Import protobuf-c 1.1.1 as devel/protobuf-c

This is protobuf-c, a C implementation of the Google Protocol Buffers data
serialization format. It includes libprotobuf-c, a pure C library that
implements protobuf encoding and decoding, and protoc-c, a code generator that
converts Protocol Buffer .proto files to C descriptor code, based on the
original protoc.

diffstat:

 devel/protobuf-c/DESCR                     |   5 +++++
 devel/protobuf-c/Makefile                  |  24 ++++++++++++++++++++++++
 devel/protobuf-c/PLIST                     |   6 ++++++
 devel/protobuf-c/buildlink3.mk             |  14 ++++++++++++++
 devel/protobuf-c/distinfo                  |   6 ++++++
 devel/protobuf-c/patches/patch-Makefile.am |  20 ++++++++++++++++++++
 6 files changed, 75 insertions(+), 0 deletions(-)

diffs (99 lines):

diff -r 18f7b2a5d2ee -r 894622dc12d2 devel/protobuf-c/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf-c/DESCR    Wed Jun 10 01:39:33 2015 +0000
@@ -0,0 +1,5 @@
+This is protobuf-c, a C implementation of the Google Protocol Buffers data
+serialization format. It includes libprotobuf-c, a pure C library that
+implements protobuf encoding and decoding, and protoc-c, a code generator that
+converts Protocol Buffer .proto files to C descriptor code, based on the
+original protoc.
diff -r 18f7b2a5d2ee -r 894622dc12d2 devel/protobuf-c/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf-c/Makefile Wed Jun 10 01:39:33 2015 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+DISTNAME=      protobuf-c-1.1.1
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=protobuf-c/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    wiedi%frubar.net@localhost
+HOMEPAGE=      https://github.com/protobuf-c/protobuf-c
+COMMENT=       Protocol Buffers implementation in C
+LICENSE=       modified-bsd
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    pkg-config aclocal autoconf automake gmake
+USE_LANGUAGES= c99 c++
+
+PKGCONFIG_OVERRIDE+=   protobuf-c/libprotobuf-c.pc.in
+
+pre-configure:
+       cd ${WRKSRC} && ./autogen.sh
+
+.include "../../devel/protobuf/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 18f7b2a5d2ee -r 894622dc12d2 devel/protobuf-c/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf-c/PLIST    Wed Jun 10 01:39:33 2015 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+bin/protoc-c
+include/google/protobuf-c/protobuf-c.h
+include/protobuf-c/protobuf-c.h
+lib/libprotobuf-c.la
+lib/pkgconfig/libprotobuf-c.pc
diff -r 18f7b2a5d2ee -r 894622dc12d2 devel/protobuf-c/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf-c/buildlink3.mk    Wed Jun 10 01:39:33 2015 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+BUILDLINK_TREE+=       protobuf-c
+
+.if !defined(PROTOBUF_C_BUILDLINK3_MK)
+PROTOBUF_C_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.protobuf-c+=     protobuf-c>=1.1.1
+BUILDLINK_PKGSRCDIR.protobuf-c?=       ../../devel/protobuf-c
+
+.include "../../devel/protobuf/buildlink3.mk"
+.endif # PROTOBUF_C_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -protobuf-c
diff -r 18f7b2a5d2ee -r 894622dc12d2 devel/protobuf-c/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf-c/distinfo Wed Jun 10 01:39:33 2015 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+SHA1 (protobuf-c-1.1.1.tar.gz) = 9ab7586cd792b41c8f8d4a08d592f456d6e31482
+RMD160 (protobuf-c-1.1.1.tar.gz) = aed0d5a3e2241a8bd0d04fd01dbd1d2308e94b04
+Size (protobuf-c-1.1.1.tar.gz) = 116223 bytes
+SHA1 (patch-Makefile.am) = 7e037f255e8415cf3584adb0f652aabc71b4ecfe
diff -r 18f7b2a5d2ee -r 894622dc12d2 devel/protobuf-c/patches/patch-Makefile.am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf-c/patches/patch-Makefile.am        Wed Jun 10 01:39:33 2015 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-Makefile.am,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+rm -v is not portable
+
+--- Makefile.am.orig   2015-03-14 21:00:57.000000000 +0000
++++ Makefile.am
+@@ -185,11 +185,11 @@ EXTRA_DIST += \
+ CLEANFILES += $(BUILT_SOURCES)
+ 
+ dist-hook:
+-      rm -vf `find $(top_distdir) -name '*.pb-c.[ch]' -o -name '*.pb.cc' -o -name '*.pb.h'`
++      rm -f `find $(top_distdir) -name '*.pb-c.[ch]' -o -name '*.pb.cc' -o -name '*.pb.h'`
+ 
+ install-data-hook:
+       $(MKDIR_P) $(DESTDIR)$(includedir)/google/protobuf-c
+-      cd $(DESTDIR)$(includedir)/google/protobuf-c && rm -vf protobuf-c.h
++      cd $(DESTDIR)$(includedir)/google/protobuf-c && rm -f protobuf-c.h
+       cd $(DESTDIR)$(includedir)/google/protobuf-c && $(LN_S) ../../protobuf-c/protobuf-c.h protobuf-c.h
+ 
+ #



Home | Main Index | Thread Index | Old Index