From 3c6680c24e30c75c9dc4d8be73930e2632d4c548 Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 3 Oct 2011 14:21:02 +0000 Subject: [PATCH] Remove some duplicate code by putting in a variable, as done elsewhere. --- infrastructure/mk/cpan.port.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/infrastructure/mk/cpan.port.mk b/infrastructure/mk/cpan.port.mk index 14b495f5531..75f47110010 100644 --- a/infrastructure/mk/cpan.port.mk +++ b/infrastructure/mk/cpan.port.mk @@ -1,4 +1,4 @@ -# $OpenBSD: cpan.port.mk,v 1.13 2010/12/03 11:43:05 ajacoutot Exp $ +# $OpenBSD: cpan.port.mk,v 1.14 2011/10/03 14:21:02 jasper Exp $ PKGNAME ?= p5-${DISTNAME} .if !defined(CPAN_AUTHOR) @@ -33,9 +33,7 @@ MODCPAN_EXAMPLES_DIR ?= ${PREFIX}/share/examples/p5-${DISTNAME:C/-([0-9]+\.[0-9] MODCPAN_EXAMPLES_DIST ?= examples . if !target(post-install) post-install: - ${INSTALL_DATA_DIR} ${MODCPAN_EXAMPLES_DIR} - cd ${WRKSRC}/${MODCPAN_EXAMPLES_DIST}/ && pax -rw . ${MODCPAN_EXAMPLES_DIR} - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${MODCPAN_EXAMPLES_DIR} + ${MODCPAN_POST_INSTALL} . endif .endif