graphics/p5-Barcode-ZBar: support new version of graphics/zbar
graphics/zbar was updated in PR 253743 PR: 253931 Submitted by: vvd@unislabs.com Approved by: kuriyama@FreeBSD.org (maintainer, timeout > 1 week)
This commit is contained in:
parent
a85fc45cea
commit
785cfebc13
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567834
1 changed files with 15 additions and 0 deletions
15
graphics/p5-Barcode-ZBar/files/patch-ZBar.xs
Normal file
15
graphics/p5-Barcode-ZBar/files/patch-ZBar.xs
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- ZBar.xs.orig
|
||||
+++ ZBar.xs
|
||||
@@ -198,9 +198,10 @@
|
||||
PREINIT:
|
||||
unsigned major;
|
||||
unsigned minor;
|
||||
+ unsigned patch;
|
||||
CODE:
|
||||
- zbar_version(&major, &minor);
|
||||
- RETVAL = newSVpvf("%u.%u", major, minor);
|
||||
+ zbar_version(&major, &minor, &patch);
|
||||
+ RETVAL = newSVpvf("%u.%u.%u", major, minor, patch);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
Loading…
Reference in a new issue