remove ia64 keywords
[gentoo-zh.git] / app-editors / marktext-bin / marktext-bin-0.17.1.ebuild
blobd2fea046b3c2e4d4c7483cecc4c08d03a128798e
1 # Copyright 2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit desktop xdg unpacker
8 DESCRIPTION="A simple and elegant markdown editor, available for Linux, macOS and Windows."
9 HOMEPAGE="https://marktext.app/ https://github.com/marktext/marktext"
10 SRC_URI="https://github.com/marktext/marktext/releases/download/v${PV}/${PN%-bin}-amd64.deb -> ${P}.deb"
12 LICENSE="MIT"
13 SLOT="0"
14 KEYWORDS="amd64"
15 S="${WORKDIR}"
17 RDEPEND="
18 app-accessibility/at-spi2-atk:2
19 app-accessibility/at-spi2-core:2
20 dev-libs/atk
21 dev-libs/expat
22 dev-libs/nspr
23 dev-libs/nss
24 media-libs/alsa-lib
25 media-libs/mesa
26 net-print/cups
27 sys-apps/dbus[X]
28 x11-libs/cairo
29 x11-libs/gdk-pixbuf:2
30 x11-libs/gtk+:3[X]
31 x11-libs/libX11
32 x11-libs/libXcomposite
33 x11-libs/libXdamage
34 x11-libs/libXext
35 x11-libs/libXfixes
36 x11-libs/libXrandr
37 x11-libs/libdrm
38 x11-libs/libxcb
39 x11-libs/libxkbcommon
40 x11-libs/libxshmfence
41 x11-libs/pango
44 QA_PREBUILT="
45 opt/MarkText/resources/app.asar.unpacked/node_modules/*
46 opt/MarkText/swiftshader/libEGL.so
47 opt/MarkText/swiftshader/libGLESv2.so
48 opt/MarkText/chrome-sandbox
49 opt/MarkText/chrome_crashpad_handler
50 opt/MarkText/libEGL.so
51 opt/MarkText/libffmpeg.so
52 opt/MarkText/libGLESv2.so
53 opt/MarkText/libvk_swiftshader.so
54 opt/MarkText/libvulkan.so.1
55 opt/MarkText/marktext
58 src_prepare(){
59 default
60 unpack usr/share/doc/${PN%-bin}/changelog.gz
63 src_install(){
64 insinto /opt
65 doins -r opt/MarkText
67 insinto /usr/share
68 doins -r usr/share/icons
70 dodoc changelog
71 domenu usr/share/applications/${PN%-bin}.desktop
73 local f
74 for f in ${QA_PREBUILT}; do
75 fperms +x "/${f}"
76 done
77 fperms u+s /opt/MarkText/chrome-sandbox
79 dosym ../../opt/MarkText/${PN%-bin} /usr/bin/${PN%-bin}