- Remove broken

- Fix build

PR:		ports/204052
Submitted by:	Mathieu Simon <freebsd@simweb.ch>
This commit is contained in:
Veniamin Gvozdikov 2015-11-07 11:18:11 +00:00
parent 976413b988
commit 52472fb5ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=400978
2 changed files with 18 additions and 2 deletions

View file

@ -11,8 +11,6 @@ PKGNAMEPREFIX= p5-
MAINTAINER= vg@FreeBSD.org
COMMENT= Interface to the CUPS API
BROKEN= Fails to configure or build
BUILD_DEPENDS= cups-config:${PORTSDIR}/print/cups-client
LIB_DEPENDS= libcupsimage.so:${PORTSDIR}/print/cups-image \
libcupsfilters.so:${PORTSDIR}/print/cups-filters

View file

@ -0,0 +1,18 @@
Fixes issue with the version check as mentioned upstream:
https://rt.cpan.org/Public/Bug/Display.html?id=104237
--- Makefile.PL.orig 2015-10-27 12:05:43 UTC
+++ Makefile.PL
@@ -31,8 +31,10 @@ else
my @version_parts = split( /\./, $version );
-if( ( $version_parts[1] < 2 ) ||
- ( ( $version_parts[1] == 2 ) && ( $version_parts[2] < 2 ) ) )
+if(
+ ( $version_parts[0] < 1 ) ||
+ ( ( $version_parts[0] == 1 ) && ( $version_parts[1] < 2 ) ) ||
+ ( ( $version_parts[0] == 1 ) && ( $version_parts[1] == 2 ) && ( $version_parts[2] < 2 ) ) )
{
print "The version of the Common Unix Printing System installed\n";
print "on your system is too old for this module to work properly.\n";