summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-05-22 08:15:11 +0000
committerTim Harder <radhermit@gentoo.org>2013-05-22 08:15:11 +0000
commit4715a43912d95a347259bb8cfd587c409f12ec26 (patch)
treef049225c512becb5b3dcf33df85e7285ffb430fc /dev-lua/lpeg
parentInitial import (bug #469300 by Raphaël Droz). (diff)
downloadhistorical-4715a43912d95a347259bb8cfd587c409f12ec26.tar.gz
historical-4715a43912d95a347259bb8cfd587c409f12ec26.tar.bz2
historical-4715a43912d95a347259bb8cfd587c409f12ec26.zip
Initial import (bug #469300 by Raphaël Droz).
Package-Manager: portage-2.2.0_alpha175/cvs/Linux x86_64 Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'dev-lua/lpeg')
-rw-r--r--dev-lua/lpeg/Manifest18
-rw-r--r--dev-lua/lpeg/files/lpeg-0.12-makefile.patch37
-rw-r--r--dev-lua/lpeg/lpeg-0.12.ebuild41
-rw-r--r--dev-lua/lpeg/metadata.xml8
4 files changed, 102 insertions, 2 deletions
diff --git a/dev-lua/lpeg/Manifest b/dev-lua/lpeg/Manifest
index 3900e2aa5ac2..00cacf7530da 100644
--- a/dev-lua/lpeg/Manifest
+++ b/dev-lua/lpeg/Manifest
@@ -1,5 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
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
+EBUILD lpeg-0.12.ebuild 846 SHA256 17d62671fc13910afa6e4d13dadfa1f2c134669f4fe514f79e9bc0f460168d70 SHA512 33063a0918c6616f3f9a2bf75b2f39d1708846e2d984ac52870585591f8e193bde0212689e0f109af935cd9ec7135ce4ff91dc7601c66d784b7b5045ceea957c WHIRLPOOL fd034b2fe29395c412cf756055dc7aadbb959b5821eee82ef77b4a8f94b6990455b30cfd1f5d35cdfb5e42016331fad8ad2b16450a2ff7bd7a9a8e8ab8705fc9
+MISC ChangeLog 394 SHA256 a14279aa8aa07cad8a4fb8d8c0bf90eecbb2a62373239b67bcd1a34e575d5186 SHA512 83321b684452624e7cbc1e45117770198e3eebb88f1f91404d0d477cc4c9747e2eff716791bb23d9232e109430ed6f40a65a5113c8f3f93175d78259229b49a5 WHIRLPOOL 4bc4bb3422ca99f5de31db2c140066ba59ce914a18a3bffbc85311a461f0409eb4237f080f9cef8926e976321c85366021f774f4a83994bdf54618dfb13413dc
MISC metadata.xml 236 SHA256 5285fd5ca6bc85e0392ff64ec8e54d0018ebd761d3977869c00c93dee45ea09d SHA512 a1abf9a60fb1a2078d0475df655f8abd4b2f877f8d232028232fafca2eb7e7ae6ec2c835c4fe0ef27b3b5655d746d1fe53bbcb353703819448ddec84acdd4215 WHIRLPOOL fdbf5fcd34aa17330575f013aef4c87a8b039b62b6de3337a4004a6a0217238ceca43fa15425c30ddb7a5a632de7eb138ed541dfb161614cba817527297781e2
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRnH6PAAoJEEqz6FtPBkyjbWEIAKW7JctUYApCtDYTorpZCTH2
+DC/91e4Ex076g0cDczduNLlPZi44c/U/j9qSrqIZDRhSZ1fuzj2dI/UnO1YrRmsf
+ggc/jKPKJhoPNctVyFW87O+Zsl8fG2Upegfgc7IZzHvHStwUsdi3AQrB/ag9Qc9S
+tRCWrqFjPDQu55YCgofUPmYZx6FwA9MzptqaBqmnBEHTBylaeKixJvPj4BjDSMJk
+CPV7caK9LXifJGOwjdQnb0doXjkaaSNJlinShQtDHMVHuwBpXB8/HX+0xKIPd3OA
+X8ZHIy6BfZztnrsqGA5TV1gqlmOYQ8mDSVM8kSAtIxqiU/nriJqLEYlyixYfkyQ=
+=NSnh
+-----END PGP SIGNATURE-----
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>