blob: 590c44e789d6df25dc052a68807529f77c0a0876 (
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
54
55
56
|
PORTNAME= namefix
PORTVERSION= 4.0.2
PORTREVISION= 2
CATEGORIES= sysutils perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}.pl/${PORTVERSION}
DISTNAME= ${PORTNAME}.pl_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Batch file renamer
LICENSE= GPLv2
RUN_DEPENDS= p5-MP3-Tag>=0:audio/p5-MP3-Tag \
p5-Tk>=0:x11-toolkits/p5-Tk \
p5-Tk-JComboBox>=0:x11-toolkits/p5-Tk-JComboBox \
p5-Tk-DynaTabFrame>=0:x11-toolkits/p5-Tk-DynaTabFrame
WRKSRC= ${WRKDIR}/${PORTNAME}.pl
NO_BUILD= yes
NO_ARCH= yes
USES= 7z perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= namefix-cli.pl namefix.pl
do-configure:
.for bin in ${PORTNAME} ${PORTNAME}-cli
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${bin}.in
@${ECHO_CMD} >> ${WRKDIR}/${bin}.in
@${ECHO_CMD} 'namefix_dir=${PREFIX}/${SITE_PERL_REL}/${PORTNAME}' \
>> ${WRKDIR}/${bin}.in
@${ECHO_CMD} 'cd $${namefix_dir} && exec ./${bin}.pl "$$@"' \
>> ${WRKDIR}/${bin}.in
.endfor
do-install:
.for bin in ${PORTNAME} ${PORTNAME}-cli
${INSTALL_SCRIPT} ${WRKDIR}/${bin}.in ${STAGEDIR}${PREFIX}/bin/${bin}
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}
.for data in ${PORTNAME} ${PORTNAME}-cli
${INSTALL_SCRIPT} ${WRKSRC}/${data}.pl \
${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}
.endfor
${INSTALL_DATA} ${WRKSRC}/mem.jpg \
${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}
.for dir in libs libs/cli libs/gui
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/*.pm \
${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${dir}
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/txt
${INSTALL_DATA} ${WRKSRC}/txt/*.txt \
${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/txt
.include <bsd.port.mk>
|