From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 153E11381F3 for ; Thu, 21 Apr 2016 22:38:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AD6421C006; Thu, 21 Apr 2016 22:38:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9F7121C006 for ; Thu, 21 Apr 2016 22:37:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD12A33BF11 for ; Thu, 21 Apr 2016 22:37:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CF4316C5 for ; Thu, 21 Apr 2016 22:37:54 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1461277356.03538dca961bb5d299562e1ec08cb27cd5a5dadc.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lpeg/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/lpeg/lpeg-1.0.0-r1.ebuild dev-lua/lpeg/metadata.xml X-VCS-Directories: dev-lua/lpeg/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 03538dca961bb5d299562e1ec08cb27cd5a5dadc X-VCS-Branch: master Date: Thu, 21 Apr 2016 22:37:54 +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: 4d390351-0d8f-44a5-815d-4fd05bf12bdd X-Archives-Hash: 85f3fa72c6a1f0277fcc4bf656bc4eea commit: 03538dca961bb5d299562e1ec08cb27cd5a5dadc Author: Aric Belsito gmail com> AuthorDate: Thu Apr 21 01:30:33 2016 +0000 Commit: Patrice Clement gentoo org> CommitDate: Thu Apr 21 22:22:36 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03538dca dev-lua/lpeg: revbump to 1.0.0-r1 Bring up to EAPI 6 Add LuaJIT Support Install re.lua Gentoo-Bug: https://bugs.gentoo.org/577250 Closes: https://github.com/gentoo/gentoo/pull/1317 Signed-off-by: Patrice Clement gentoo.org> dev-lua/lpeg/lpeg-1.0.0-r1.ebuild | 48 +++++++++++++++++++++++++++++++++++++++ dev-lua/lpeg/metadata.xml | 4 ++++ 2 files changed, 52 insertions(+) diff --git a/dev-lua/lpeg/lpeg-1.0.0-r1.ebuild b/dev-lua/lpeg/lpeg-1.0.0-r1.ebuild new file mode 100644 index 0000000..059315a --- /dev/null +++ b/dev-lua/lpeg/lpeg-1.0.0-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Parsing Expression Grammars for Lua" +HOMEPAGE="http://www.inf.puc-rio.br/~roberto/lpeg/" +SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86" +IUSE="debug doc luajit" + +RDEPEND="!luajit? ( >=dev-lang/lua-5.1:= ) + luajit? ( dev-lang/luajit:2= )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( "HISTORY" ) +HTML_DOCS=( "lpeg.html" "re.html" ) +PATCHES=( "${FILESDIR}"/${PN}-0.12.1-makefile.patch ) + +src_prepare() { + default + use debug && append-cflags -DLPEG_DEBUG +} + +src_compile() { + emake CC="$(tc-getCC)" \ + LUADIR="$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))" +} + +src_test() { + $(usex luajit 'luajit' 'lua') test.lua || die +} + +src_install() { + exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" + doexe lpeg.so + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))" + doins re.lua + + use doc && einstalldocs +} diff --git a/dev-lua/lpeg/metadata.xml b/dev-lua/lpeg/metadata.xml index 94eea51..e35e783 100644 --- a/dev-lua/lpeg/metadata.xml +++ b/dev-lua/lpeg/metadata.xml @@ -13,4 +13,8 @@ lluixhi@gmail.com Aric Belsito + + Use dev-lang/luajit instead of + dev-lang/lua +