pkgsrc/geography/p5-Geo-ShapeFile/patches/patch-t_main__tests.t
wen ca66e9da1b Update to 2.61
Update DEPENDS

Upstream changes:
2.61 2016-01-31
    - Specify minimum Math::Trig version to avoid some cpantesters
      fails on pre5.8.9 perls on Cygwin.
2016-07-25 09:18:55 +00:00

17 lines
544 B
Perl

$NetBSD: patch-t_main__tests.t,v 1.1 2016/07/25 09:18:55 wen Exp $
Add patch to be able to run tests without the need to install rlib,
which is not in ports and which can easily be replaced by the FindBin
The patch come from FreeBSD ports.
--- t/main_tests.t.orig 2016-07-25 08:39:51.000000000 +0000
+++ t/main_tests.t
@@ -3,7 +3,9 @@
use Test::More;
use strict;
use warnings;
-use rlib '../lib', './lib';
+use FindBin;
+use lib "$FindBin::Bin/lib";
+use lib "$FindBin::Bin/../lib";
use Geo::ShapeFile;
use Geo::ShapeFile::Shape;