1 |
commit: cb0c0677f53fceb50c8f74ce58895f9beebb3e5f |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 24 09:10:46 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 24 09:10:46 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0c0677 |
7 |
|
8 |
net-print/cndrvcups-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 |
net-print/cndrvcups-lb/cndrvcups-lb-3.60-r2.ebuild | 112 +++++++++++++++++++++ |
15 |
1 file changed, 112 insertions(+) |
16 |
|
17 |
diff --git a/net-print/cndrvcups-lb/cndrvcups-lb-3.60-r2.ebuild b/net-print/cndrvcups-lb/cndrvcups-lb-3.60-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..cfc16e198df |
20 |
--- /dev/null |
21 |
+++ b/net-print/cndrvcups-lb/cndrvcups-lb-3.60-r2.ebuild |
22 |
@@ -0,0 +1,112 @@ |
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="Canon UFR II / LIPSLX Printer Driver for Linux" |
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 |
+LICENSE="Canon-UFR-II" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="-* ~amd64 ~x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] |
43 |
+ >=gnome-base/libglade-2.4:2.0 |
44 |
+ >=net-print/cups-1.1.17 |
45 |
+ ~net-print/cndrvcups-common-lb-${PV} |
46 |
+ >=x11-libs/gtk+-2.4:2 |
47 |
+ virtual/jpeg:62[abi_x86_32(-)] |
48 |
+" |
49 |
+DEPEND="${DEPEND}" |
50 |
+ |
51 |
+S="${WORKDIR}/${SOURCES_NAME}/Sources/${P}" |
52 |
+ |
53 |
+MAKEOPTS+=" -j1" |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ # Don't raise a fuss over pre-built binaries |
57 |
+ QA_PREBUILT=" |
58 |
+ /usr/bin/cnpkbidi |
59 |
+ /usr/bin/cnpkmoduleufr2 |
60 |
+ /usr/$(get_abi_LIBDIR x86)/libEnoJPEG.so.1.0.0 |
61 |
+ /usr/$(get_abi_LIBDIR x86)/libEnoJBIG.so.1.0.0 |
62 |
+ /usr/$(get_abi_LIBDIR x86)/libufr2filter.so.1.0.0 |
63 |
+ /usr/$(get_abi_LIBDIR x86)/libcnlbcm.so.1.0 |
64 |
+ /usr/$(get_abi_LIBDIR x86)/libcaiocnpkbidi.so.1.0.0 |
65 |
+ /usr/$(get_abi_LIBDIR x86)/libcanonufr2.so.1.0.0 |
66 |
+ " |
67 |
+ QA_SONAME="/usr/$(get_abi_LIBDIR x86)/libcaiocnpkbidi.so.1.0.0" |
68 |
+} |
69 |
+ |
70 |
+src_unpack() { |
71 |
+ unpack ${A} |
72 |
+ cd "${WORKDIR}/${SOURCES_NAME}/Sources/" || die |
73 |
+ unpack ./${P}-1.tar.gz |
74 |
+} |
75 |
+ |
76 |
+change_dir() { |
77 |
+ for i in pstoufr2cpca cngplp cngplp/files cpca ; 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:filterdir = \$(libdir)/cups/filter:filterdir = `cups-config --serverbin`/filter:" \ |
88 |
+ pstoufr2cpca/filter/Makefile.am || die |
89 |
+ |
90 |
+ export "LIBS=-lgmodule-2.0" |
91 |
+ change_dir eautoreconf |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ change_dir econf |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ default |
100 |
+ einstalldocs |
101 |
+ |
102 |
+ find "${D}" -name '*.la' -delete || die |
103 |
+ |
104 |
+ insinto /usr/share/cups/model |
105 |
+ doins ppd/*.ppd |
106 |
+ |
107 |
+ cd "${S}/data" || die |
108 |
+ insinto /usr/share/caepcm |
109 |
+ doins * |
110 |
+ |
111 |
+ cd "${S}/libs" || die |
112 |
+ insinto /usr/share/cnpkbidi |
113 |
+ doins cnpkbidi_info* |
114 |
+ |
115 |
+ insinto /usr/share/ufr2filter |
116 |
+ doins ThLB* |
117 |
+ |
118 |
+ ABI=x86 |
119 |
+ dobin cnpkbidi cnpkmoduleufr2 |
120 |
+ dolib.so libcnlbcm.so.1.0 |
121 |
+ dosym libcnlbcm.so.1.0 "/usr/$(get_libdir)/libcnlbcm.so.1" |
122 |
+ dosym libcnlbcm.so.1.0 "/usr/$(get_libdir)/libcnlbcm.so" |
123 |
+ for lib in *.so.?.?.?; do |
124 |
+ dolib.so "${lib}" |
125 |
+ dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?}" |
126 |
+ dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?.?}" |
127 |
+ done |
128 |
+ |
129 |
+ # c3pldrv dlopens the absolute path /usr/lib/libcnlbcm.so :(, bug #???? |
130 |
+ # Only needed with SYMLINK_LIB=yes #642138 |
131 |
+ if [[ "$(get_libdir)" != lib ]] && [[ ${SYMLINK_LIB} = yes ]]; then |
132 |
+ dosym "../$(get_libdir)/libcnlbcm.so" /usr/lib/libcnlbcm.so |
133 |
+ fi |
134 |
+} |