commit: bbfc9d82b7aa3720ce3e0392825a71d635218b2a Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name> AuthorDate: Wed Dec 28 07:05:41 2016 +0000 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> CommitDate: Wed Dec 28 07:05:41 2016 +0000 URL: https://gitweb.gentoo.org/proj/lua.git/commit/?id=bbfc9d82
resty-hpdf: added dev-lua/resty-hpdf/metadata.xml | 14 +++++++++++ dev-lua/resty-hpdf/resty-hpdf-9999.ebuild | 41 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/dev-lua/resty-hpdf/metadata.xml b/dev-lua/resty-hpdf/metadata.xml new file mode 100644 index 0000000..23da526 --- /dev/null +++ b/dev-lua/resty-hpdf/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>m...@mva.name</email> + <description> + If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet. + </description> + <name>Vadim A. Misbakh-Soloviov</name> +</maintainer> +<longdescription>FIXME</longdescription> +<use> +</use> +</pkgmetadata> diff --git a/dev-lua/resty-hpdf/resty-hpdf-9999.ebuild b/dev-lua/resty-hpdf/resty-hpdf-9999.ebuild new file mode 100644 index 0000000..fc16810 --- /dev/null +++ b/dev-lua/resty-hpdf/resty-hpdf-9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +LUA_COMPAT="luajit2" +VCS="git" +GITHUB_A="tavikukko" +GITHUB_PN="lua-${PN}" + +inherit lua + +DESCRIPTION="LuaJIT FFI-based libHaru (PDF) library for OpenResty." +HOMEPAGE="https://github.com/tavikukko/lua-resty-hpdf" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND=" + media-libs/libharu + dev-lang/luajit:2 +" +DEPEND=" + ${RDEPEND} +" + +DOCS=(README.md) + +all_lua_prepare() { + sed -r \ + -e "/ffi.load/s@(\")/usr.*dylib(\")@libharu_path or \1/usr/$(get_libdir)/libhpdf.so\2@" \ + -i lib/resty/hpdf.lua + + lua_default +} + +each_lua_install() { + dolua_jit lib/resty +}