Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/inifile/, profiles/
Date: Mon, 30 Nov 2020 13:33:08
Message-Id: 1606743173.b41f80eaebe323f6dec04b2b391f529986c7f7dd.conikost@gentoo
1 commit: b41f80eaebe323f6dec04b2b391f529986c7f7dd
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 12:29:30 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 13:32:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b41f80ea
7
8 dev-lua/inifile: new package
9
10 This is a simple ini parser for lua. It will serve as da lua dep for
11 packages, which will get added tests and need that.
12
13 Package-Manager: Portage-3.0.9, Repoman-3.0.2
14 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
15
16 dev-lua/inifile/Manifest | 1 +
17 dev-lua/inifile/inifile-1.0-r100.ebuild | 30 ++++++++++++++++++++++++++++++
18 dev-lua/inifile/inifile-1.0.ebuild | 30 ++++++++++++++++++++++++++++++
19 dev-lua/inifile/metadata.xml | 11 +++++++++++
20 profiles/package.mask | 1 +
21 5 files changed, 73 insertions(+)
22
23 diff --git a/dev-lua/inifile/Manifest b/dev-lua/inifile/Manifest
24 new file mode 100644
25 index 00000000000..e14e8c979c7
26 --- /dev/null
27 +++ b/dev-lua/inifile/Manifest
28 @@ -0,0 +1 @@
29 +DIST inifile-1.0.tar.gz 2611 BLAKE2B cdda6d9b2de45b4bec4695029018e37fe22a993afe5a54df4f4c519457d00267338de5aa3379a72dc7ab962260cd39f49674c2685799e4ad5544fed938c1080b SHA512 d0a9aa825cd5cf4a3b0b562853f3593141f537388c3e3a4334317b2536aa2dd695bdea37058d3d907aad10162bb71ef5b324c769e65cbd18e4526e37275cb970
30
31 diff --git a/dev-lua/inifile/inifile-1.0-r100.ebuild b/dev-lua/inifile/inifile-1.0-r100.ebuild
32 new file mode 100644
33 index 00000000000..89a8791ca12
34 --- /dev/null
35 +++ b/dev-lua/inifile/inifile-1.0-r100.ebuild
36 @@ -0,0 +1,30 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +LUA_COMPAT=( lua5-{1..3} luajit )
43 +MY_PV="${PV/_p/-}"
44 +
45 +inherit lua
46 +
47 +DESCRIPTION="A simple and complete ini parser for Lua"
48 +HOMEPAGE="https://github.com/bartbes/inifile/"
49 +SRC_URI="https://github.com/bartbes/inifile/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
54 +REQUIRED_USE="${LUA_REQUIRED_USE}"
55 +
56 +RDEPEND="${LUA_DEPS}"
57 +BDEPEND="virtual/pkgconfig"
58 +
59 +lua_src_install() {
60 + insinto $(lua_get_lmod_dir)
61 + doins inifile.lua
62 +}
63 +
64 +src_install() {
65 + lua_foreach_impl lua_src_install
66 +}
67
68 diff --git a/dev-lua/inifile/inifile-1.0.ebuild b/dev-lua/inifile/inifile-1.0.ebuild
69 new file mode 100644
70 index 00000000000..05056d9afbd
71 --- /dev/null
72 +++ b/dev-lua/inifile/inifile-1.0.ebuild
73 @@ -0,0 +1,30 @@
74 +# Copyright 1999-2020 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=7
78 +
79 +MY_PV="${PV/_p/-}"
80 +
81 +inherit toolchain-funcs
82 +
83 +DESCRIPTION="A simple and complete ini parser for Lua"
84 +HOMEPAGE="https://github.com/bartbes/inifile/"
85 +SRC_URI="https://github.com/bartbes/inifile/archive/v${PV}.tar.gz -> ${P}.tar.gz"
86 +
87 +LICENSE="BSD"
88 +SLOT="0"
89 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
90 +IUSE="luajit"
91 +REQUIRED_USE="${LUA_REQUIRED_USE}"
92 +
93 +RDEPEND="
94 + luajit? ( dev-lang/luajit:2 )
95 + !luajit? ( >=dev-lang/lua-5.1:= )
96 +"
97 +
98 +BDEPEND="virtual/pkgconfig"
99 +
100 +src_install() {
101 + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
102 + doins inifile.lua
103 +}
104
105 diff --git a/dev-lua/inifile/metadata.xml b/dev-lua/inifile/metadata.xml
106 new file mode 100644
107 index 00000000000..9da69fdb986
108 --- /dev/null
109 +++ b/dev-lua/inifile/metadata.xml
110 @@ -0,0 +1,11 @@
111 +<?xml version="1.0" encoding="UTF-8"?>
112 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
113 +<pkgmetadata>
114 + <maintainer type="person">
115 + <email>conikost@g.o</email>
116 + <name>Conrad Kostecki</name>
117 + </maintainer>
118 + <upstream>
119 + <remote-id type="github">bartbes/inifile</remote-id>
120 + </upstream>
121 +</pkgmetadata>
122
123 diff --git a/profiles/package.mask b/profiles/package.mask
124 index 32a15d7bd0f..416fbe81fa8 100644
125 --- a/profiles/package.mask
126 +++ b/profiles/package.mask
127 @@ -518,6 +518,7 @@ dev-lua/luacrypto
128 >=dev-lua/busted-2.0.0-r100
129 >=dev-lua/busted-htest-1.0.0-r100
130 >=dev-lua/dkjson-2.5-r100
131 +>=dev-lua/inifile-1.0-r100
132 >=dev-lua/ldoc-1.4.6-r100
133 >=dev-lua/lgi-0.9.2-r100
134 >=dev-lua/lpeg-1.0.2-r100