From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E566E138335 for ; Sun, 24 Feb 2019 09:11:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFCF2E08BF; Sun, 24 Feb 2019 09:11:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC386E08BF for ; Sun, 24 Feb 2019 09:11:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C431C33BE32 for ; Sun, 24 Feb 2019 09:11:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD563326 for ; Sun, 24 Feb 2019 09:11:10 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1550999402.baf528a35f29ed085bf52f317c2379229d6fde7f.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cndrvcups-common-lb/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.60-r1.ebuild X-VCS-Directories: net-print/cndrvcups-common-lb/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: baf528a35f29ed085bf52f317c2379229d6fde7f X-VCS-Branch: master Date: Sun, 24 Feb 2019 09:11:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0bb09e8c-cdef-438f-9b5a-220b94ab2081 X-Archives-Hash: 3d28a743665dff406c61a0da3b012ab1 commit: baf528a35f29ed085bf52f317c2379229d6fde7f Author: Pacho Ramos gentoo org> AuthorDate: Sun Feb 24 09:10:02 2019 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sun Feb 24 09:10:02 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baf528a3 net-print/cndrvcups-common-lb: Symlink is needed when SYMLINK_LIB=yes Closes: https://bugs.gentoo.org/642138 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Pacho Ramos gentoo.org> .../cndrvcups-common-lb-3.60-r1.ebuild | 115 +++++++++++++++++++++ 1 file changed, 115 insertions(+) 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 new file mode 100644 index 00000000000..3eef7fc8afc --- /dev/null +++ b/net-print/cndrvcups-common-lb/cndrvcups-common-lb-3.60-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2019 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="Common files for Canon drivers" +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" + +# GPL-2 License inside LICENSE-EN.txt files +LICENSE="Canon-UFR-II GPL-2 MIT" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +RDEPEND=" + >=dev-libs/libxml2-2.6:2 + >=gnome-base/libglade-2.4:2.0 + >=net-print/cups-1.1.17 + >=x11-libs/gtk+-2.4:2 +" +DEPEND="${DEPEND}" + +S="${WORKDIR}/${SOURCES_NAME}/Sources/${P/-lb-${PV}/-4.00}" + +pkg_setup() { + # Don't raise a fuss over pre-built binaries + QA_PREBUILT=" + /usr/libexec/cups/filter/c3pldrv + /usr/$(get_abi_LIBDIR x86)/libColorGear.so.0.0.0 + /usr/$(get_abi_LIBDIR x86)/libColorGearC.so.1.0.0 + /usr/$(get_abi_LIBDIR x86)/libc3pl.so.0.0.1 + /usr/$(get_abi_LIBDIR x86)/libcaepcm.so.1.0 + /usr/$(get_abi_LIBDIR x86)/libcaiousb.so.1.0.0 + /usr/$(get_abi_LIBDIR x86)/libcaiowrap.so.1.0.0 + /usr/$(get_abi_LIBDIR x86)/libcanon_slim.so.1.0.0 + /usr/$(get_libdir)/libcanonc3pl.so.1.0.0 + " + QA_SONAME=" + /usr/$(get_abi_LIBDIR x86)/libcaiousb.so.1.0.0 + " +} + +src_unpack() { + unpack ${A} + cd "${WORKDIR}/${SOURCES_NAME}/Sources/" || die + unpack ./${P/-lb-${PV}/-4.00}-1.tar.gz +} + +change_dir() { + for i in cngplp buftool backend; do + cd "${i}" || die + "${@}" + cd "${S}" || die + done +} + +src_prepare() { + default + sed -i -e \ + "s:backenddir = \$(libdir)/cups/backend:backenddir = `cups-config --serverbin`/backend:" \ + backend/Makefile.am || die + + export "LIBS=-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0" + change_dir eautoreconf +} + +src_configure() { + change_dir econf +} + +src_compile() { + change_dir emake + + # Cannot be moved to 'change_dir' as it doesn't need eautoreconf + ( cd "${S}/c3plmod_ipc" && emake ) || die +} + +src_install() { + MAKEOPTS+=" -j1" default + + einstalldocs + + cd "${S}/c3plmod_ipc" || die + dolib.so libcanonc3pl.so.1.0.0 + dosym libcanonc3pl.so.1.0.0 "/usr/$(get_libdir)/libcanonc3pl.so.1" + dosym libcanonc3pl.so.1.0.0 "/usr/$(get_libdir)/libcanonc3pl.so" + + cd "${S}/data" || die + insinto /usr/share/caepcm + doins * + + ABI=x86 + cd "${S}/libs" || die + exeinto $(cups-config --serverbin)/filter + doexe c3pldrv + dolib.so libcaepcm.so.1.0 + dosym libcaepcm.so.1.0 "/usr/$(get_libdir)/libcaepcm.so.1" + dosym libcaepcm.so.1.0 "/usr/$(get_libdir)/libcaepcm.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/libc3pl.so :(, bug #???? + # Only needed with SYMLINK_LIB=yes #642138 + if [[ "$(get_libdir)" != lib ]] && [[ ${SYMLINK_LIB} = yes ]]; then + dosym "../$(get_libdir)/libc3pl.so" /usr/lib/libc3pl.so + fi +}