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