-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit toolchain-funcs
+inherit toolchain-funcs xdg-utils
DESCRIPTION="A fast, light, simple to use micro-browser using WebKit and Lua"
HOMEPAGE="https://luakit.github.io/luakit"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
- EGIT_REPO_URI="git://github.com/luakit/luakit.git"
+ EGIT_REPO_URI="https://github.com/luakit/luakit.git"
else
SRC_URI="https://github.com/luakit/luakit/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
CC=$(tc-getCC) \
LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \
LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \
+ PREFIX="${EPREFIX}/usr" \
all
use doc && emake doc
}
src_install() {
+ sed -i 's/install -m644 luakit.1.gz/install -m644 luakit.1/g' Makefile || die
+
emake \
DESTDIR="${D}" \
PREFIX="${EPREFIX}/usr" \
use doc && dodoc -r doc/html
}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ xdg_mimeinfo_database_update
+}