public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lpeg/
Date: Thu, 21 Apr 2016 22:37:54 +0000 (UTC)	[thread overview]
Message-ID: <1461277356.03538dca961bb5d299562e1ec08cb27cd5a5dadc.monsieurp@gentoo> (raw)

commit:     03538dca961bb5d299562e1ec08cb27cd5a5dadc
Author:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
AuthorDate: Thu Apr 21 01:30:33 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> 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 <monsieurp <AT> 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 @@
     <email>lluixhi@gmail.com</email>
     <name>Aric Belsito</name>
   </maintainer>
+  <use>
+    <flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of
+      <pkg>dev-lang/lua</pkg></flag>
+  </use>
 </pkgmetadata>


             reply	other threads:[~2016-04-21 22:38 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-21 22:37 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-31 14:32 [gentoo-commits] repo/gentoo:master commit in: dev-lua/lpeg/ Arthur Zamarin
2023-06-28 22:34 Sam James
2022-02-15  1:25 Conrad Kostecki
2021-10-11 13:47 Yixun Lan
2021-06-07 14:20 Guilherme Amadio
2021-03-16 17:37 Conrad Kostecki
2021-03-09 18:22 Aaron Bauman
2021-01-23 22:42 Sam James
2020-12-03 13:11 Marek Szuba
2020-11-29 15:37 Conrad Kostecki
2020-11-28 23:13 Robin H. Johnson
2020-04-23 16:29 Sergei Trofimovich
2020-04-17 16:24 Sergei Trofimovich
2020-04-08 20:53 Sergei Trofimovich
2018-07-07 12:15 Jonas Stein
2018-03-28 20:55 Matt Turner
2018-01-05 13:30 Patrice Clement
2018-01-05 11:18 Patrice Clement
2017-07-29 12:34 Alexis Ballier
2017-01-31  5:18 Tim Harder
2016-12-09  5:13 Benda XU
2016-12-02  2:33 Benda XU
2016-06-19 12:27 Sergei Trofimovich
2016-04-21 22:37 Patrice Clement
2016-04-21 18:05 Tim Harder
2016-03-12  6:56 Tim Harder
2015-09-15  0:41 Tim Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461277356.03538dca961bb5d299562e1ec08cb27cd5a5dadc.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox