blob: e045c8f1f2269ce7e55398400cff706b27445494 (
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
57
58
59
60
61
62
|
# New ports collection makefile for: autojump
# Date created: 12 October 2011
# Whom: Neeraj Verma <neeraj.verma.ports@vermatech.com>
#
# $FreeBSD$
#
PORTNAME= autojump
PORTVERSION= 13
CATEGORIES= sysutils
MASTER_SITES= http://cloud.github.com/downloads/joelthelion/autojump/ \
http://www.vermatech.com/distfiles/
DISTNAME= autojump_v${PORTVERSION}
EXTRACT_SUFX= .tar.gz
MAINTAINER= neeraj.verma.ports@vermatech.com
COMMENT= Autojump is a tool that acts as a complement to cd
RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
USE_PYTHON_RUN= YES
NO_BUILD= YES
SUB_FILES+= pkg-install
PLIST_FILES= bin/autojump \
bin/jumpapplet \
share/autojump/autojump.bash \
share/autojump/autojump.zsh \
share/autojump/icon.png
MAN1= autojump.1
OPTIONS_DEFINE= ZSH
OPTIONS_DEFAULT= ZSH
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MZSH}
RUN_DEPENDS+= ${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
PLIST_FILES+= share/zsh/site-functions/_j
.endif
PLIST_DIRS= share/autojump
post-patch:
@${REINPLACE_CMD} 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/autojump
@${REINPLACE_CMD} -e 's|/usr$$|${PREFIX}|' -e 's|/usr/local|${PREFIX}|' -e 's|/bin/bash|${PREFIX}/bin/bash|' ${WRKSRC}/install.sh
@${REINPLACE_CMD} -e 's|/usr$$|${PREFIX}|' -e 's|/usr/local|${PREFIX}|' -e 's|/bin/zsh|${PREFIX}/bin/zsh|' ${WRKSRC}/install.zsh
do-install:
.if ${PORT_OPTIONS:MZSH}
@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.zsh )
.else
@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.sh )
.endif
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|