1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/lang/pugs/Makefile
Cheng-Lung Sung a3345b4e25 - Respect DESTDIR
PR:		ports/101888
Submitted by:	Gea-Suan Lin <gslin_AT_gslin dot org>
2006-08-14 05:01:32 +00:00

54 lines
1.3 KiB
Makefile

# New ports collection makefile for: lang/pugs
# Date created: Mon Mar 14 16:01:08 CST 2005
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= pugs
PORTVERSION= 6.2.12
CATEGORIES= lang devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Perl6
DISTNAME= Perl6-Pugs-${PORTVERSION}
MAINTAINER= clsung@FreeBSD.org
COMMENT= A Perl6 Implementation
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
${SITE_PERL}/${PERL_ARCH}/Term/ReadLine/Gnu.pm:${PORTSDIR}/devel/p5-ReadLine-Gnu
BUILD_DEPENDS= ${RUN_DEPENDS}
BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
PERL_CONFIGURE= yes
SITE_PERL6_REL= lib/perl6
MAN3= Perl6::Pugs.3 \
Inline::Pugs.3 \
Pugs::Doc::Run.3 Pugs::Doc::Hack.3
.include <bsd.port.pre.mk>
post-configure:
@${REINPLACE_CMD} -e '/^INSTALLPRIVLIB/s,${PREFIX}/lib,${TARGETDIR}/lib/perl6,;' \
-e '/^INSTALLARCHLIB/s,${PREFIX}/lib,${TARGETDIR}/lib/perl6/mach,' \
${WRKSRC}/Makefile
.if !defined(NOPORTDOCS)
EXDIR= ${WRKSRC}/examples
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${CP} -R ${EXDIR}/ ${EXAMPLESDIR}
@${FIND} -s ${EXAMPLESDIR} -type f | \
${SED} -e 's|^${TARGETDIR}/||' >> ${TMPPLIST}
@${FIND} -d ${EXAMPLESDIR} -type d | \
${SED} -e 's|^${TARGETDIR}/|@dirrm |' >> ${TMPPLIST}
.endif
.if ${PERL_LEVEL} < 500601
IGNORE= requires perl 5.6.x or later
.endif
.include <bsd.port.post.mk>