Skip to content

Commit

Permalink
print/dymo-cups-drivers: the port had been improved (+)
Browse files Browse the repository at this point in the history
- Replace `std::auto_ptr' with `std::unique_ptr' rather
  than limiting Clang/LLVM version to 15
- Chase HTTP/1.1 301 redirection in the MASTER_SITES and
  finish WWW line update from the previous commit

Fixes:	08760e5, 9d66bcf
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jan 5, 2024
1 parent 5e43376 commit 6bc8fc4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
13 changes: 3 additions & 10 deletions print/dymo-cups-drivers/Makefile
Expand Up @@ -2,27 +2,20 @@ PORTNAME= dymo-cups-drivers
PORTVERSION= 1.4.0
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= http://download.dymo.com/Software/Linux/
MASTER_SITES= https://download.dymo.com/Software/Linux/

MAINTAINER= ports@FreeBSD.org
COMMENT= Open source DYMO CUPS driver
WWW= https://www.dymo.com
WWW= https://www.dymo.com/

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libcupsimage.so:print/cups

USES= localbase:ldflags

USES= localbase:ldflags
GNU_CONFIGURE= yes

WRKSRC= ${WRKDIR}/dymo-cups-drivers-1.4.0.5

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
USES+= llvm:max=15
.endif

.include <bsd.port.mk>
9 changes: 9 additions & 0 deletions print/dymo-cups-drivers/files/patch-src-common-CupsFilter.h
Expand Up @@ -8,3 +8,12 @@
#include <cups/raster.h>
#include <memory>
#include <string>
@@ -132,7 +133,7 @@ CCupsFilter<D, DI, LM>::Run(int argc, char* argv[])
bool UseCustomHalftoning = PageHeader.cupsBitsPerPixel > 1;
bool IsProcessLineSupported = true;

- std::auto_ptr<CHalftoneFilter> H;
+ std::unique_ptr<CHalftoneFilter> H;
if (UseCustomHalftoning)
{
if (HalftoningMethod_ == "NLL")

0 comments on commit 6bc8fc4

Please sign in to comment.