mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-lua/inifile: new package
This is a simple ini parser for lua. It will serve as da lua dep for packages, which will get added tests and need that. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
1
dev-lua/inifile/Manifest
Normal file
1
dev-lua/inifile/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST inifile-1.0.tar.gz 2611 BLAKE2B cdda6d9b2de45b4bec4695029018e37fe22a993afe5a54df4f4c519457d00267338de5aa3379a72dc7ab962260cd39f49674c2685799e4ad5544fed938c1080b SHA512 d0a9aa825cd5cf4a3b0b562853f3593141f537388c3e3a4334317b2536aa2dd695bdea37058d3d907aad10162bb71ef5b324c769e65cbd18e4526e37275cb970
|
||||
30
dev-lua/inifile/inifile-1.0-r100.ebuild
Normal file
30
dev-lua/inifile/inifile-1.0-r100.ebuild
Normal file
@@ -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
|
||||
}
|
||||
30
dev-lua/inifile/inifile-1.0.ebuild
Normal file
30
dev-lua/inifile/inifile-1.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
11
dev-lua/inifile/metadata.xml
Normal file
11
dev-lua/inifile/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user