Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cndrvcups-common-lb/
Date: Thu, 07 Jan 2021 12:24:33
Message-Id: 1610022268.96f07e63541e9d2e4fcb48fc055a1501f3b0a11f.sam@gentoo
1 commit: 96f07e63541e9d2e4fcb48fc055a1501f3b0a11f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 12:23:56 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 12:24:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96f07e63
7
8 net-print/cndrvcups-common-lb: Revert "cleanup old"
9
10 This reverts commit eb47eaebf7b3e9e51540f204839d6ad231c24ae6.
11 Need net-print/cndrvcups-lb in sync.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-print/cndrvcups-common-lb/Manifest | 1 +
16 .../cndrvcups-common-lb-3.60-r1.ebuild | 116 +++++++++++++++++++++
17 2 files changed, 117 insertions(+)
18
19 diff --git a/net-print/cndrvcups-common-lb/Manifest b/net-print/cndrvcups-common-lb/Manifest
20 index b8b441732ad..225fe9561f2 100644
21 --- a/net-print/cndrvcups-common-lb/Manifest
22 +++ b/net-print/cndrvcups-common-lb/Manifest
23 @@ -1 +1,2 @@
24 +DIST linux-UFRII-drv-v360-uken.tar.gz 116695930 BLAKE2B 75b0ed7a957fbc1677a834e67b92b7752cfa74536cb238b553f1c2c98b86399c29209240d093492ea212618c0092ad59a22f03f992462b8ef488f8ed58b51d21 SHA512 c8b2abb2d0e9ccf972241dda5154c0ddd1ba9cfe6c721c242c40c90cf29e8d0b2c6a559907318cd191232f699a42425cc4148aebcaab6aa111f1cb5439777ce7
25 DIST linux-UFRII-drv-v370-uken-05.tar.gz 117334511 BLAKE2B 295c7a710b0f1ee29e642b29c7b0576f68317dba93758825aa85d431129cebea174d5c2dfa67f7506fa3b18fe48d373f0dc9331ed9caabc2e3bc733946aefd97 SHA512 d83254b7f7f87c56caeaaf151d898de36f746c03ad88d427959bdeec905b9cd92a14a8ac534073473a6cefbb5e2b0be9e9faa79b500e252ecd0a0564d2312bbc
26
27 diff --git a/net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.60-r1.ebuild b/net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.60-r1.ebuild
28 new file mode 100644
29 index 00000000000..cbdab7f9b8c
30 --- /dev/null
31 +++ b/net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.60-r1.ebuild
32 @@ -0,0 +1,116 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit autotools
38 +
39 +MY_PV="$(ver_rs 1- '')"
40 +SOURCES_NAME="linux-UFRII-drv-v${MY_PV}-uken"
41 +
42 +DESCRIPTION="Common files for Canon drivers"
43 +HOMEPAGE="https://www.canon-europe.com/support/products/imagerunner/imagerunner-1730i.aspx"
44 +SRC_URI="http://gdlp01.c-wss.com/gds/0/0100009240/02/${SOURCES_NAME}.tar.gz"
45 +
46 +# GPL-2 License inside LICENSE-EN.txt files
47 +LICENSE="Canon-UFR-II GPL-2 MIT"
48 +SLOT="0"
49 +KEYWORDS="-* amd64 x86"
50 +IUSE=""
51 +
52 +RDEPEND="
53 + >=dev-libs/libxml2-2.6:2
54 + >=gnome-base/libglade-2.4:2.0
55 + >=net-print/cups-1.1.17
56 + >=x11-libs/gtk+-2.4:2
57 +"
58 +DEPEND="${DEPEND}"
59 +
60 +S="${WORKDIR}/${SOURCES_NAME}/Sources/${P/-lb-${PV}/-4.00}"
61 +
62 +pkg_setup() {
63 + # Don't raise a fuss over pre-built binaries
64 + QA_PREBUILT="
65 + /usr/libexec/cups/filter/c3pldrv
66 + /usr/$(get_abi_LIBDIR x86)/libColorGear.so.0.0.0
67 + /usr/$(get_abi_LIBDIR x86)/libColorGearC.so.1.0.0
68 + /usr/$(get_abi_LIBDIR x86)/libc3pl.so.0.0.1
69 + /usr/$(get_abi_LIBDIR x86)/libcaepcm.so.1.0
70 + /usr/$(get_abi_LIBDIR x86)/libcaiousb.so.1.0.0
71 + /usr/$(get_abi_LIBDIR x86)/libcaiowrap.so.1.0.0
72 + /usr/$(get_abi_LIBDIR x86)/libcanon_slim.so.1.0.0
73 + /usr/$(get_libdir)/libcanonc3pl.so.1.0.0
74 + "
75 + QA_SONAME="
76 + /usr/$(get_abi_LIBDIR x86)/libcaiousb.so.1.0.0
77 + "
78 +}
79 +
80 +src_unpack() {
81 + unpack ${A}
82 + cd "${WORKDIR}/${SOURCES_NAME}/Sources/" || die
83 + unpack ./${P/-lb-${PV}/-4.00}-1.tar.gz
84 +}
85 +
86 +change_dir() {
87 + for i in cngplp buftool backend; do
88 + cd "${i}" || die
89 + "${@}"
90 + cd "${S}" || die
91 + done
92 +}
93 +
94 +src_prepare() {
95 + default
96 + sed -i -e \
97 + "s:backenddir = \$(libdir)/cups/backend:backenddir = `cups-config --serverbin`/backend:" \
98 + backend/Makefile.am || die
99 +
100 + export "LIBS=-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"
101 + change_dir eautoreconf
102 +}
103 +
104 +src_configure() {
105 + change_dir econf
106 +}
107 +
108 +src_compile() {
109 + change_dir emake
110 +
111 + # Cannot be moved to 'change_dir' as it doesn't need eautoreconf
112 + cd "${S}/c3plmod_ipc" || die
113 + emake
114 +}
115 +
116 +src_install() {
117 + MAKEOPTS+=" -j1" default
118 +
119 + einstalldocs
120 +
121 + cd "${S}/c3plmod_ipc" || die
122 + dolib.so libcanonc3pl.so.1.0.0
123 + dosym libcanonc3pl.so.1.0.0 "/usr/$(get_libdir)/libcanonc3pl.so.1"
124 + dosym libcanonc3pl.so.1.0.0 "/usr/$(get_libdir)/libcanonc3pl.so"
125 +
126 + cd "${S}/data" || die
127 + insinto /usr/share/caepcm
128 + doins *
129 +
130 + ABI=x86
131 + cd "${S}/libs" || die
132 + exeinto $(cups-config --serverbin)/filter
133 + doexe c3pldrv
134 + dolib.so libcaepcm.so.1.0
135 + dosym libcaepcm.so.1.0 "/usr/$(get_libdir)/libcaepcm.so.1"
136 + dosym libcaepcm.so.1.0 "/usr/$(get_libdir)/libcaepcm.so"
137 + for lib in *.so.?.?.?; do
138 + dolib.so "${lib}"
139 + dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?}"
140 + dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?.?}"
141 + done
142 +
143 + # c3pldrv dlopens the absolute path /usr/lib/libc3pl.so :(, bug #????
144 + # Only needed with SYMLINK_LIB=yes #642138
145 + if [[ "$(get_libdir)" != lib ]] && [[ ${SYMLINK_LIB} = yes ]]; then
146 + dosym "../$(get_libdir)/libc3pl.so" /usr/lib/libc3pl.so
147 + fi
148 +}