diff options
-rw-r--r-- | dev-lua/inifile/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/inifile/inifile-1.0-r100.ebuild | 30 | ||||
-rw-r--r-- | dev-lua/inifile/inifile-1.0.ebuild | 30 | ||||
-rw-r--r-- | dev-lua/inifile/metadata.xml | 11 | ||||
-rw-r--r-- | profiles/package.mask | 1 |
5 files changed, 73 insertions, 0 deletions
diff --git a/dev-lua/inifile/Manifest b/dev-lua/inifile/Manifest new file mode 100644 index 000000000000..e14e8c979c70 --- /dev/null +++ b/dev-lua/inifile/Manifest @@ -0,0 +1 @@ +DIST inifile-1.0.tar.gz 2611 BLAKE2B cdda6d9b2de45b4bec4695029018e37fe22a993afe5a54df4f4c519457d00267338de5aa3379a72dc7ab962260cd39f49674c2685799e4ad5544fed938c1080b SHA512 d0a9aa825cd5cf4a3b0b562853f3593141f537388c3e3a4334317b2536aa2dd695bdea37058d3d907aad10162bb71ef5b324c769e65cbd18e4526e37275cb970 diff --git a/dev-lua/inifile/inifile-1.0-r100.ebuild b/dev-lua/inifile/inifile-1.0-r100.ebuild new file mode 100644 index 000000000000..89a8791ca127 --- /dev/null +++ b/dev-lua/inifile/inifile-1.0-r100.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..3} luajit ) +MY_PV="${PV/_p/-}" + +inherit lua + +DESCRIPTION="A simple and complete ini parser for Lua" +HOMEPAGE="https://github.com/bartbes/inifile/" +SRC_URI="https://github.com/bartbes/inifile/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="${LUA_DEPS}" +BDEPEND="virtual/pkgconfig" + +lua_src_install() { + insinto $(lua_get_lmod_dir) + doins inifile.lua +} + +src_install() { + lua_foreach_impl lua_src_install +} diff --git a/dev-lua/inifile/inifile-1.0.ebuild b/dev-lua/inifile/inifile-1.0.ebuild new file mode 100644 index 000000000000..05056d9afbd7 --- /dev/null +++ b/dev-lua/inifile/inifile-1.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV="${PV/_p/-}" + +inherit toolchain-funcs + +DESCRIPTION="A simple and complete ini parser for Lua" +HOMEPAGE="https://github.com/bartbes/inifile/" +SRC_URI="https://github.com/bartbes/inifile/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="luajit" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + luajit? ( dev-lang/luajit:2 ) + !luajit? ( >=dev-lang/lua-5.1:= ) +" + +BDEPEND="virtual/pkgconfig" + +src_install() { + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))" + doins inifile.lua +} diff --git a/dev-lua/inifile/metadata.xml b/dev-lua/inifile/metadata.xml new file mode 100644 index 000000000000..9da69fdb9869 --- /dev/null +++ b/dev-lua/inifile/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>conikost@gentoo.org</email> + <name>Conrad Kostecki</name> + </maintainer> + <upstream> + <remote-id type="github">bartbes/inifile</remote-id> + </upstream> +</pkgmetadata> diff --git a/profiles/package.mask b/profiles/package.mask index 32a15d7bd0f9..416fbe81fa8f 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -518,6 +518,7 @@ dev-lua/luacrypto >=dev-lua/busted-2.0.0-r100 >=dev-lua/busted-htest-1.0.0-r100 >=dev-lua/dkjson-2.5-r100 +>=dev-lua/inifile-1.0-r100 >=dev-lua/ldoc-1.4.6-r100 >=dev-lua/lgi-0.9.2-r100 >=dev-lua/lpeg-1.0.2-r100 |