net-im/tencent-qq: bump version to 3.2.15_p241224
[gentoo-zh.git] / media-gfx / scangearmp / scangearmp-2.4.10.ebuild
blobd070b90e5498f44cd819123b5fadf74a55ecdc0e
1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit autotools udev
8 MY_P1=$( ver_cut 1 )
9 MY_P2=$( ver_cut 2- )
10 MY_PN="${PN}${MY_P1}"
11 MY_P="${MY_PN}-source-${MY_P2}-1"
13 DESCRIPTION="Driver and utility package for Canon scanners"
14 HOMEPAGE="https://www.canon.com"
15 SRC_URI="https://gdlp01.c-wss.com/gds/4/0100010924/01/${MY_P}.tar.gz"
17 S="${WORKDIR}/${MY_P}/${MY_PN}"
19 LICENSE="Canon-IJ"
20 SLOT="0"
21 KEYWORDS="~amd64 ~x86"
23 DEPEND=">=x11-libs/gtk+-2.16:2
24 virtual/libusb:1"
25 RDEPEND="${DEPEND}"
27 QA_PREBUILT="
28 /usr/lib64/libcncpnet30.so.1.0.0
29 /usr/lib64/libcncpnet20.so.1.0.0
30 /usr/lib64/libcncpnet2.so.1.2.4
31 /usr/lib64/libcncpmslld2.so.3.0.0
32 /usr/bin/scangearmp2
33 /usr/lib64/libcncpmslld2.so.3.0.0
34 /usr/lib64/libcncpnet2.so.1.2.4
35 /usr/lib64/libcncpnet20.so.1.0.0
36 /usr/lib64/libcncpnet30.so.1.0.0
39 src_prepare()
41 sed -i -e '/^CFLAGS/d' configure.in || die
42 sed -i -e '/AC_INIT/s/in/ac/' configure.in || die
43 mv configure.{in,ac} || die
45 eapply_user
47 eautoreconf
50 src_compile()
52 SHIPPED_LIBS="${WORKDIR}/${MY_P}/com/libs_bin$(usex amd64 64 32)"
53 emake LDFLAGS="-L${SHIPPED_LIBS}"
56 src_install()
58 SHIPPED_LIBS="${WORKDIR}/${MY_P}/com/libs_bin$(usex amd64 64 32)"
60 dodir /usr/lib/bjlib
61 dodir /lib/udev/rules.d
63 dolib.so "${SHIPPED_LIBS}/"*.so*
64 insinto /usr/lib/bjlib
65 doins "${WORKDIR}/${MY_P}/com/ini/canon_mfp2_net.ini"
67 insinto /lib/udev/rules.d
68 doins "${S}/etc/"*.rules
70 emake DESTDIR="${D}" install
73 pkg_postinst() {
74 udev_reload
77 pkg_postrm() {
78 udev_reload