From 53c73e54c369f115461526f49a9c010a6adf6640 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Tue, 7 Jul 2020 14:09:59 -0400 Subject: [PATCH] dev-lua/vstruct: add --- dev-lua/vstruct/Manifest | 3 +++ dev-lua/vstruct/files/Makefile | 11 +++++++++++ dev-lua/vstruct/metadata.xml | 8 ++++++++ dev-lua/vstruct/vstruct-2.1.1.ebuild | 30 ++++++++++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 dev-lua/vstruct/Manifest create mode 100644 dev-lua/vstruct/files/Makefile create mode 100644 dev-lua/vstruct/metadata.xml create mode 100644 dev-lua/vstruct/vstruct-2.1.1.ebuild diff --git a/dev-lua/vstruct/Manifest b/dev-lua/vstruct/Manifest new file mode 100644 index 0000000..3d43771 --- /dev/null +++ b/dev-lua/vstruct/Manifest @@ -0,0 +1,3 @@ +AUX Makefile 360 BLAKE2B 5c923f4c090eb4352544a30002379d9d5c25435d5d60c5153e54c0e6a15b4dfae8ab5420b517ba199fac8270947b9b3587bdf401b761d6ec522e1bc64a67064f SHA512 3ccc4c0830ec0f39469de203e29a132be81d1fc0f96283d6040858b72bac58838c9048b86c81ae5ed72755e6f180db5f68a3dd89891c6c10e33222ae89cc6b58 +EBUILD vstruct-2.1.1.ebuild 609 BLAKE2B d4af9e4d100d819e5a97e410a4073f40f03b3eaa3053177090718c38a7683d7be9dacce17e877322ee639d6a4952ad6b7acd2bb3b5f5b3b0017eec8221b9eb10 SHA512 ea5d6dc9a9839f36305c7c11cbecabec94f50476f1feba3072b05317ac55a2f8a3def7a5b0e8df5616147dcfb6f57ea3018da3cfcb118dfbb8903ad2b47b4f4c +MISC metadata.xml 240 BLAKE2B 056a90e56c1c7987f6acc70e52e3fc24a0fe5585ec6d00d331c3c161b6272f7d3836e28a358ff3abd4ad4df383f5df59de4fd5436d1459dffcf4fa49942bdf5a SHA512 67ee8b496f273eb6b8ba9910c78ae0157e26898f60411227dac54a9151e89175b37220896e0e2db4b53c9f2aec620db8734937d21a90bf40188b0a183b217ccb diff --git a/dev-lua/vstruct/files/Makefile b/dev-lua/vstruct/files/Makefile new file mode 100644 index 0000000..e6ec982 --- /dev/null +++ b/dev-lua/vstruct/files/Makefile @@ -0,0 +1,11 @@ +.PHONY: all install + +all: + +install: + mkdir -p $(DESTDIR)$(INSTALL_LMOD)/vstruct + install -m 0644 *.lua $(DESTDIR)$(INSTALL_LMOD)/vstruct + mkdir -p $(DESTDIR)$(INSTALL_LMOD)/vstruct/ast + install -m 0644 ast/*.lua $(DESTDIR)$(INSTALL_LMOD)/vstruct/ast + mkdir -p $(DESTDIR)$(INSTALL_LMOD)/vstruct/io + install -m 0644 io/*.lua $(DESTDIR)$(INSTALL_LMOD)/vstruct/io diff --git a/dev-lua/vstruct/metadata.xml b/dev-lua/vstruct/metadata.xml new file mode 100644 index 0000000..db9fc37 --- /dev/null +++ b/dev-lua/vstruct/metadata.xml @@ -0,0 +1,8 @@ + + + + + sgilles@umd.edu + S. Gilles + + diff --git a/dev-lua/vstruct/vstruct-2.1.1.ebuild b/dev-lua/vstruct/vstruct-2.1.1.ebuild new file mode 100644 index 0000000..0b1b710 --- /dev/null +++ b/dev-lua/vstruct/vstruct-2.1.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5_1 lua5_2 lua5_3 lua5_4 luajit2 ) +inherit eutils git-r3 lua-alt + +DESCRIPTION="Lua library to manipulate binary data" +HOMEPAGE="https://github.com/ToxicFrog/vstruct.git" +EGIT_REPO_URI="https://github.com/ToxicFrog/vstruct.git" +if [[ ${PV} == 9999 ]] +then + : +else + EGIT_COMMIT="v${PV}" + KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86" +fi + +LICENSE="MIT" +SLOT="0" +DEPEND="${LUA_DEPS} + virtual/pkgconfig +" + +src_prepare() { + cp "${FILESDIR}/Makefile" "${S}" + lua-alt_src_prepare + eapply_user +} -- 2.11.4.GIT