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/luaexpat/, profiles/
Date: Sun, 29 Nov 2020 15:37:58
Message-Id: 1606663216.ef5d1b8365b0a2f76efe808e7f3decf7b8223ca8.conikost@gentoo
1 commit: ef5d1b8365b0a2f76efe808e7f3decf7b8223ca8
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 15:20:06 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 15:20:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef5d1b83
7
8 dev-lua/luaexpat: update ebuilds
9
10 Updated ebuilds not to use clean.
11
12 Package-Manager: Portage-3.0.9, Repoman-3.0.2
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 dev-lua/luaexpat/luaexpat-1.3.0-r101.ebuild | 78 +++++++++++++++++++++++++++
16 dev-lua/luaexpat/luaexpat-1.3.3-r101.ebuild | 82 +++++++++++++++++++++++++++++
17 profiles/package.mask | 2 +
18 3 files changed, 162 insertions(+)
19
20 diff --git a/dev-lua/luaexpat/luaexpat-1.3.0-r101.ebuild b/dev-lua/luaexpat/luaexpat-1.3.0-r101.ebuild
21 new file mode 100644
22 index 00000000000..b062c42090b
23 --- /dev/null
24 +++ b/dev-lua/luaexpat/luaexpat-1.3.0-r101.ebuild
25 @@ -0,0 +1,78 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +LUA_COMPAT=( lua5-{1..3} )
32 +LUA_REQ_USE="${MULTILIB_USEDEP}"
33 +
34 +inherit lua multilib-minimal toolchain-funcs
35 +
36 +DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library"
37 +HOMEPAGE="https://matthewwild.co.uk/projects/luaexpat/"
38 +SRC_URI="https://matthewwild.co.uk/projects/${PN}/${P}.tar.gz"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
43 +REQUIRED_USE="${LUA_REQUIRED_USE}"
44 +
45 +RDEPEND="
46 + dev-libs/expat[${MULTILIB_USEDEP}]
47 + ${LUA_DEPS}
48 +"
49 +DEPEND="${RDEPEND}"
50 +BDEPEND="virtual/pkgconfig"
51 +
52 +HTML_DOCS=( "doc/us/." )
53 +
54 +src_prepare() {
55 + default
56 +
57 + # Respect users CFLAGS
58 + # Add '-DLUA_32BITS' for fixing compilation with lua5.3
59 + sed -e 's/-O2/-DLUA_32BITS/g' -i Makefile || die
60 +
61 + lua_copy_sources
62 + lua_foreach_impl multilib_copy_sources
63 +}
64 +
65 +lua_multilib_src_compile() {
66 + pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
67 +
68 + local myemakeargs=(
69 + "CC=$(tc-getCC)"
70 + "LUA_INC=$(lua_get_CFLAGS)"
71 + )
72 +
73 + emake "${myemakeargs[@]}"
74 +
75 + popd
76 +}
77 +
78 +multilib_src_compile() {
79 + lua_foreach_impl lua_multilib_src_compile
80 +}
81 +
82 +lua_multilib_src_install() {
83 + pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
84 +
85 + local myemakeargs=(
86 + "DESTDIR=${ED}"
87 + "LUA_CDIR=$(lua_get_cmod_dir)"
88 + "LUA_INC=$(lua_get_include_dir)"
89 + "LUA_LDIR=$(lua_get_lmod_dir)"
90 + )
91 +
92 + emake "${myemakeargs[@]}" install
93 +
94 + popd
95 +}
96 +
97 +multilib_src_install() {
98 + lua_foreach_impl lua_multilib_src_install
99 +}
100 +
101 +multilib_src_install_all() {
102 + einstalldocs
103 +}
104
105 diff --git a/dev-lua/luaexpat/luaexpat-1.3.3-r101.ebuild b/dev-lua/luaexpat/luaexpat-1.3.3-r101.ebuild
106 new file mode 100644
107 index 00000000000..490ff8633d5
108 --- /dev/null
109 +++ b/dev-lua/luaexpat/luaexpat-1.3.3-r101.ebuild
110 @@ -0,0 +1,82 @@
111 +# Copyright 1999-2020 Gentoo Authors
112 +# Distributed under the terms of the GNU General Public License v2
113 +
114 +EAPI=7
115 +
116 +LUA_COMPAT=( lua5-{1..3} )
117 +LUA_REQ_USE="${MULTILIB_USEDEP}"
118 +
119 +inherit lua multilib-minimal toolchain-funcs
120 +
121 +DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library"
122 +HOMEPAGE="https://github.com/tomasguisasola/luaexpat"
123 +SRC_URI="https://github.com/tomasguisasola/luaexpat/archive/v${PV}.tar.gz -> ${P}.tar.gz"
124 +
125 +LICENSE="MIT"
126 +SLOT="0"
127 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
128 +REQUIRED_USE="${LUA_REQUIRED_USE}"
129 +
130 +RDEPEND="
131 + dev-libs/expat[${MULTILIB_USEDEP}]
132 + ${LUA_DEPS}
133 +"
134 +DEPEND="${RDEPEND}"
135 +BDEPEND="virtual/pkgconfig"
136 +
137 +HTML_DOCS=( "doc/us/." )
138 +
139 +PATCHES=(
140 + "${FILESDIR}/${P}_makefile.patch"
141 + "${FILESDIR}/${P}_getcurrentbytecount.patch"
142 + "${FILESDIR}/${P}_restore_functionality.patch"
143 +)
144 +
145 +src_prepare() {
146 + default
147 +
148 + # Respect users CFLAGS
149 + sed -e 's/-O2//g' -i makefile || die
150 +
151 + lua_copy_sources
152 + lua_foreach_impl multilib_copy_sources
153 +}
154 +
155 +lua_multilib_src_compile() {
156 + pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
157 +
158 + local myemakeargs=(
159 + "CC=$(tc-getCC) ${CFLAGS}"
160 + "LUA_INC=$(lua_get_include_dir)"
161 + )
162 +
163 + emake "${myemakeargs[@]}"
164 +
165 + popd
166 +}
167 +
168 +multilib_src_compile() {
169 + lua_foreach_impl lua_multilib_src_compile
170 +}
171 +
172 +lua_multilib_src_install() {
173 + pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
174 +
175 + local myemakeargs=(
176 + "LUA_DIR=${ED}/$(lua_get_lmod_dir)"
177 + "LUA_INC=${ED}/$(lua_get_include_dir)"
178 + "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)"
179 + )
180 +
181 + emake "${myemakeargs[@]}" install
182 +
183 + popd
184 +}
185 +
186 +multilib_src_install() {
187 + lua_foreach_impl lua_multilib_src_install
188 +}
189 +
190 +multilib_src_install_all() {
191 + einstalldocs
192 +}
193
194 diff --git a/profiles/package.mask b/profiles/package.mask
195 index c5d108797df..361f08c5e0a 100644
196 --- a/profiles/package.mask
197 +++ b/profiles/package.mask
198 @@ -529,7 +529,9 @@ dev-lua/luacrypto
199 >=dev-lua/luadbi-0.7.2-r100
200 >=dev-lua/luaevent-0.4.6-r100
201 =dev-lua/luaexpat-1.3.0-r100
202 +=dev-lua/luaexpat-1.3.0-r101
203 =dev-lua/luaexpat-1.3.3-r100
204 +=dev-lua/luaexpat-1.3.3-r101
205 >=dev-lua/lua_cliargs-3.0_p2-r100
206 >=dev-lua/lua-term-0.7-r100
207 >=dev-lua/luafilesystem-1.8.0-r100