From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E32911396D0 for ; Sat, 2 Sep 2017 08:45:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32CD8E07D3; Sat, 2 Sep 2017 08:45:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12193E0C5F for ; Sat, 2 Sep 2017 08:45:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03FA0340DF9 for ; Sat, 2 Sep 2017 08:45:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A238C8B2B for ; Sat, 2 Sep 2017 08:45:28 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1504341921.906bc295a93e283bd2888ebd558bb5c665e95665.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/say/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/say/metadata.xml dev-lua/say/say-1.3_p1-r1.ebuild X-VCS-Directories: dev-lua/say/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 906bc295a93e283bd2888ebd558bb5c665e95665 X-VCS-Branch: master Date: Sat, 2 Sep 2017 08:45:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5cdb8aa7-b51f-419c-bd33-2a87ced31626 X-Archives-Hash: 21395ab4ccc35670023e7b23c17ff949 commit: 906bc295a93e283bd2888ebd558bb5c665e95665 Author: Aric Belsito gmail com> AuthorDate: Wed Aug 23 18:06:07 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Sep 2 08:45:21 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=906bc295 dev-lua/say: add luajit support Bump to EAPI 6 Add Test phase. Gentoo-Bug: https://bugs.gentoo.org/628758 dev-lua/say/metadata.xml | 4 ++++ dev-lua/say/say-1.3_p1-r1.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/dev-lua/say/metadata.xml b/dev-lua/say/metadata.xml index 3f45427ec3a..382dfdc0f2b 100644 --- a/dev-lua/say/metadata.xml +++ b/dev-lua/say/metadata.xml @@ -8,6 +8,10 @@ Useful for internationalization. + + Use dev-lang/luajit instead of + dev-lang/lua + Olivine-Labs/say diff --git a/dev-lua/say/say-1.3_p1-r1.ebuild b/dev-lua/say/say-1.3_p1-r1.ebuild new file mode 100644 index 00000000000..e5c2c5512d0 --- /dev/null +++ b/dev-lua/say/say-1.3_p1-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +MY_PV=1.3-1 + +inherit toolchain-funcs + +DESCRIPTION="Lua String Hashing/Indexing Library" +HOMEPAGE="http://olivinelabs.com/busted/" +SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="luajit test" + +RDEPEND=" + !luajit? ( >=dev-lang/lua-5.1:= ) + luajit? ( dev-lang/luajit:2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-lua/busted )" + +DOCS=( CONTRIBUTING.md README.md ) + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_test() { + busted -o gtest || die +} + +src_install() { + local instdir + instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"/${PN} + insinto "${instdir#${EPREFIX}}" + doins src/init.lua + einstalldocs +}