# Copyright 2018 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2

require neovim-gtk

SLOT="0"
PLATFORMS="~amd64 ~x86"

DEPENDENCIES="
    build+run:
        app-editors/neovim
        dev-libs/glib:2
        x11-libs/cairo
        x11-libs/gtk+:3[>=3.10.0]
        x11-libs/pango
"

src_install() {
    ecargo_install

    insinto /usr/share/applications
    doins desktop/*.desktop

    insinto /usr/share/icons/hicolor/128x128/apps
    doins desktop/nvim-gtk.png
}