aboutsummaryrefslogtreecommitdiff
path: root/graphics/p5-Sane
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-04-02 10:42:22 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-04-02 10:42:22 +0000
commit1187188af0adbc4268a2a7566b2af6bf6a1550e0 (patch)
tree3b50e10c8b313835d7206a78b2b23ece45c26862 /graphics/p5-Sane
parentb0095d0559cc18479bbff3992ff02fbf7a694295 (diff)
downloadports-1187188af0adbc4268a2a7566b2af6bf6a1550e0.tar.gz
ports-1187188af0adbc4268a2a7566b2af6bf6a1550e0.zip
- Update to 0.05
- Cleanup Makefile: remove incorrect spaces and trailing backslash - Use REINPLACE_CMD instead of a patch file Changes: http://search.cpan.org/dist/Sane/Changes Feature safe: yes
Notes
Notes: svn path=/head/; revision=294122
Diffstat (limited to 'graphics/p5-Sane')
-rw-r--r--graphics/p5-Sane/Makefile17
-rw-r--r--graphics/p5-Sane/distinfo4
-rw-r--r--graphics/p5-Sane/files/patch-Makefile.PL11
-rw-r--r--graphics/p5-Sane/pkg-plist4
4 files changed, 13 insertions, 23 deletions
diff --git a/graphics/p5-Sane/Makefile b/graphics/p5-Sane/Makefile
index 408326f5acf0..885d0d026aea 100644
--- a/graphics/p5-Sane/Makefile
+++ b/graphics/p5-Sane/Makefile
@@ -6,22 +6,23 @@
#
PORTNAME= Sane
-PORTVERSION= 0.03
-PORTREVISION= 2
+PORTVERSION= 0.05
CATEGORIES= graphics perl5
MASTER_SITES= CPAN
-MASTER_SITE_SUBDIR= CPAN:RATCLIFFE
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl extension for the SANE (Scanner Access Now Easy) Project
-BUILD_DEPENDS= ${SITE_PERL}/ExtUtils/Depends.pm:${PORTSDIR}/devel/p5-ExtUtils-Depends \
- p5-ExtUtils-PkgConfig>=1.03:${PORTSDIR}/devel/p5-ExtUtils-PkgConfig \
- sane-config:${PORTSDIR}/graphics/sane-backends
+BUILD_DEPENDS= p5-ExtUtils-Depends>=0:${PORTSDIR}/devel/p5-ExtUtils-Depends \
+ p5-ExtUtils-PkgConfig>=0:${PORTSDIR}/devel/p5-ExtUtils-PkgConfig \
+ ${LOCALBASE}/bin/sane-config:${PORTSDIR}/graphics/sane-backends
-PERL_CONFIGURE= YES
+PERL_CONFIGURE= yes
-MAN3= Sane.3 \
+MAN3= Sane.3
+
+post-patch:
+ @${REINPLACE_CMD} -e '/^my $$inc = / s|-I\.|& -I${LOCALBASE}/include|' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>
diff --git a/graphics/p5-Sane/distinfo b/graphics/p5-Sane/distinfo
index 40b1bed006d6..30e90add40ef 100644
--- a/graphics/p5-Sane/distinfo
+++ b/graphics/p5-Sane/distinfo
@@ -1,2 +1,2 @@
-SHA256 (Sane-0.03.tar.gz) = 77aa99f6d02575927e07b54ec09615e308df53422795332f8e4eeab587426a3c
-SIZE (Sane-0.03.tar.gz) = 39015
+SHA256 (Sane-0.05.tar.gz) = e0ef87fe76a3f49a9b54046771e3f79c2dfed1182d9968192459e6ebf334fd48
+SIZE (Sane-0.05.tar.gz) = 39417
diff --git a/graphics/p5-Sane/files/patch-Makefile.PL b/graphics/p5-Sane/files/patch-Makefile.PL
deleted file mode 100644
index 46c0b7f79e09..000000000000
--- a/graphics/p5-Sane/files/patch-Makefile.PL
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.PL.orig 2009-01-17 23:24:51.000000000 +0800
-+++ Makefile.PL 2009-01-17 23:25:01.000000000 +0800
-@@ -16,7 +16,7 @@
- # Can't assume ExtUtils::PkgConfig will return anything useful until
- # the pkg-config files ship with sane.
- my $lib = '-lsane';
--my $inc = '-I. ';
-+my $inc = '-I. -I${LOCALBASE}/include';
- if (eval {
- %pkgcfg = ExtUtils::PkgConfig->find ('sane-backends >= '. $build_reqs{libsane})
- }) {
diff --git a/graphics/p5-Sane/pkg-plist b/graphics/p5-Sane/pkg-plist
index e4a46715a33d..968c1fb002ad 100644
--- a/graphics/p5-Sane/pkg-plist
+++ b/graphics/p5-Sane/pkg-plist
@@ -1,5 +1,5 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/Sane.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sane/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sane/Sane.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sane/Sane.so
-%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sane/.packlist
-%%SITE_PERL%%/%%PERL_ARCH%%/Sane.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sane