forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new port py-virtualfish: virtualenv wrapper for fish shell
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@149543 d073be05-634f-4543-b044-5fe20cf6d1d6
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
" |