openbsd-ports/infrastructure/mk/cpan.port.mk

24 lines
622 B
Makefile
Raw Normal View History

# $OpenBSD: cpan.port.mk,v 1.4 2006/11/25 13:14:40 espie Exp $
PKGNAME?= p5-${DISTNAME}
.if !defined(CPAN_AUTHOR)
2006-11-12 05:45:40 -05:00
MASTER_SITES?= ${MASTER_SITE_PERL_CPAN:=${DISTNAME:C/-.*$//}/}
.else
MASTER_SITES?= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/${CPAN_AUTHOR:C/^(.).*/\1/}/${CPAN_AUTHOR:C/^(..).*/\1/}/${CPAN_AUTHOR}/}
.endif
CATEGORIES+= perl5
CONFIGURE_STYLE+=perl
MODULES+= perl
2006-11-12 05:45:40 -05:00
REGRESS_DEPENDS+=${RUN_DEPENDS}
2006-11-12 05:48:17 -05:00
.if !defined(SHARED_ONLY) || ${SHARED_ONLY:L} != "yes"
PKG_ARCH?= *
.endif
2006-11-12 05:45:40 -05:00
2006-11-12 05:48:17 -05:00
.if defined(MAKE_ENV) && !empty(MAKE_ENV:MTEST_POD=*)
2006-11-12 05:45:40 -05:00
REGRESS_DEPENDS+=::devel/p5-Test-Pod \
::devel/p5-Test-Pod-Coverage
.endif