added a version-bumped ebuild of media-sound/jivelite from "lmiphay"

master
Tamás Gérczei 2 years ago
parent 206ba79b4b
commit 015d3c3947
  1. 1
      media-sound/jivelite/Manifest
  2. 74
      media-sound/jivelite/jivelite-20200419.ebuild

@ -0,0 +1 @@
EBUILD jivelite-20200419.ebuild 1923 BLAKE2B 4b7d4ee0bd7e8d33b8943063a6890fec35241077d48ab471f9b615cd64f16024d285fea572f3ea2e580883d2186299f9b26757caef3eb8ca20429edd9641eab0 SHA512 a4059f616a17e4b41d2d63ceb47e80fde53d5b4b7886e449592ea69450ba59b343332101fadc3b281313d42cf8459880b1ad35391cbfe3b7f92886430dc45012

@ -0,0 +1,74 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils git-r3
DESCRIPTION="Community logitech media server control application"
HOMEPAGE="https://github.com/ralph-irving/jivelite"
EGIT_REPO_URI="https://github.com/ralph-irving/jivelite.git"
EGIT_COMMIT="a1307c523a7f70e28ecde3a1e238132b23323a77"
LICENSE="jivelite"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
dev-lang/luajit
dev-lua/lua-cjson
dev-lua/luacrypto
dev-lua/luaexpat
dev-lua/luafilesystem
dev-lua/luasocket
media-libs/libsdl
media-libs/sdl-image[png]
media-libs/sdl-ttf
media-libs/sdl-gfx
"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's;-lpthread;-lpthread -lrt;' "src/Makefile"
sed -i -e 's;CFLAGS = -O2;CFLAGS +=;' "lib-src/luazipfilter/Makefile"
sed -i -e 's;LDFLAGS =;LDFLAGS += -shared;' "lib-src/luazipfilter/Makefile"
sed -i '/CC= gcc/d' "lib-src/luamd5/Makefile"
sed -i -e 's;CFLAGS= $(INCS) $(DEFS) $(WARN) -O2 $G -fPIC;CFLAGS += $(INCS) $(DEFS) -fPIC;' "lib-src/luamd5/Makefile"
sed -i -e 's;$(MYLDFLAGS);-shared $(LDFLAGS) $(MYLDFLAGS);' "lib-src/luamd5/Makefile"
sed -i -e 's;"arp ";"/sbin/arp ";' "share/jive/jive/net/NetworkThread.lua"
eapply_user
}
src_compile() {
emake -C src PREFIX=/usr
emake -C lib-src/luazipfilter PREFIX=/usr
emake -C lib-src/luamd5 PREFIX=/usr MYNAME=sha1
emake -C lib-src/luamd5 PREFIX=/usr MYNAME=md5
}
src_install() {
dobin bin/jivelite
insinto /usr/share/jive
doins -r share/jive/jive
doins -r share/jive/fonts
doins -r share/jive/applets
for i in loop ltn12.lua lxp mime.lua socket socket.lua ; do
doins -r share/lua/5.1/$i
done
doins lib-src/luazipfilter/zipfilter.so
doins lib-src/luamd5/md5.so
doins lib-src/luamd5/sha1.so
}
pkg_postinst() {
elog "Support thread at: http://forums.slimdevices.com/showthread.php?98156-Announce-JiveLite-cut-down-squeezebox-control-application"
}