aboutsummaryrefslogtreecommitdiffstats
path: root/devel/perlconsole/Makefile
blob: 8427c670e082c43caf39853d111940d13ca2f386 (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
45
46
47
48
49
50
51
52
53
# Created by: Philippe Audeoud <jadawin@tuxaco.net>
# $FreeBSD$

PORTNAME=   perlconsole
PORTVERSION=    0.4
PORTREVISION=   2
CATEGORIES= devel
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:SUKRIA

MAINTAINER= jadawin@FreeBSD.org
COMMENT=    Light program that lets you evaluate Perl code interactively

RUN_DEPENDS=    p5-ReadLine-Gnu>=0:${PORTSDIR}/devel/p5-ReadLine-Gnu \
        p5-Module-Refresh>=0:${PORTSDIR}/devel/p5-Module-Refresh \
        p5-Lexical-Persistence>=0:${PORTSDIR}/devel/p5-Lexical-Persistence \
        p5-B-Keywords>=0:${PORTSDIR}/devel/p5-B-Keywords

USES=       perl5 shebangfix
USE_PERL5=  configure
SHEBANG_FILES=  perlconsole

PORTDOCS=   README \
        AUTHORS \
        CHANGES

PLIST_FILES=    bin/perlconsole \
        ${SITE_PERL_REL}/PerlConsole/Commands.pm \
        ${SITE_PERL_REL}/PerlConsole/Console.pm \
        ${SITE_PERL_REL}/PerlConsole/Preferences.pm \
        ${SITE_PERL_REL}/PerlConsole.pm

PLIST_DIRS= ${SITE_PERL_REL}/PerlConsole

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

do-install:
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README AUTHORS CHANGES
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
    ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/PerlConsole/
    ${CP} -R ${WRKSRC}/lib/PerlConsole/ \
        ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/PerlConsole/
    ${CP} ${WRKSRC}/lib/PerlConsole.pm \
        ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/PerlConsole.pm
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>