[Buildroot] [PATCH v2 2/3] package/protoc-gen-lua: new package

Romain Naour romain.naour at gmail.com
Wed Jul 20 20:36:15 UTC 2016


Hi Tiago,

Le 19/07/2016 à 14:31, Tiago Brusamarello a écrit :
> This package adds support to compile Google's Protocol buffers
> for use with Lua scripts. This tool is needed to allow use of the
> 'protobuf-lua' package.
> 
Thanks for this new version!

Sorry but it still doesn't work here for the same reason:

ImportError: No module named google.protobuf

I have not idea...

Best regards,
Romain


> Signed-off-by: Tiago Brusamarello <tiago.brusamarello at datacom.ind.br>
> 
> ---
> Changes v1 -> v2:
>   - Removed Config.in (suggested by Romain Naour)
>   - Added new line at end of the .mk file (suggested by Romain Naour)
> 
> Signed-off-by: Tiago Brusamarello <tiago.brusamarello at datacom.ind.br>
> ---
>  package/protoc-gen-lua/protoc-gen-lua.hash |  2 ++
>  package/protoc-gen-lua/protoc-gen-lua.mk   | 18 ++++++++++++++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 package/protoc-gen-lua/protoc-gen-lua.hash
>  create mode 100644 package/protoc-gen-lua/protoc-gen-lua.mk
> 
> diff --git a/package/protoc-gen-lua/protoc-gen-lua.hash b/package/protoc-gen-lua/protoc-gen-lua.hash
> new file mode 100644
> index 0000000..0badc84
> --- /dev/null
> +++ b/package/protoc-gen-lua/protoc-gen-lua.hash
> @@ -0,0 +1,2 @@
> +# Locally computed
> +sha256  bccdd9c65970c42fd29b87084db83777cad75780a67c5107b68f96603b5788a8  protoc-gen-lua-v1.1.1.tar.gz
> diff --git a/package/protoc-gen-lua/protoc-gen-lua.mk b/package/protoc-gen-lua/protoc-gen-lua.mk
> new file mode 100644
> index 0000000..5c83372
> --- /dev/null
> +++ b/package/protoc-gen-lua/protoc-gen-lua.mk
> @@ -0,0 +1,18 @@
> +################################################################################
> +#
> +# protoc-gen-lua
> +#
> +################################################################################
> +
> +PROTOC_GEN_LUA_VERSION = v1.1.1
> +PROTOC_GEN_LUA_SITE = $(call github,djungelorm,protobuf-lua,$(PROTOC_GEN_LUA_VERSION))
> +PROTOC_GEN_LUA_DEPENDENCIES = host-python-protobuf
> +PROTOC_GEN_LUA_LICENSE = BSD-3c
> +PROTOC_GEN_LUA_LICENSE_FILES = LICENSE
> +
> +define HOST_PROTOC_GEN_LUA_INSTALL_CMDS
> +	$(INSTALL) -D -m 0755 $(@D)/protoc-plugin/plugin_pb2.py $(HOST_DIR)/usr/bin
> +	$(INSTALL) -D -m 0755 $(@D)/protoc-plugin/protoc-gen-lua $(HOST_DIR)/usr/bin
> +endef
> +
> +$(eval $(host-generic-package))
> 




More information about the buildroot mailing list