x11-terms/ghostty: add missing depend dev-libs/oniguruma
[gentoo-zh.git] / net-print / kyodialog / kyodialog-9.4-r2.ebuild
blob9909fb9ba5be35829070137e7de4727ceeb3d81f
1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit unpacker xdg
8 DESCRIPTION="Kyocera printer driver for linux"
9 HOMEPAGE="https://www.kyoceradocumentsolutions.com.cn/support/mfp/download/"
11 SRC_URI="
12 amd64? ( https://www.kyoceraconnect.com/servlet/kyocera.admin.DownloadServlet?actionType=download&id=1301
13 -> KyoceraLinuxPackages-20240521.tar.gz )
16 S="${WORKDIR}"
18 LICENSE="KYOCERA"
19 SLOT="0"
20 KEYWORDS="amd64"
22 RESTRICT="strip mirror bindist" # mirror as explained at bug #547372
24 RDEPEND="
25 net-print/cups
26 dev-qt/qtwidgets:5
27 dev-qt/qtdbus:5
28 dev-qt/qtgui:5
29 dev-qt/qtcore:5
30 dev-qt/qtnetwork:5
33 src_unpack() {
34 unpack KyoceraLinuxPackages-20240521.tar.gz
35 unpack_deb Debian/Global/kyodialog_amd64/kyodialog_${PV}-0_amd64.deb
38 src_install() {
39 exeinto /usr/bin
40 exeopts -m0755
41 doexe "${S}"/usr/bin/*
43 exeinto /usr/lib/cups/filter
44 exeopts -m0755
45 doexe "${S}"/usr/lib/cups/filter/*
47 # fix the icon patch
48 sed -i "s/kyocera/kyocera9.4/g" "${$}"/usr/share/applications/kyodialog9.4.desktop
49 insinto /usr/share
50 doins -r "${S}"/usr/share/{applications,kyocera9.4}
52 insinto /etc
53 doins -r "${S}"/etc/{dbus-1,xdg}