ports/100504: [PATCH] databases/p5-Class-DBI: Reduce dependencies
Gea-Suan Lin
gslin at gslin.org
Wed Jul 19 02:30:23 UTC 2006
>Number: 100504
>Category: ports
>Synopsis: [PATCH] databases/p5-Class-DBI: Reduce dependencies
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 19 02:30:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Gea-Suan Lin
>Release: FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
- Reduce dependencies, and BUILD_DEPENDS can be ignored.
- Use DISTVERSIONPREFIX not change DISTNAME.
- fix portlint -a warning about IGNORE.
Port maintainer (skv at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- p5-Class-DBI-3.0.14_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/databases/p5-Class-DBI/Makefile /home/staff/gslin/work/p5-Class-DBI/Makefile
--- /usr/ports/databases/p5-Class-DBI/Makefile Wed Jan 18 21:04:11 2006
+++ /home/staff/gslin/work/p5-Class-DBI/Makefile Wed Jul 19 10:19:30 2006
@@ -7,26 +7,23 @@
PORTNAME= Class-DBI
PORTVERSION= 3.0.14
+DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX= p5-
-DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= skv at FreeBSD.org
COMMENT= Simple Database Abstraction
-BUILD_DEPENDS= ${SITE_PERL}/Class/Accessor.pm:${PORTSDIR}/devel/p5-Class-Accessor \
- ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Clone.pm:${PORTSDIR}/devel/p5-Clone \
+ ${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version \
+ ${SITE_PERL}/Class/Accessor.pm:${PORTSDIR}/devel/p5-Class-Accessor \
${SITE_PERL}/Class/Data/Inheritable.pm:${PORTSDIR}/devel/p5-Class-Data-Inheritable \
+ ${SITE_PERL}/Class/Trigger.pm:${PORTSDIR}/devel/p5-Class-Trigger \
${SITE_PERL}/Ima/DBI.pm:${PORTSDIR}/databases/p5-Ima-DBI \
- ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
- ${SITE_PERL}/UNIVERSAL/moniker.pm:${PORTSDIR}/devel/p5-UNIVERSAL-moniker \
- ${SITE_PERL}/${PERL_ARCH}/List/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
- ${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version \
- ${SITE_PERL}/${PERL_ARCH}/Clone.pm:${PORTSDIR}/devel/p5-Clone \
- ${SITE_PERL}/Class/Trigger.pm:${PORTSDIR}/devel/p5-Class-Trigger
-RUN_DEPENDS= ${BUILD_DEPENDS}
+ ${SITE_PERL}/UNIVERSAL/moniker.pm:${PORTSDIR}/devel/p5-UNIVERSAL-moniker
PERL_CONFIGURE= yes
@@ -45,7 +42,19 @@
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
-IGNORE= Perl 5.6 or newer required. Install lang/perl5.8 or lang/perl5 and try again.
+IGNORE= require 5.6.0 or newer version. Install lang/perl5.8 and try again
+.endif
+
+.if ${PERL_LEVEL} < 500601
+RUN_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
+.endif
+
+.if ${PERL_LEVEL} < 500700
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
+.endif
+
+.if ${PERL_LEVEL} < 500702
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/List/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils
.endif
.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/databases/p5-Class-DBI/pkg-plist /home/staff/gslin/work/p5-Class-DBI/pkg-plist
--- /usr/ports/databases/p5-Class-DBI/pkg-plist Sun Jan 22 09:28:57 2006
+++ /home/staff/gslin/work/p5-Class-DBI/pkg-plist Wed Jul 19 10:14:59 2006
@@ -1,3 +1,4 @@
+ at comment $FreeBSD$
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/.packlist
%%SITE_PERL%%/Class/DBI.pm
%%SITE_PERL%%/Class/DBI/Attribute.pm
--- p5-Class-DBI-3.0.14_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list