[137863] branches/gsoc15-portfile/README.md
chunyang at macports.org
chunyang at macports.org
Mon Jun 22 01:33:26 PDT 2015
Revision: 137863
https://trac.macports.org/changeset/137863
Author: chunyang at macports.org
Date: 2015-06-22 01:33:26 -0700 (Mon, 22 Jun 2015)
Log Message:
-----------
port-create: Add usage section to README.md
Modified Paths:
--------------
branches/gsoc15-portfile/README.md
Modified: branches/gsoc15-portfile/README.md
===================================================================
--- branches/gsoc15-portfile/README.md 2015-06-22 08:17:32 UTC (rev 137862)
+++ branches/gsoc15-portfile/README.md 2015-06-22 08:33:26 UTC (rev 137863)
@@ -1,8 +1,26 @@
# port-create
## Usage
-TODO
+Create blank Portfile template:
+
+ $ ./port-create
+
+Create Portfile template using tarball URL, port name and port version:
+
+ $ ./port-create -name foo -version 1.0
+ $ ./port-create -url https://www.kernel.org/pub/software/scm/git/git-2.4.2.tar.gz
+ $ ./port-create -url https://www.kernel.org/pub/software/scm/git/git-2.4.2.tar.gz -name foo -version 1.0
+
+Create Portfile template using PortGroup:
+
+ # Github tarball URL
+ $ ./port-create -group github https://github.com/tmux/tmux/releases/download/2.0/tmux-2.0.tar.gz
+ # Bitbucket project URL
+ $ ./port-create -group bitbucket https://bitbucket.org/sshguard/sshguard
+ # Python program name and version
+ $ ./port-create -group python foo 1.0
+
## TODO
- Make port-create becomes the entry point
- Consider merging `port-create`, `portfile-gen`, `github2port` and `bitbucket2port`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150622/201e345b/attachment.html>
More information about the macports-changes
mailing list