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 2CA34138359 for ; Tue, 24 Nov 2020 23:04:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49509E0824; Tue, 24 Nov 2020 23:04:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 1F342E0824 for ; Tue, 24 Nov 2020 23:04:02 +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 E5298340CFE for ; Tue, 24 Nov 2020 23:04:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12568464 for ; Tue, 24 Nov 2020 23:03:59 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1606259024.467014aadc7dd5e85c0aa4e25083d7a67b8c95c5.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/dymo-cups-drivers/files/, net-print/dymo-cups-drivers/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-print/dymo-cups-drivers/dymo-cups-drivers-1.4.0-r2.ebuild net-print/dymo-cups-drivers/files/cups-2.3.0-headers.patch X-VCS-Directories: net-print/dymo-cups-drivers/files/ net-print/dymo-cups-drivers/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 467014aadc7dd5e85c0aa4e25083d7a67b8c95c5 X-VCS-Branch: master Date: Tue, 24 Nov 2020 23:03:59 +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: e54f8b83-254d-49b7-bce4-afaae7d8e416 X-Archives-Hash: a1444313b38c8bfa43aa2bae6538c0e9 commit: 467014aadc7dd5e85c0aa4e25083d7a67b8c95c5 Author: Robin H. Johnson gentoo org> AuthorDate: Tue Nov 24 23:01:14 2020 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Nov 24 23:03:44 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=467014aa net-print/dymo-cups-drivers: compile-fix for cups-2.3 Fixes: https://bugs.gentoo.org/show_bug.cgi?id=693652 Signed-off-by: Robin H. Johnson gentoo.org> .../dymo-cups-drivers-1.4.0-r2.ebuild | 55 ++++++++++++++++++++++ .../files/cups-2.3.0-headers.patch | 24 ++++++++++ 2 files changed, 79 insertions(+) diff --git a/net-print/dymo-cups-drivers/dymo-cups-drivers-1.4.0-r2.ebuild b/net-print/dymo-cups-drivers/dymo-cups-drivers-1.4.0-r2.ebuild new file mode 100644 index 00000000000..bd4c15c361e --- /dev/null +++ b/net-print/dymo-cups-drivers/dymo-cups-drivers-1.4.0-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit eutils autotools + +DESCRIPTION="Dymo SDK for LabelWriter/LabelManager printers" +HOMEPAGE="https://newellrubbermaid.secure.force.com/dymopkb" +SRC_URI="http://download.dymo.com/Download%20Drivers/Linux/Download/${P}.tar.gz" + +S="${WORKDIR}/${P}.5" + +LICENSE="GPL-2" +SLOT="0" +IUSE="test usb_modeswitch" +RESTRICT="!test? ( test )" + +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=net-print/cups-2.3.0" +DEPEND="${RDEPEND} + test? ( dev-util/cppunit ) + usb_modeswitch? ( sys-apps/usb_modeswitch )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.0-cxxflags.patch + "${FILESDIR}"/port_to_newer_cups_headers.patch + "${FILESDIR}"/dymo-cups-drivers-1.4.0.5-flexible-tests.patch + "${FILESDIR}"/cups-2.3.0-headers.patch +) + +DOCS=( AUTHORS README ChangeLog docs/SAMPLES ) + +src_prepare() { + default + eapply_user + eautoreconf +} + +src_install() { + default + dodoc docs/*.{txt,rtf,ps,png} +} + +src_test() { + # upstream tests are designed to be run AFTER make install, because they depend on final paths. + testroot="${T}/testroot" + mkdir -p "${testroot}" + emake install DESTDIR="${testroot}" + # -W filters is because CUPS tries really hard for secure filters: they must be root/root for the filter tests to pass + #chown root:root "${testroot}"/usr/libexec/cups/filter/{raster2dymolm,raster2dymolw} || die "failed to set ownership for tests" + # This will trigger the following warning repeatedly + #Bad permissions on cupsFilter file "..${testroot}/usr/libexec/cups/filter/raster2dymolm" + emake check CUPSTESTPPD_OPTS="-R ${testroot} -W filters" +} diff --git a/net-print/dymo-cups-drivers/files/cups-2.3.0-headers.patch b/net-print/dymo-cups-drivers/files/cups-2.3.0-headers.patch new file mode 100644 index 00000000000..059c3d0c29c --- /dev/null +++ b/net-print/dymo-cups-drivers/files/cups-2.3.0-headers.patch @@ -0,0 +1,24 @@ +https://github.com/codeprofis/dymo-cups-drivers/commit/948abc3500f45578a386182c0d2a55bcfcbc2c66.patch + +From 948abc3500f45578a386182c0d2a55bcfcbc2c66 Mon Sep 17 00:00:00 2001 +From: Florian Knodt +Date: Fri, 28 Feb 2020 23:26:34 +0100 +Subject: [PATCH] Add missing backend header. Fixes #11. + +--- + src/common/CupsPrintEnvironment.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/common/CupsPrintEnvironment.h b/src/common/CupsPrintEnvironment.h +index 23043d8..76ecefc 100644 +--- a/src/common/CupsPrintEnvironment.h ++++ b/src/common/CupsPrintEnvironment.h +@@ -21,6 +21,8 @@ + #ifndef h952b1c81_8931_433a_8479_7ae6d8e85a86 + #define h952b1c81_8931_433a_8479_7ae6d8e85a86 + ++#include ++#include + #include "PrinterDriver.h" + + namespace DymoPrinterDriver