summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2019-01-31 09:03:56 -0500
committerAnthony G. Basile <blueness@gentoo.org>2019-01-31 09:03:56 -0500
commit6899a4e4f42be62e9150d22fa5a88ff0ffffb339 (patch)
tree6ce80b189c6390e865ff6af1fb4c1ef42d243897 /dev-lua
parentsys-kernel/gentoo-sources: Linux patch 4.19.19 (diff)
downloadgentoo-6899a4e4f42be62e9150d22fa5a88ff0ffffb339.tar.gz
gentoo-6899a4e4f42be62e9150d22fa5a88ff0ffffb339.tar.bz2
gentoo-6899a4e4f42be62e9150d22fa5a88ff0ffffb339.zip
dev-lua/luaevent: version bump to 0.4.6
Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/luaevent/Manifest1
-rw-r--r--dev-lua/luaevent/luaevent-0.4.6.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-lua/luaevent/Manifest b/dev-lua/luaevent/Manifest
index d55339bdf774..5324d59c933b 100644
--- a/dev-lua/luaevent/Manifest
+++ b/dev-lua/luaevent/Manifest
@@ -1,2 +1,3 @@
DIST luaevent-0.4.3.tar.gz 29861 BLAKE2B aa1a2bf3ac708f012fc168616ac19deef55b805deff9e02464d089efa1fe88084103f3638a0443d6df0a699ab95730469f6d15107d4eb2dbcc112412a41a43d4 SHA512 5f02c9d40e59589a2b932b49d27230ca6650174feeda2cf412769c33af056c9df52d38fdd5fc12f0f6318b788e29a2deef54f11beb4becc48818edd27185f161
DIST luaevent-0.4.4.tar.gz 22249 BLAKE2B f4375e02a4a0e2a4517e559b6625188bc0b577f5dc2ce843ba2d9b8811f2953a3255ebf7ee28313731ecc5c7c4877ef78c119a4633361eea2f915426b6a92a2e SHA512 2f2d669e645c3186d5060f2a5358fed4756087e173bd94431cf74b158fc25ff8de4640f1a832704d1431a7b10797385a449ae79ce049e98edc414260cd4c85ea
+DIST luaevent-0.4.6.tar.gz 22599 BLAKE2B 2f70ef105ce43d6b48e69bcc896e20a64ca49e124ad979f5191606d10bb61de1664782016b55cc9f2bc32a704d8f0b4d664eebd8176905f72f9a4e3d1e8b0fdd SHA512 21e222d5bba75fd2e623a8abf20fc3cd38505bf7d3fe94d8781ed626556c398a8501775eb423f0567918cc75f2d846026d4aa559ac5129eca8261f0c73427913
diff --git a/dev-lua/luaevent/luaevent-0.4.6.ebuild b/dev-lua/luaevent/luaevent-0.4.6.ebuild
new file mode 100644
index 000000000000..84700e9d48e4
--- /dev/null
+++ b/dev-lua/luaevent/luaevent-0.4.6.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs
+
+DESCRIPTION="libevent bindings for Lua"
+HOMEPAGE="http://luaforge.net/projects/luaevent"
+SRC_URI="https://github.com/harningt/luaevent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/lua:0
+ dev-libs/libevent:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile" \
+ || die "sed failed"
+ sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile" \
+ || die "sed failed"
+ sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile" \
+ || die "sed failed"
+ sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile" \
+ || die "sed failed"
+ sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile" \
+ || die "sed failed"
+ sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile" \
+ || die "sed failed"
+ eapply_user
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+}