aboutsummaryrefslogtreecommitdiffstats
path: root/shells/psh/Makefile
blob: a63de2eb55450e83078d4b8649681ec498e9472e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:    perlsh
# Date created:     11 Dec 1999
# Whom:         Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#

PORTNAME=   perlsh
PORTVERSION=    1.8
CATEGORIES= shells perl5
MASTER_SITES=   http://www.gregorpurdy.com/gregor/psh/
DISTNAME=   psh-${PORTVERSION}

MAINTAINER= freebsd@galle.com.br
COMMENT=    New shell made entirely out of a Perl script

PERL_CONFIGURE= yes

MAN1=   psh.1 pshcomplete.1 pshconfig.1 pshdevel.1

MAN3=   Psh::Completion.3 \
    Psh::Joblist.3 \
    Psh::Locale.3 \
    Psh::Locale::Default.3 \
    Psh::OS.3 \
    Psh::OS::Win.3 \
    Psh::Parser.3 \
    Psh::PerlEval.3 \
    Psh::Strategy.3 \
    Psh::StrategyBunch.3

pre-install:
    @${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile;
    @${PERL} -pi -e "s:/usr/local/man/man1:${MAN3PREFIX}/man/man1:g" ${WRKSRC}/Makefile;
    @${PERL} -pi -e "s:/usr/local/lib/perl5/5.00503/man/man3:${MAN3PREFIX}/man/man3:g" ${WRKSRC}/Makefile;

post-install:
    @${ECHO_MSG} "Updating /etc/shells"
    @${CP} /etc/shells /etc/shells.bak
    @(${GREP} -v ${PREFIX}/bin/psh /etc/shells.bak; \
    ${ECHO_CMD} ${PREFIX}/bin/psh) > /etc/shells
    @${RM} /etc/shells.bak

.include <bsd.port.mk>