New package: dev-lua/lua-cyrussasl, requires by prosody[sasl]

This commit is contained in:
nemunaire 2018-04-12 23:58:04 +02:00 committed by nemunaire
commit d87617c55a
3 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,42 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic
DESCRIPTION="Cyrus SASL library for Lua 5.1+ "
HOMEPAGE="https://github.com/JorjBauer/lua-cyrussasl"
SRC_URI="https://github.com/JorjBauer/lua-cyrussasl/archive/v${PV}.zip"
LICENSE="BSD3"
SLOT="0"
KEYWORDS="~amd64 ~arm"
IUSE=""
RDEPEND="dev-lang/lua:*
dev-libs/cyrus-sasl"
DEPEND="${RDEPEND}"
src_prepare() {
sed -i '/CFLAGS=/d;/LDFLAGS=/d;/LUAPATH=/d;/CPATH=/d' Makefile \
|| die "Unable to remove bad variables overwrite."
append-cflags -fpic
append-ldflags -O -shared -fpic
append-libs -lsasl2 -llua
default
}
src_compile() {
default
}
src_install() {
export CPATH=${D}/usr/lib/lua/5.1
mkdir -p ${CPATH}
default
}