Gentoo Archives: gentoo-commits

From: "Vadim A. Misbakh-Soloviov" <mva@×××.name>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lua:master commit in: dev-lua/resty-lrucache/
Date: Fri, 02 May 2014 05:49:57
Message-Id: 1399009779.3ff7671cfa9bd400f9c1185af226df99f82a13b7.mva@gentoo
1 commit: 3ff7671cfa9bd400f9c1185af226df99f82a13b7
2 Author: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
3 AuthorDate: Fri May 2 05:49:39 2014 +0000
4 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
5 CommitDate: Fri May 2 05:49:39 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/lua.git;a=commit;h=3ff7671c
7
8 [dev-lua/resty-lrucache] Added
9
10 Signed-off-by: Vadim A. Misbakh-Soloviov <mva <AT> mva.name>
11
12 ---
13 dev-lua/resty-lrucache/metadata.xml | 14 +++++++++
14 dev-lua/resty-lrucache/resty-lrucache-9999.ebuild | 36 +++++++++++++++++++++++
15 2 files changed, 50 insertions(+)
16
17 diff --git a/dev-lua/resty-lrucache/metadata.xml b/dev-lua/resty-lrucache/metadata.xml
18 new file mode 100644
19 index 0000000..23da526
20 --- /dev/null
21 +++ b/dev-lua/resty-lrucache/metadata.xml
22 @@ -0,0 +1,14 @@
23 +<?xml version="1.0" encoding="UTF-8"?>
24 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
25 +<pkgmetadata>
26 +<maintainer>
27 + <email>mva@×××.name</email>
28 + <description>
29 + If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet.
30 + </description>
31 + <name>Vadim A. Misbakh-Soloviov</name>
32 +</maintainer>
33 +<longdescription>FIXME</longdescription>
34 +<use>
35 +</use>
36 +</pkgmetadata>
37
38 diff --git a/dev-lua/resty-lrucache/resty-lrucache-9999.ebuild b/dev-lua/resty-lrucache/resty-lrucache-9999.ebuild
39 new file mode 100644
40 index 0000000..b2c112f
41 --- /dev/null
42 +++ b/dev-lua/resty-lrucache/resty-lrucache-9999.ebuild
43 @@ -0,0 +1,36 @@
44 +# Copyright 1999-2013 Gentoo Foundation
45 +# Distributed under the terms of the GNU General Public License v2
46 +# $Header: This ebuild is from Lua overlay; Bumped by mva; $
47 +
48 +EAPI="5"
49 +
50 +inherit eutils toolchain-funcs git-r3
51 +
52 +DESCRIPTION="A simple LRU cache for OpenResty and the ngx_lua module (based on LuaJIT FFI)"
53 +HOMEPAGE="https://github.com/agentzh/lua-${PN}"
54 +SRC_URI=""
55 +
56 +EGIT_REPO_URI="https://github.com/agentzh/lua-${PN}"
57 +
58 +LICENSE="BSD"
59 +SLOT="0"
60 +KEYWORDS=""
61 +IUSE="luajit"
62 +
63 +RDEPEND="
64 + !luajit? ( >=dev-lang/lua-5.1 )
65 + luajit? ( dev-lang/luajit:2 )
66 + www-servers/nginx[nginx_modules_http_lua]
67 +"
68 +DEPEND="
69 + ${RDEPEND}
70 + dev-util/pkgconfig
71 +"
72 +
73 +src_install() {
74 + local lua=lua;
75 + use luajit && lua=luajit;
76 +
77 + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})"
78 + doins -r lib/resty
79 +}