diff options
author | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2012-04-30 03:28:38 +0000 |
---|---|---|
committer | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2012-04-30 03:28:38 +0000 |
commit | 215717c41e7fc3b7d253cf3199829b6eb1b088ce (patch) | |
tree | cb5253df255632f86c1ef7a9b284d1491eb12964 /sysutils/autojump/Makefile | |
parent | 51281a245013598b677cb850f2c4eaa59fb5edf1 (diff) |
Notes
Diffstat (limited to 'sysutils/autojump/Makefile')
-rw-r--r-- | sysutils/autojump/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sysutils/autojump/Makefile b/sysutils/autojump/Makefile new file mode 100644 index 000000000000..6989ccb7e51a --- /dev/null +++ b/sysutils/autojump/Makefile @@ -0,0 +1,61 @@ +# 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= ZSH "Install zsh version as well." On + +.include <bsd.port.options.mk> + +.if defined(WITH_ZSH) +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 defined(WITH_ZSH) + @(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> |