1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
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}"
21 KEYWORDS
="~amd64 ~x86"
23 DEPEND
=">=x11-libs/gtk+-2.16:2
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
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
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
52 SHIPPED_LIBS
="${WORKDIR}/${MY_P}/com/libs_bin$(usex amd64 64 32)"
53 emake LDFLAGS
="-L${SHIPPED_LIBS}"
58 SHIPPED_LIBS
="${WORKDIR}/${MY_P}/com/libs_bin$(usex amd64 64 32)"
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