diff options
Diffstat (limited to 'www-client/luakit/luakit-9999.ebuild')
-rw-r--r-- | www-client/luakit/luakit-9999.ebuild | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/www-client/luakit/luakit-9999.ebuild b/www-client/luakit/luakit-9999.ebuild index 3f617a46a60c..450c214f8e7c 100644 --- a/www-client/luakit/luakit-9999.ebuild +++ b/www-client/luakit/luakit-9999.ebuild @@ -2,10 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 +inherit toolchain-funcs xdg -inherit toolchain-funcs xdg-utils - -DESCRIPTION="A fast, light, simple to use micro-browser using WebKit and Lua" +DESCRIPTION="A fast, extensible, and customizable web browser" HOMEPAGE="https://luakit.github.io/luakit" if [[ ${PV} == 9999 ]]; then @@ -28,36 +27,45 @@ RDEPEND=" net-libs/webkit-gtk:4= x11-libs/gtk+:3 luajit? ( dev-lang/luajit:2 ) - !luajit? ( dev-lang/lua:0 )" -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( app-doc/doxygen ) + !luajit? ( dev-lang/lua:0 ) +" +DEPEND=" + ${RDEPEND} test? ( dev-lua/luassert[luajit=] dev-lua/luacheck[luajit=] x11-base/xorg-server[xvfb] - )" + ) +" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" +PATCHES=( + "${FILESDIR}"/${PN}-2.2.1-make.patch +) + +src_configure() { + tc-export CC PKG_CONFIG +} src_compile() { emake \ - CC=$(tc-getCC) \ - LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \ - LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \ + LUA_PKG_NAME=$(usex luajit luajit lua) \ + LUA_BIN_NAME=$(usex luajit luajit lua) \ PREFIX="${EPREFIX}/usr" \ - all + ${PN} use doc && emake doc } src_test() { emake \ - LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \ + LUA_BIN_NAME=$(usex luajit luajit lua) \ run-tests } src_install() { - sed -i 's/install -m644 luakit.1.gz/install -m644 luakit.1/g' Makefile || die - emake \ DESTDIR="${D}" \ PREFIX="${EPREFIX}/usr" \ @@ -69,9 +77,3 @@ src_install() { use doc && dodoc -r doc/html } - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} |