Skip to content

Commit

Permalink
new port py-virtualfish: virtualenv wrapper for fish shell
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@149543 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
anddam committed Jun 25, 2016
1 parent 93e23e0 commit 441c76e
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions python/py-virtualfish/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0

set real_name virtualfish
github.setup adambrenecki $real_name 1.0.1
name py-$real_name
platforms darwin
supported_archs noarch
license MIT
maintainers nomaintainer

description A Fish wrapper for Ian Bicking\'s virtualenv
long_description {A Fish Shell wrapper for Ian Bicking's virtualenv, somewhat \
loosely based on Doug Hellman's virtualenvwrapper for \
Bourne-compatible shells.}

github.tarball_from releases
master_sites https://github.com/adambrenecki/virtualfish/archive
distname ${version}
worksrcdir ${real_name}-${distname}

checksums rmd160 21ab9dad82810327eb058e6e1e35e307ba9e925a \
sha256 2584c5444e7b9f3ef0bb86d9a1b7f3bbfbd6d36ad1ec3705c8ccd46f1d5315c0

# Possibly other versions, need testers
#python.versions 27 34 35
python.versions 27

if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-virtualenv \
port:fish
}

# Need livecheck, not sure how to fit this with github portgroup

notes "
Be sure to check virtualfish install notes:
http://virtualfish.readthedocs.io/en/latest/install.html
At this point you basically need to:
- edit ~/.config/fish/config.fish, adding a line that reads
eval (python -m virtualfish)
- add virtualfish to your prompt, see virtualfish install notes
- start using virtualfish: vf new myvirtualenv; which python
"

0 comments on commit 441c76e

Please sign in to comment.