From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/
Date: Thu, 5 Sep 2019 18:45:26 +0000 (UTC) [thread overview]
Message-ID: <1567709103.9189264db54c0f6a85adfcf5c055d5d5752fda82.juippis@gentoo> (raw)
commit: 9189264db54c0f6a85adfcf5c055d5d5752fda82
Author: Bernardo Meurer <bernardo <AT> standard <DOT> ai>
AuthorDate: Thu Sep 5 08:15:50 2019 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Sep 5 18:45:03 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9189264d
dev-libs/libluv: new package (1.30.1_p0)
Bare libuv bindings for lua
Closes: https://bugs.gentoo.org/691878
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Bernardo Meurer <bernardo <AT> standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/12864
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-lua/luv/Manifest | 2 ++
dev-lua/luv/luv-1.30.1_p0.ebuild | 62 ++++++++++++++++++++++++++++++++++++++++
dev-lua/luv/metadata.xml | 21 ++++++++++++++
3 files changed, 85 insertions(+)
diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
new file mode 100644
index 00000000000..0b154193b78
--- /dev/null
+++ b/dev-lua/luv/Manifest
@@ -0,0 +1,2 @@
+DIST luv-1.30.1_p0.tar.gz 88560 BLAKE2B 9eb32f4e13921899a80dfba143508d26ef0bee3ce0186b62b31ee9da508aa434ac01dcdbd5654f03fd18798791b71e310739e2d9a879f03bf6c48475cc6e0b46 SHA512 c7f613e72d5e5e93035597fcb6a3868d60e61811d4858ced1c2087f31ed0720c11fe436af51d6626c0d77ed448989520b220d6a150b49f6ec0fe557472dd66c7
+DIST luv-lua-compat-1.30.1_p0.zip 62515 BLAKE2B 173dbe43a1f1f4e440c1e40b0a0b22b4ca580568e754a44fbcf57370a53340ebe247de18ae8e98e68cf0f85ae2fa6ec41d5acfb9a433e4bdc717a1e80a2480b6 SHA512 7e66b059aecdb4de630fd305fdcc439cccac94b44101c8b74d61f0f40a1e01e8e68c811a96bddcf5bb0ae09f369d9524f0ec9b009e31d89aef2a1115becba056
diff --git a/dev-lua/luv/luv-1.30.1_p0.ebuild b/dev-lua/luv/luv-1.30.1_p0.ebuild
new file mode 100644
index 00000000000..50c64f2bb52
--- /dev/null
+++ b/dev-lua/luv/luv-1.30.1_p0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils unpacker
+
+MY_PV="${PV/_p/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv"
+# XXX: Remember to check this hash between bumps!
+# https://github.com/luvit/luv/tree/master/deps
+LUA_COMPAT_HASH="daebe77a2f498817713df37f0bb316db1d82222f"
+SRC_URI="
+ https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/keplerproject/lua-compat-5.3/archive/${LUA_COMPAT_HASH}.zip -> ${PN}-lua-compat-${PV}.zip
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="luajit test"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ luajit? ( dev-lang/luajit:2 )
+ !luajit? ( dev-lang/lua:0 )
+ )
+"
+DEPEND="dev-libs/libuv:="
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Fix libdir
+ # Match '/lib/' and '/lib"' without capturing / or ", replacing with libdir
+ sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die "Failed to sed CMakeLists.txt"
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_HASH}"
+ local mycmakeargs=(
+ -DBUILD_MODULE=OFF
+ -DLUA_BUILD_TYPE=System
+ -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+ -DWITH_LUA_ENGINE=$(usex luajit LuaJIT Lua)
+ -DWITH_SHARED_LIBUV=ON
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ local elua="$(usex luajit luajit lua)"
+ # We need to copy the library back so that the tests see it
+ cp "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to copy library for tests"
+ ${elua} "tests/run.lua" || die "Tests failed"
+}
diff --git a/dev-lua/luv/metadata.xml b/dev-lua/luv/metadata.xml
new file mode 100644
index 00000000000..b860177b333
--- /dev/null
+++ b/dev-lua/luv/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bernardo@standard.ai</email>
+ <name>Bernardo Meurer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ libuv bindings for luajit and lua 5.1/ 5.2/ 5.3.
+
+ This library makes libuv available to lua scripts. It was made for the
+ luvit project but should usable from nearly any lua project.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">luvit/luv</remote-id>
+ </upstream>
+</pkgmetadata>
next reply other threads:[~2019-09-05 18:45 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-05 18:45 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-09-07 19:42 [gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/ Joonas Niilola
2019-09-17 19:31 Michał Górny
2019-09-19 12:46 Joonas Niilola
2019-09-19 12:46 Joonas Niilola
2019-10-31 15:45 Joonas Niilola
2019-10-31 15:45 Joonas Niilola
2019-11-03 14:01 Mikle Kolyada
2019-11-04 3:56 Joonas Niilola
2019-12-29 9:20 Mikle Kolyada
2020-10-15 12:05 Marek Szuba
2020-11-13 23:08 Marek Szuba
2020-11-16 13:18 Marek Szuba
2020-11-16 15:01 Marek Szuba
2020-12-22 15:08 Marek Szuba
2021-01-25 17:38 Marek Szuba
2021-03-09 16:22 Aaron Bauman
2021-03-16 17:37 Conrad Kostecki
2021-03-16 17:37 Conrad Kostecki
2021-10-11 13:47 Yixun Lan
2022-03-31 18:45 Jakov Smolić
2022-03-31 18:45 Jakov Smolić
2022-07-15 7:40 Sam James
2022-10-01 1:29 Sam James
2022-11-07 17:27 Arthur Zamarin
2022-11-08 4:54 Jakov Smolić
2022-12-02 12:01 Arthur Zamarin
2023-04-08 13:42 Luca Barbato
2023-09-11 0:54 Sam James
2023-10-19 6:16 Joonas Niilola
2023-10-19 6:16 Joonas Niilola
2023-10-19 12:17 Sam James
2023-12-01 20:57 Arthur Zamarin
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=1567709103.9189264db54c0f6a85adfcf5c055d5d5752fda82.juippis@gentoo \
--to=juippis@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