[137078] branches/gsoc15-portfile
chunyang at macports.org
chunyang at macports.org
Thu Jun 4 01:57:55 PDT 2015
Revision: 137078
https://trac.macports.org/changeset/137078
Author: chunyang at macports.org
Date: 2015-06-04 01:57:55 -0700 (Thu, 04 Jun 2015)
Log Message:
-----------
port-create: Print basic Portfile template to stdout
Added Paths:
-----------
branches/gsoc15-portfile/Portfile.template
branches/gsoc15-portfile/port-create.tcl
Added: branches/gsoc15-portfile/Portfile.template
===================================================================
--- branches/gsoc15-portfile/Portfile.template (rev 0)
+++ branches/gsoc15-portfile/Portfile.template 2015-06-04 08:57:55 UTC (rev 137078)
@@ -0,0 +1,16 @@
+# -*- 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
+
+name __PortName__
+version __PortVersion__
+maintainers __MaintainerHandle__
+
+categories __Categories__
+description __Description__
+long_description __LongDescription__
+
+platforms __Platforms__
+
+homepage __Homepage__
Added: branches/gsoc15-portfile/port-create.tcl
===================================================================
--- branches/gsoc15-portfile/port-create.tcl (rev 0)
+++ branches/gsoc15-portfile/port-create.tcl 2015-06-04 08:57:55 UTC (rev 137078)
@@ -0,0 +1,15 @@
+# -*- 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$
+
+# Create Portfile
+#
+# Workflow:
+# 1. Gather metadata
+# 2. Feed template
+# 3. Print result
+
+set fp [open "Portfile.template" r]
+set template [read $fp]
+close $fp
+
+puts $template
Property changes on: branches/gsoc15-portfile/port-create.tcl
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150604/9f2b4e10/attachment.html>
More information about the macports-changes
mailing list