summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-11-18 10:51:02 +0100
committerPacho Ramos <pacho@gentoo.org>2018-11-18 11:52:48 +0100
commit4594688df9bdf06ca3aa84b82a860439b3f0a2e3 (patch)
tree617ed72f121acb15b539ea68750008d77bedc1eb /net-print/cndrvcups-lb
parentapp-crypt/paperkey: Bump to 1.6 (diff)
downloadgentoo-4594688df9bdf06ca3aa84b82a860439b3f0a2e3.tar.gz
gentoo-4594688df9bdf06ca3aa84b82a860439b3f0a2e3.tar.bz2
gentoo-4594688df9bdf06ca3aa84b82a860439b3f0a2e3.zip
net-print/cndrvcups-lb: Ensure ppd files are installed
Thanks-to: Andrew Ammerlaan Closes: https://bugs.gentoo.org/671342 Signed-off-by: Pacho Ramos <pacho@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'net-print/cndrvcups-lb')
-rw-r--r--net-print/cndrvcups-lb/cndrvcups-lb-3.60-r1.ebuild112
1 files changed, 112 insertions, 0 deletions
diff --git a/net-print/cndrvcups-lb/cndrvcups-lb-3.60-r1.ebuild b/net-print/cndrvcups-lb/cndrvcups-lb-3.60-r1.ebuild
new file mode 100644
index 00000000000..8a3ad4427ce
--- /dev/null
+++ b/net-print/cndrvcups-lb/cndrvcups-lb-3.60-r1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+MY_PV="$(ver_rs 1- '')"
+SOURCES_NAME="linux-UFRII-drv-v${MY_PV}-uken"
+
+DESCRIPTION="Canon UFR II / LIPSLX Printer Driver for Linux"
+HOMEPAGE="https://www.canon-europe.com/support/products/imagerunner/imagerunner-1730i.aspx"
+SRC_URI="http://gdlp01.c-wss.com/gds/0/0100009240/02/${SOURCES_NAME}.tar.gz"
+
+LICENSE="Canon-UFR-II"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)]
+ >=gnome-base/libglade-2.4:2.0
+ >=net-print/cups-1.1.17
+ ~net-print/cndrvcups-common-lb-${PV}
+ >=x11-libs/gtk+-2.4:2
+ virtual/jpeg:62[abi_x86_32(-)]
+"
+DEPEND="${DEPEND}"
+
+S="${WORKDIR}/${SOURCES_NAME}/Sources/${P}"
+
+MAKEOPTS+=" -j1"
+
+pkg_setup() {
+ # Don't raise a fuss over pre-built binaries
+ QA_PREBUILT="
+ /usr/bin/cnpkbidi
+ /usr/bin/cnpkmoduleufr2
+ /usr/$(get_abi_LIBDIR x86)/libEnoJPEG.so.1.0.0
+ /usr/$(get_abi_LIBDIR x86)/libEnoJBIG.so.1.0.0
+ /usr/$(get_abi_LIBDIR x86)/libufr2filter.so.1.0.0
+ /usr/$(get_abi_LIBDIR x86)/libcnlbcm.so.1.0
+ /usr/$(get_abi_LIBDIR x86)/libcaiocnpkbidi.so.1.0.0
+ /usr/$(get_abi_LIBDIR x86)/libcanonufr2.so.1.0.0
+ "
+ QA_SONAME="/usr/$(get_abi_LIBDIR x86)/libcaiocnpkbidi.so.1.0.0"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${WORKDIR}/${SOURCES_NAME}/Sources/" || die
+ unpack ./${P}-1.tar.gz
+}
+
+change_dir() {
+ for i in pstoufr2cpca cngplp cngplp/files cpca ; do
+ cd "${i}" || die
+ "${@}"
+ cd "${S}" || die
+ done
+}
+
+src_prepare() {
+ default
+ sed -i -e \
+ "s:filterdir = \$(libdir)/cups/filter:filterdir = `cups-config --serverbin`/filter:" \
+ pstoufr2cpca/filter/Makefile.am || die
+
+ export "LIBS=-lgmodule-2.0"
+ change_dir eautoreconf
+}
+
+src_configure() {
+ change_dir econf
+}
+
+src_install() {
+ default
+ einstalldocs
+
+ find "${D}" -name '*.la' -delete || die
+
+ insinto /usr/share/cups/model
+ doins ppd/*.ppd
+
+ cd "${S}/data" || die
+ insinto /usr/share/caepcm
+ doins *
+
+ cd "${S}/libs" || die
+ insinto /usr/share/cnpkbidi
+ doins cnpkbidi_info*
+
+ insinto /usr/share/ufr2filter
+ doins ThLB*
+
+ ABI=x86
+ dobin cnpkbidi cnpkmoduleufr2
+ dolib.so libcnlbcm.so.1.0
+ dosym libcnlbcm.so.1.0 "/usr/$(get_libdir)/libcnlbcm.so.1"
+ dosym libcnlbcm.so.1.0 "/usr/$(get_libdir)/libcnlbcm.so"
+ for lib in *.so.?.?.?; do
+ dolib.so "${lib}"
+ dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?}"
+ dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?.?}"
+ done
+
+ # c3pldrv dlopens the absolute path /usr/lib/libcnlbcm.so :(, bug #????
+ # Skipped for now due to bug #642138
+# if [[ "$(get_libdir)" != lib ]]; then
+# dosym "../$(get_libdir)/libcnlbcm.so" /usr/lib/libcnlbcm.so
+# fi
+}