diff options
Diffstat (limited to 'dev-lua/lua-term')
-rw-r--r-- | dev-lua/lua-term/Manifest | 3 | ||||
-rw-r--r-- | dev-lua/lua-term/lua-term-0.3.ebuild | 41 | ||||
-rw-r--r-- | dev-lua/lua-term/metadata.xml | 11 |
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-lua/lua-term/Manifest b/dev-lua/lua-term/Manifest new file mode 100644 index 000000000000..3ca7039c700c --- /dev/null +++ b/dev-lua/lua-term/Manifest @@ -0,0 +1,3 @@ +DIST lua-term-0.3.tar.gz 3752 BLAKE2B 6d42129b60278a4bf756195bae28529a9a22688945ecf6c5648ea490645de363799e4fe5a188069e3739557c3b45ee83e28e315cdd69e987f022f28e3a673cb2 SHA512 e91585994c0337d4dbdc36f51cec9f66fe7319212e82c56752ed724bbbe273e4dc67977bd13e7963545bb075f23f69a448dfc4cc4d6c3c49e96af99cd3eb59e7 +EBUILD lua-term-0.3.ebuild 1052 BLAKE2B b51521ed23953db5b3da120a5cba7406a712bcaea0f953d9b634ed22f7a426a881db771d01e9641b339454a520d51e25a99248e671be5dda570b0f7173a9c41f SHA512 2a6e30f1946935e9a9598e9dc1d7a32839073a31b24d8a97b0af6adc6bb3db8de397ed97a13d6aba09e37d7098d241aacc158f2eff92c81265587e6233e1e102 +MISC metadata.xml 329 BLAKE2B 53838f32093f301c09eca7e323feeb35d9ceee5a2a38fe0902bafd8893afed48e8b7f8b4bfebfa183cdcabc63d654b983658ae69c08c640cb97239c5f15ea4b9 SHA512 927fa93e0060fdb183c77425cf3716dde54c4b2a6a4fdbfadf9a8bbeeb186b55ac93589003c8259382d3985075e9ef4239c3a7be359bc704cc6d3febc3c8f89e diff --git a/dev-lua/lua-term/lua-term-0.3.ebuild b/dev-lua/lua-term/lua-term-0.3.ebuild new file mode 100644 index 000000000000..2bf85543e545 --- /dev/null +++ b/dev-lua/lua-term/lua-term-0.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs + +# Yes, upstream used different version numbers. +# The rockspec version number is 0.3, but the version associated with +# the tarball is 0.03. +MY_PV=0.03 + +DESCRIPTION="Terminal functions for Lua" +HOMEPAGE="https://github.com/hoelzro/lua-term" +SRC_URI="https://github.com/hoelzro/lua-term/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86" +IUSE="" + +COMMON_DEPEND=">=dev-lang/lua-5.1:=" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND}" + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_compile() { + echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIC -shared \ + -o core.so core.c" + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIC -shared \ + -o core.so core.c || die +} + +src_install() { + exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"/term + doexe core.so + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" +doins -r term +} diff --git a/dev-lua/lua-term/metadata.xml b/dev-lua/lua-term/metadata.xml new file mode 100644 index 000000000000..cd082b51556c --- /dev/null +++ b/dev-lua/lua-term/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>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <upstream> + <remote-id type="github">hoelzro/lua-term</remote-id> + </upstream> +</pkgmetadata> |