freebsd-ports/sysutils/autojump/Makefile
Alexey Dokuchaev 6adc132072 - Sanitize and cleanup the port a bit: remove "Portname is ..." from COMMENT,
drop useless EXTRACT_SUFX, define LICENSE (GPLv3), sort the knobs, etc.
- Do not patch ./install.zsh file; it is nearly identical to ./install.sh
  except for the _f file, which can be installed separately (do so)
- Stagify, use OPTIONS helpers, trim superfluous whitespace here and there
2014-03-15 08:01:49 +00:00

51 lines
1.2 KiB
Makefile

# Created by: 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}
MAINTAINER= neeraj.verma.ports@vermatech.com
COMMENT= Tool that acts as a complement to cd
LICENSE= GPLv3
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
NO_BUILD= yes
USE_PYTHON_RUN= yes
SUB_FILES= pkg-install
PLIST_FILES= bin/autojump \
bin/jumpapplet \
man/man1/autojump.1.gz \
share/autojump/autojump.bash \
share/autojump/autojump.zsh \
share/autojump/icon.png
PLIST_DIRS= share/autojump
OPTIONS_DEFINE= ZSH
OPTIONS_DEFAULT= ZSH
ZSH_RUN_DEPENDS= zsh:${PORTSDIR}/shells/zsh
ZSH_PLIST_FILES= share/zsh/site-functions/_j
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/#!\/usr\/bin/s|python|env &|' \
${WRKSRC}/autojump
do-install:
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${SH} ./install.sh \
--prefix ${STAGEDIR}${PREFIX})
.if ${PORT_OPTIONS:MZSH}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/_j \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
.endif
.include <bsd.port.mk>