Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cndrvcups-common-lb/
Date: Sat, 15 Sep 2018 11:58:34
Message-Id: 1537012701.4490d4e9eca48b9b22d41f68e2268317063aeda4.pacho@gentoo
1 commit: 4490d4e9eca48b9b22d41f68e2268317063aeda4
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 15 11:55:31 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 15 11:58:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4490d4e9
7
8 net-print/cndrvcups-common-lb: Try to not create symlinks, bug #642138
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 .../cndrvcups-common-lb-3.50-r1.ebuild | 115 +++++++++++++++++++++
13 1 file changed, 115 insertions(+)
14
15 diff --git a/net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.50-r1.ebuild b/net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.50-r1.ebuild
16 new file mode 100644
17 index 00000000000..2a20a651679
18 --- /dev/null
19 +++ b/net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.50-r1.ebuild
20 @@ -0,0 +1,115 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +inherit autotools versionator
26 +
27 +MY_PV="$(delete_all_version_separators)"
28 +SOURCES_NAME="linux-UFRII-drv-v${MY_PV}-uken"
29 +
30 +DESCRIPTION="Common files for Canon drivers"
31 +HOMEPAGE="https://www.canon-europe.com/support/products/imagerunner/imagerunner-1133.aspx?type=drivers&language=EN&os=LINUX"
32 +SRC_URI="http://gdlp01.c-wss.com/gds/0/0100009240/01/${SOURCES_NAME}.tar.gz"
33 +
34 +# GPL-2 License inside LICENSE-EN.txt files
35 +LICENSE="Canon-UFR-II GPL-2 MIT"
36 +SLOT="0"
37 +KEYWORDS="-* ~amd64 ~x86"
38 +IUSE=""
39 +
40 +RDEPEND="
41 + >=dev-libs/libxml2-2.6:2
42 + >=gnome-base/libglade-2.4:2.0
43 + >=net-print/cups-1.1.17
44 + >=x11-libs/gtk+-2.4:2
45 +"
46 +DEPEND="${DEPEND}"
47 +
48 +S="${WORKDIR}/${SOURCES_NAME}/Sources/${P/-lb-${PV}/-3.90}"
49 +
50 +pkg_setup() {
51 + # Don't raise a fuss over pre-built binaries
52 + QA_PREBUILT="
53 + /usr/libexec/cups/filter/c3pldrv
54 + /usr/$(get_abi_LIBDIR x86)/libColorGear.so.0.0.0
55 + /usr/$(get_abi_LIBDIR x86)/libColorGearC.so.1.0.0
56 + /usr/$(get_abi_LIBDIR x86)/libc3pl.so.0.0.1
57 + /usr/$(get_abi_LIBDIR x86)/libcaepcm.so.1.0
58 + /usr/$(get_abi_LIBDIR x86)/libcaiousb.so.1.0.0
59 + /usr/$(get_abi_LIBDIR x86)/libcaiowrap.so.1.0.0
60 + /usr/$(get_abi_LIBDIR x86)/libcanon_slim.so.1.0.0
61 + /usr/$(get_libdir)/libcanonc3pl.so.1.0.0
62 + "
63 + QA_SONAME="
64 + /usr/$(get_abi_LIBDIR x86)/libcaiousb.so.1.0.0
65 + "
66 +}
67 +
68 +src_unpack() {
69 + unpack ${A}
70 + cd "${WORKDIR}/${SOURCES_NAME}/Sources/" || die
71 + unpack ./${P/-lb-${PV}/-3.90}-1.tar.gz
72 +}
73 +
74 +change_dir() {
75 + for i in cngplp buftool backend; do
76 + cd "${i}" || die
77 + "${@}"
78 + cd "${S}" || die
79 + done
80 +}
81 +
82 +src_prepare() {
83 + default
84 + sed -i -e \
85 + "s:backenddir = \$(libdir)/cups/backend:backenddir = `cups-config --serverbin`/backend:" \
86 + backend/Makefile.am || die
87 +
88 + export "LIBS=-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"
89 + change_dir eautoreconf
90 +}
91 +
92 +src_configure() {
93 + change_dir econf
94 +}
95 +
96 +src_compile() {
97 + change_dir emake
98 +
99 + # Cannot be moved to 'change_dir' as it doesn't need eautoreconf
100 + ( cd "${S}/c3plmod_ipc" && emake ) || die
101 +}
102 +
103 +src_install() {
104 + MAKEOPTS+=" -j1" default
105 +
106 + einstalldocs
107 +
108 + cd "${S}/c3plmod_ipc" || die
109 + dolib.so libcanonc3pl.so.1.0.0
110 + dosym libcanonc3pl.so.1.0.0 "/usr/$(get_libdir)/libcanonc3pl.so.1"
111 + dosym libcanonc3pl.so.1.0.0 "/usr/$(get_libdir)/libcanonc3pl.so"
112 +
113 + cd "${S}/data" || die
114 + insinto /usr/share/caepcm
115 + doins *
116 +
117 + ABI=x86
118 + cd "${S}/libs" || die
119 + exeinto $(cups-config --serverbin)/filter
120 + doexe c3pldrv
121 + dolib.so libcaepcm.so.1.0
122 + dosym libcaepcm.so.1.0 "/usr/$(get_libdir)/libcaepcm.so.1"
123 + dosym libcaepcm.so.1.0 "/usr/$(get_libdir)/libcaepcm.so"
124 + for lib in *.so.?.?.?; do
125 + dolib.so "${lib}"
126 + dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?}"
127 + dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?.?}"
128 + done
129 +
130 + # c3pldrv dlopens the absolute path /usr/lib/libc3pl.so :(, bug #????
131 + # # Skipped for now due to bug #642138
132 +# if [[ "$(get_libdir)" != lib ]]; then
133 +# dosym "../$(get_libdir)/libc3pl.so" /usr/lib/libc3pl.so
134 +# fi
135 +}