Index: sysutils/autojump/Makefile =================================================================== --- sysutils/autojump/Makefile +++ sysutils/autojump/Makefile @@ -2,37 +2,28 @@ # $FreeBSD$ PORTNAME= autojump -PORTVERSION= 13 -PORTREVISION= 1 -CATEGORIES= sysutils -MASTER_SITES= http://www.vermatech.com/distfiles/ -DISTNAME= autojump_v${PORTVERSION} +DISTVERSIONPREFIX= release-v +DISTVERSION= 22.5.1 +CATEGORIES= sysutils python -MAINTAINER= neeraj.verma.ports@vermatech.com +MAINTAINER= ports@FreeBSD.org COMMENT= Tool that acts as a complement to cd LICENSE= GPLv3+ -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= bash:shells/bash +USES= python:run -USES= python:run shebangfix -NO_BUILD= yes -SHEBANG_FILES= autojump jumpapplet -SUB_FILES= pkg-install -NO_ARCH= yes +USE_GITHUB= yes +GH_ACCOUNT= wting -PLIST_FILES= bin/autojump \ - bin/jumpapplet \ - man/man1/autojump.1.gz \ - share/autojump/autojump.bash \ - share/autojump/autojump.zsh \ - share/autojump/icon.png \ - share/zsh/site-functions/_j +USE_PYTHON= allflavors concurrent +NO_ARCH= yes +NO_BUILD= yes + do-install: - @(cd ${INSTALL_WRKSRC} && ${SETENV} ${SH} ./install.sh \ - --prefix ${STAGEDIR}${PREFIX}) + ${PYTHON_CMD} ${WRKSRC}/install.py @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions ${INSTALL_DATA} ${WRKSRC}/_j \ ${STAGEDIR}${PREFIX}/share/zsh/site-functions Index: sysutils/autojump/distinfo =================================================================== --- sysutils/autojump/distinfo +++ sysutils/autojump/distinfo @@ -1,2 +1,3 @@ -SHA256 (autojump_v13.tar.gz) = 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153 -SIZE (autojump_v13.tar.gz) = 22723 +TIMESTAMP = 1552691220 +SHA256 (wting-autojump-release-v22.5.1_GH0.tar.gz) = 765fabda130eb4df70d1c1e5bc172e1d18f8ec22c6b89ff98f1674335292e99f +SIZE (wting-autojump-release-v22.5.1_GH0.tar.gz) = 54721 Index: sysutils/autojump/files/patch-install.sh =================================================================== --- sysutils/autojump/files/patch-install.sh +++ sysutils/autojump/files/patch-install.sh @@ -1,77 +0,0 @@ ---- ./install.sh.orig 2010-10-01 10:49:18.000000000 -0400 -+++ ./install.sh 2011-12-03 23:04:22.000000000 -0500 -@@ -15,7 +15,7 @@ - #You should have received a copy of the GNU General Public License - #along with autojump. If not, see . - --function show_help { -+show_help() { - echo "sudo ./install.sh [--prefix /usr/local]" - } - -@@ -41,56 +41,12 @@ done - echo "Installing to ${prefix} ..." - - # INSTALL AUTOJUMP --sudo mkdir -p ${prefix}/share/autojump/ --sudo mkdir -p ${prefix}/bin/ --sudo mkdir -p ${prefix}/share/man/man1/ --sudo cp icon.png ${prefix}/share/autojump/ --sudo cp jumpapplet ${prefix}/bin/ --sudo cp autojump ${prefix}/bin/ --sudo cp autojump.1 ${prefix}/share/man/man1/ -- --if [ -d "/etc/profile.d" ]; then -- sudo cp autojump.bash /etc/profile.d/ -- sudo cp autojump.sh /etc/profile.d/ -- -- # Make sure that the code we just copied has been sourced. -- # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash -- if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump\.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then -- echo "Your .bashrc doesn't seem to source /etc/profile or /etc/profile.d/autojump.bash" -- echo "Adding the /etc/profile.d/autojump.bash to your .bashrc" -- echo "" >> ~/.bashrc -- echo "# Added by autojump install.sh" >> ~/.bashrc -- echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc -- fi -- echo "Done!" -- echo -- echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump." --else -- echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]" -- read ans -- if [ ${#ans} -gt 0 ]; then -- if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then -- -- # Answered yes. Go ahead and add the autojump code -- echo "" >> ~/.bashrc -- echo "#autojump" >> ~/.bashrc -- cat autojump.bash | grep -v "^#" >> ~/.bashrc -- -- # Since OSX uses .bash_profile, we need to make sure that .bashrc is properly sourced. -- # Makes the assumption that if they have a line: source ~/.bashrc or . ~/.bashrc, that -- # .bashrc has been properly sourced and you don't need to add it. -- OS=`uname` -- if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*source\|\. ~/\.bashrc[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then -- echo "You are using OSX and your .bash_profile doesn't seem to be sourcing .bashrc" -- echo "Adding source ~/.bashrc to your bashrc" -- echo -e "\n# Get the aliases and functions" >> ~/.bash_profile -- echo -e "if [ -f ~/.bashrc ]; then\n . ~/.bashrc\nfi" >> ~/.bash_profile -- fi -- echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump." -- else -- echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!" -- fi -- else -- echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!" -- fi --fi -+mkdir -p ${prefix}/share/autojump/ -+mkdir -p ${prefix}/bin/ -+mkdir -p ${prefix}/man/man1/ -+cp icon.png ${prefix}/share/autojump/ -+cp autojump.bash ${prefix}/share/autojump/ -+cp autojump.zsh ${prefix}/share/autojump/ -+cp jumpapplet ${prefix}/bin/ -+cp autojump ${prefix}/bin/ -+cp autojump.1 ${prefix}/man/man1/ Index: sysutils/autojump/files/pkg-install.in =================================================================== --- sysutils/autojump/files/pkg-install.in +++ sysutils/autojump/files/pkg-install.in @@ -1,14 +0,0 @@ -#!/bin/sh - -case $2 in -POST-INSTALL) - if [ -e /etc/profile ]; then \ - cp %%PREFIX%%/share/autojump/autojump.bash /etc/profile.autojump - echo ". /etc/profile.autojump" >> /etc/profile - fi - if [ -e /etc/zshrc ]; then \ - cp %%PREFIX%%/share/autojump/autojump.zsh /etc/zshrc.autojump - echo ". /etc/zshrc.autojump" >> /etc/zshrc - fi - ;; -esac Index: sysutils/autojump/pkg-deinstall =================================================================== --- sysutils/autojump/pkg-deinstall +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -case $2 in -POST-DEINSTALL) - rm -f /etc/profile.autojump - rm -f /etc/zshrc.autojump - # delete the source (.) line from the /etc/profile and /etc/zshrc - if [ -f /etc/profile ] ; then - sed -i '' -e '/profile.autojump/d' /etc/profile - fi - if [ -f /etc/zshrc ] ; then - sed -i '' -e '/zshrc.autojump/d' /etc/zshrc - fi - ;; -esac