# Created by: Charlie Kester # $FreeBSD$ PORTNAME= moreutils PORTVERSION= 0.49 CATEGORIES= sysutils MASTER_SITES= DEBIAN_POOL DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Additional Unix utilities LICENSE= GPLv2 RUN_DEPENDS= p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT=MANPAGES ALL_TARGET= bins USE_PERL5= yes WRKSRC= ${WRKDIR}/${PORTNAME} MANCOMPRESSED= no PLIST_FILES= bin/chronic \ bin/combine \ bin/errno \ bin/ifne \ bin/isutf8 \ bin/lckdo \ bin/mispipe \ bin/pee \ bin/sponge \ bin/ts \ bin/vidir \ bin/vipe \ bin/zrun .include .if ${PORT_OPTIONS:MMANPAGES} ALL_TARGET+= mans CANNED_MAN1= errno.1 \ ifne.1 \ isutf8.1 \ lckdo.1 \ mispipe.1 \ pee.1 \ sponge.1 MAN1= chronic.1 \ combine.1 \ ts.1 \ vidir.1 \ vipe.1 \ zrun.1 \ ${CANNED_MAN1} .endif post-patch: @${REINPLACE_CMD} -e 's|share/xml/docbook/schema/dtd/|local/share/xml/docbook/|' ${WRKSRC}/*.docbook .if ${PORT_OPTIONS:MMANPAGES} @cd ${FILESDIR}/ && ${CP} ${CANNED_MAN1} ${WRKSRC}/ .endif post-install: .if ${PORT_OPTIONS:MMANPAGES} cd ${WRKSRC}/ && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1/ .endif .include