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/luaevent/luaevent-0.4.6.ebuild
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/luaevent/luaevent-0.4.6.ebuild')
-rw-r--r--dev-lua/luaevent/luaevent-0.4.6.ebuild40
1 files changed, 40 insertions, 0 deletions
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"
+}