[67332] users/anddam
and.damore at macports.org
and.damore at macports.org
Thu May 6 00:04:22 PDT 2010
Revision: 67332
http://trac.macports.org/changeset/67332
Author: and.damore at macports.org
Date: 2010-05-06 00:04:16 -0700 (Thu, 06 May 2010)
Log Message:
-----------
script for geda
Added Paths:
-----------
users/anddam/geda/
users/anddam/geda/geda_port.list
users/anddam/geda/geda_variants.lua
Added: users/anddam/geda/geda_port.list
===================================================================
--- users/anddam/geda/geda_port.list (rev 0)
+++ users/anddam/geda/geda_port.list 2010-05-06 07:04:16 UTC (rev 67332)
@@ -0,0 +1,10 @@
+geda-gaf
+pcb
+gerbv
+xgsch2pcb
+gnucap
+iverilog
+gspiceui
+gtkwave
+gwave2
+ng-spice
\ No newline at end of file
Added: users/anddam/geda/geda_variants.lua
===================================================================
--- users/anddam/geda/geda_variants.lua (rev 0)
+++ users/anddam/geda/geda_variants.lua 2010-05-06 07:04:16 UTC (rev 67332)
@@ -0,0 +1,20 @@
+template=[[
+variant no_VARIANTNAME description "don't install PHOLD" {
+ depends_run-delete port:PHOLD
+}
+]]
+
+a={}
+io.input("lista")
+while true do
+ local line = io.read()
+ if line == nil then break end
+ table.insert(a,line)
+end
+
+for k,v in ipairs(a) do
+ variant=template
+ variant=string.gsub(variant,"VARIANTNAME", string.gsub(v,"-","_") or v)
+ variant=string.gsub(variant,"PHOLD",v)
+ print(variant)
+end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100506/860a6f2c/attachment.html>
More information about the macports-changes
mailing list