diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-05-22 08:15:06 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-05-22 08:15:06 +0000 |
commit | cbd54f51791c39290bb64bbc0b4c067cfe893d85 (patch) | |
tree | f2ab623c931f80fabcdbfc83aef93957b0f9757c | |
parent | Use updated patch by Alejandro Dubrovsky <alito@organicrobot.com> to solve bu... (diff) | |
download | gentoo-2-cbd54f51791c39290bb64bbc0b4c067cfe893d85.tar.gz gentoo-2-cbd54f51791c39290bb64bbc0b4c067cfe893d85.tar.bz2 gentoo-2-cbd54f51791c39290bb64bbc0b4c067cfe893d85.zip |
Initial import (bug #469300 by Raphaël Droz).
(Portage version: 2.2.0_alpha175/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
-rw-r--r-- | dev-lua/lpeg/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lua/lpeg/Manifest | 5 | ||||
-rw-r--r-- | dev-lua/lpeg/files/lpeg-0.12-makefile.patch | 37 | ||||
-rw-r--r-- | dev-lua/lpeg/lpeg-0.12.ebuild | 41 | ||||
-rw-r--r-- | dev-lua/lpeg/metadata.xml | 8 |
5 files changed, 101 insertions, 0 deletions
diff --git a/dev-lua/lpeg/ChangeLog b/dev-lua/lpeg/ChangeLog new file mode 100644 index 000000000000..7cd290c15ffe --- /dev/null +++ b/dev-lua/lpeg/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-lua/lpeg +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/lpeg/ChangeLog,v 1.1 2013/05/22 08:15:06 radhermit Exp $ + +*lpeg-0.12 (22 May 2013) + + 22 May 2013; Tim Harder <radhermit@gentoo.org> +lpeg-0.12.ebuild, + +files/lpeg-0.12-makefile.patch, +metadata.xml: + Initial import (bug #469300 by Raphaël Droz). + diff --git a/dev-lua/lpeg/Manifest b/dev-lua/lpeg/Manifest new file mode 100644 index 000000000000..3900e2aa5ac2 --- /dev/null +++ b/dev-lua/lpeg/Manifest @@ -0,0 +1,5 @@ +AUX lpeg-0.12-makefile.patch 833 SHA256 0d3614bc95a706bbe31be40406b7e5e0f00152f8c0d12c947b7b65250d621509 SHA512 50b880fca90ff5d833ea83ce66aae1a5c846d20ea161ef317f9d926c7d4327687d09eb95c70b7a5b0f63096c31df028c5a7edd6b361753a53ef75519cdcf0d55 WHIRLPOOL f1600193dedf7b8f0b36cb6f9e428dd0c64dfe97680db77ce1c68cb165654b8d630da27e391e03687aec6e204a003efe243a09f596416c7abf90bb1864868d72 +DIST lpeg-0.12.tar.gz 66649 SHA256 efa545144cd219eee823af7624d90f78c2230677ba740b7151c5d0c303778b76 SHA512 bf8c4fe486f5e965b793d8526dd1fc5c8905c4b065a1abe52ec8e41ebbe48292315a7460dc56fb7a029b4673057f9da7e53854bb79bb54dd8a4378391efc24a2 WHIRLPOOL 3e131da888eff53fbfa6203ed363f34832c52fb0fafca9006dd1da956c89a76528dc9aaf255426a148497c55df74ccb72cf87e234f5c432c4e2c28a5dfd0a9a1 +EBUILD lpeg-0.12.ebuild 752 SHA256 f0467289db93d09961157aceca129210d6fde8a6f04a9f3bfbe39139ed9516b6 SHA512 e7d50db2108b3dc9ba75e7e20e075d59019f7ec318323a749f38fd8c07da69d2582915d71eba573bf028721f91473a3175079bf5bdc0b9dab3e516615fd990ed WHIRLPOOL 5938f87f28d3eeee579cb3a455af481ec862656cdaede9036305ce7aac1734204bc647e64f4d52212a8af2a16138c83a396a0efef555ee2c3686795ee408f30e +MISC ChangeLog 307 SHA256 0ea415f4eca6a28401bb51d5a2979d8da0ac45a6a17d42bac5411e36280b8a71 SHA512 3a66b339445c97fea4cbf0af2d780067e30ff19a1efd8a842372b8a3da90095e98e9affda5a44715d69789b4dfa876c09234165330945ce344e351237441d1eb WHIRLPOOL 4d134e2ba754033be070f65c645ad53589f1cee2d388f92caa88c41a838805d759b64e952b34ec7e5bcf5180ad496a179d6f4836109b1f0ed344927e5915855d +MISC metadata.xml 236 SHA256 5285fd5ca6bc85e0392ff64ec8e54d0018ebd761d3977869c00c93dee45ea09d SHA512 a1abf9a60fb1a2078d0475df655f8abd4b2f877f8d232028232fafca2eb7e7ae6ec2c835c4fe0ef27b3b5655d746d1fe53bbcb353703819448ddec84acdd4215 WHIRLPOOL fdbf5fcd34aa17330575f013aef4c87a8b039b62b6de3337a4004a6a0217238ceca43fa15425c30ddb7a5a632de7eb138ed541dfb161614cba817527297781e2 diff --git a/dev-lua/lpeg/files/lpeg-0.12-makefile.patch b/dev-lua/lpeg/files/lpeg-0.12-makefile.patch new file mode 100644 index 000000000000..5734de9f55d8 --- /dev/null +++ b/dev-lua/lpeg/files/lpeg-0.12-makefile.patch @@ -0,0 +1,37 @@ +--- lpeg-0.12/makefile ++++ lpeg-0.12/makefile +@@ -1,7 +1,7 @@ + LIBNAME = lpeg + LUADIR = /usr/include/lua5.1/ + +-COPT = -O2 ++#COPT = -O2 + # COPT = -DLPEG_DEBUG -g + + CWARNS = -Wall -Wextra -pedantic \ +@@ -22,21 +22,21 @@ + # -Wunreachable-code \ + + +-CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC ++CFLAGS += $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC + CC = gcc + + FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o + + # For Linux + linux: +- make lpeg.so "DLLFLAGS = -shared -fPIC" ++ $(MAKE) lpeg.so "DLLFLAGS = -shared -fPIC" + + # For Mac OS + macosx: +- make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup" ++ $(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup" + + lpeg.so: $(FILES) +- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so ++ env $(CC) $(CFLAGS) $(DLLFLAGS) $(LDFLAGS) $(FILES) -o lpeg.so + + $(FILES): makefile + diff --git a/dev-lua/lpeg/lpeg-0.12.ebuild b/dev-lua/lpeg/lpeg-0.12.ebuild new file mode 100644 index 000000000000..cf7cddc68036 --- /dev/null +++ b/dev-lua/lpeg/lpeg-0.12.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/lpeg/lpeg-0.12.ebuild,v 1.1 2013/05/22 08:15:06 radhermit Exp $ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs eutils multilib + +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 ~x86" +IUSE="debug doc" + +RDEPEND=">=dev-lang/lua-5.1" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch + use debug && append-cflags -DLPEG_DEBUG +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_test() { + lua test.lua || die +} + +src_install() { + exeinto /usr/$(get_libdir)/lua/5.1 + doexe lpeg.so + + dodoc HISTORY + + use doc && dohtml * +} diff --git a/dev-lua/lpeg/metadata.xml b/dev-lua/lpeg/metadata.xml new file mode 100644 index 000000000000..efa5eb0078f3 --- /dev/null +++ b/dev-lua/lpeg/metadata.xml @@ -0,0 +1,8 @@ +<?xml version = '1.0' encoding = 'UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> +</pkgmetadata> |