Index: head/cad/Makefile =================================================================== --- head/cad/Makefile (revision 415342) +++ head/cad/Makefile (revision 415343) @@ -1,88 +1,89 @@ # $FreeBSD$ # COMMENT = CAD tools SUBDIR += admesh SUBDIR += adms SUBDIR += alliance SUBDIR += astk-client SUBDIR += astk-serveur SUBDIR += atlc SUBDIR += basicdsp SUBDIR += brickutils SUBDIR += brlcad SUBDIR += calculix SUBDIR += cascade SUBDIR += chipvault SUBDIR += cider SUBDIR += cura-engine SUBDIR += dinotrace SUBDIR += dxf2fig SUBDIR += electric SUBDIR += electric-ng SUBDIR += elmerfem SUBDIR += feappv SUBDIR += fidocadj SUBDIR += freehdl SUBDIR += fritzing SUBDIR += gdsreader SUBDIR += gdt SUBDIR += geda SUBDIR += gerbv SUBDIR += ghdl SUBDIR += gmsh SUBDIR += gmsh-occ SUBDIR += gnucap SUBDIR += gplcver SUBDIR += gspiceui SUBDIR += gtkwave SUBDIR += impact SUBDIR += irsim SUBDIR += iverilog SUBDIR += jspice3 SUBDIR += kicad SUBDIR += kicad-devel SUBDIR += klayout SUBDIR += layouteditor SUBDIR += ldraw SUBDIR += leocad SUBDIR += librecad SUBDIR += linux-eagle5 SUBDIR += logisim SUBDIR += magic SUBDIR += meshdev SUBDIR += meshlab SUBDIR += netgen SUBDIR += ngspice_rework SUBDIR += opencascade SUBDIR += openscad SUBDIR += openvsp SUBDIR += p5-GDS2 SUBDIR += p5-Verilog-Perl SUBDIR += pcb SUBDIR += pdnmesh SUBDIR += py-lcapy SUBDIR += py-pycam SUBDIR += pythoncad SUBDIR += qcad SUBDIR += qcad-partslib SUBDIR += qelectrotech SUBDIR += qfsm SUBDIR += qmls SUBDIR += qucs SUBDIR += repsnapper + SUBDIR += rubygem-gdsii SUBDIR += sceptre SUBDIR += scotch SUBDIR += spice SUBDIR += stepcode SUBDIR += sweethome3d SUBDIR += tkgate SUBDIR += tochnog SUBDIR += transcalc SUBDIR += varkon SUBDIR += verilog-mode.el SUBDIR += xcircuit SUBDIR += z88 .include Index: head/cad/rubygem-gdsii/Makefile =================================================================== --- head/cad/rubygem-gdsii/Makefile (nonexistent) +++ head/cad/rubygem-gdsii/Makefile (revision 415343) @@ -0,0 +1,17 @@ +# $FreeBSD$ + +PORTNAME= ruby-gdsii +PORTVERSION= 1.0.0 +CATEGORIES= cad rubygems +MASTER_SITES= RG + +MAINTAINER= hrs@FreeBSD.org +COMMENT= GDSII reader and writer + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= gem +USE_RUBY= yes + +.include Property changes on: head/cad/rubygem-gdsii/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/distinfo =================================================================== --- head/cad/rubygem-gdsii/distinfo (nonexistent) +++ head/cad/rubygem-gdsii/distinfo (revision 415343) @@ -0,0 +1,3 @@ +TIMESTAMP = 1463383716 +SHA256 (rubygem/ruby-gdsii-1.0.0.gem) = ac9e9f7c894c9ebb8a42e4801b48eafe4aa7614cf332393203fd7710273f8883 +SIZE (rubygem/ruby-gdsii-1.0.0.gem) = 53760 Property changes on: head/cad/rubygem-gdsii/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-bin_rgds-join =================================================================== --- head/cad/rubygem-gdsii/files/patch-bin_rgds-join (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-bin_rgds-join (revision 415343) @@ -0,0 +1,15 @@ +--- bin/rgds-join.orig 2016-05-16 07:41:38 UTC ++++ bin/rgds-join +@@ -45,9 +45,9 @@ opts = GetoptLong.new( + + opts.each do |option, argument| + case option +- when '--help' : abort usage +- when '--structs' : structs = argument.split(/\s+/) +- when '--force' : force = true ++ when '--help' then abort usage ++ when '--structs' then structs = argument.split(/\s+/) ++ when '--force' then force = true + end + end + Property changes on: head/cad/rubygem-gdsii/files/patch-bin_rgds-join ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-bin_rgds-sremove =================================================================== --- head/cad/rubygem-gdsii/files/patch-bin_rgds-sremove (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-bin_rgds-sremove (revision 415343) @@ -0,0 +1,19 @@ +--- bin/rgds-sremove.orig 2016-05-16 07:41:38 UTC ++++ bin/rgds-sremove +@@ -58,11 +58,11 @@ opts = GetoptLong.new( + + opts.each do |option, argument| + case option +- when '--structs' : structs = argument.split(/\s+/) +- when '--force' : force = true +- when '--keep-refs' : keep_refs = true +- when '--keep-structs' : keep_structs = true +- when '--help' : abort usage ++ when '--structs' then structs = argument.split(/\s+/) ++ when '--force' then force = true ++ when '--keep-refs' then keep_refs = true ++ when '--keep-structs' then keep_structs = true ++ when '--help' then abort usage + end + end + Property changes on: head/cad/rubygem-gdsii/files/patch-bin_rgds-sremove ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-bin_rgds-ssplit =================================================================== --- head/cad/rubygem-gdsii/files/patch-bin_rgds-ssplit (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-bin_rgds-ssplit (revision 415343) @@ -0,0 +1,17 @@ +--- bin/rgds-ssplit.orig 2016-05-16 07:41:38 UTC ++++ bin/rgds-ssplit +@@ -60,10 +60,10 @@ opts = GetoptLong.new( + + opts.each do |option, argument| + case option +- when '--help' : abort usage +- when '--structs' : structs = argument.split(/\s+/) +- when '--extension' : ext = argument +- when '--force' : force = true ++ when '--help' then abort usage ++ when '--structs' then structs = argument.split(/\s+/) ++ when '--extension' then ext = argument ++ when '--force' then force = true + end + end + Property changes on: head/cad/rubygem-gdsii/files/patch-bin_rgds-ssplit ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-bin_rgds-stats =================================================================== --- head/cad/rubygem-gdsii/files/patch-bin_rgds-stats (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-bin_rgds-stats (revision 415343) @@ -0,0 +1,13 @@ +--- bin/rgds-stats.orig 2016-05-16 07:41:38 UTC ++++ bin/rgds-stats +@@ -44,8 +44,8 @@ opts = GetoptLong.new( + + opts.each do |option, argument| + case option +- when '--help' : abort usage +- when '--structs' : structs = argument.split(/\s+/) ++ when '--help' then abort usage ++ when '--structs' then structs = argument.split(/\s+/) + end + end + Property changes on: head/cad/rubygem-gdsii/files/patch-bin_rgds-stats ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-bin_rgds-tree =================================================================== --- head/cad/rubygem-gdsii/files/patch-bin_rgds-tree (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-bin_rgds-tree (revision 415343) @@ -0,0 +1,30 @@ +--- bin/rgds-tree.orig 2016-05-16 07:41:38 UTC ++++ bin/rgds-tree +@@ -64,11 +64,11 @@ opts = GetoptLong.new( + + opts.each do |option, argument| + case option +- when '--top-structs' : top_structs = argument.split(/\s+/) +- when '--inst-counts' : show_inst_counts = argument +- when '--broken-refs' : broken_refs = argument +- when '--delimiter' : delimiter = argument +- when '--help' : abort usage ++ when '--top-structs' then top_structs = argument.split(/\s+/) ++ when '--inst-counts' then show_inst_counts = argument ++ when '--broken-refs' then broken_refs = argument ++ when '--delimiter' then delimiter = argument ++ when '--help' then abort usage + end + end + +@@ -111,8 +111,8 @@ class HierStruct + else + # broken reference; deal with appropriately + case @broken_refs +- when :annotate : $stdout.puts string + '(MISSING)' +- when :prune : nil ++ when :annotate then $stdout.puts string + '(MISSING)' ++ when :prune then nil + else + $stdout.puts string + @delimiter + struct_name + cnt_suffix + end Property changes on: head/cad/rubygem-gdsii/files/patch-bin_rgds-tree ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-bin_rgds2rb =================================================================== --- head/cad/rubygem-gdsii/files/patch-bin_rgds2rb (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-bin_rgds2rb (revision 415343) @@ -0,0 +1,15 @@ +--- bin/rgds2rb.orig 2016-05-16 07:41:38 UTC ++++ bin/rgds2rb +@@ -47,9 +47,9 @@ opts = GetoptLong.new( + + opts.each do |option, argument| + case option +- when '--help' : abort usage +- when '--structs' : structs = argument.split(/\s+/) +- when '--force' : force = true ++ when '--help' then abort usage ++ when '--structs' then structs = argument.split(/\s+/) ++ when '--force' then force = true + end + end + Property changes on: head/cad/rubygem-gdsii/files/patch-bin_rgds2rb ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-lib_gdsii_element.rb =================================================================== --- head/cad/rubygem-gdsii/files/patch-lib_gdsii_element.rb (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-lib_gdsii_element.rb (revision 415343) @@ -0,0 +1,23 @@ +--- lib/gdsii/element.rb.orig 2016-05-16 07:41:38 UTC ++++ lib/gdsii/element.rb +@@ -56,13 +56,13 @@ module Gdsii + def Element.read(file, *args) + rec = Record.peek(file) + case rec.type +- when GRT_BOUNDARY : Boundary.read_el(file, *args) +- when GRT_TEXT : Text.read_el(file, *args) +- when GRT_PATH : Path.read_el(file, *args) +- when GRT_SREF : SRef.read_el(file, *args) +- when GRT_AREF : ARef.read_el(file, *args) +- when GRT_BOX : Box.read_el(file, *args) +- when GRT_NODE : Node.read_el(file, *args) ++ when GRT_BOUNDARY then Boundary.read_el(file, *args) ++ when GRT_TEXT then Text.read_el(file, *args) ++ when GRT_PATH then Path.read_el(file, *args) ++ when GRT_SREF then SRef.read_el(file, *args) ++ when GRT_AREF then ARef.read_el(file, *args) ++ when GRT_BOX then Box.read_el(file, *args) ++ when GRT_NODE then Node.read_el(file, *args) + else + # end of the element, increment the counter and move on + nil Property changes on: head/cad/rubygem-gdsii/files/patch-lib_gdsii_element.rb ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-lib_gdsii_record.rb =================================================================== --- head/cad/rubygem-gdsii/files/patch-lib_gdsii_record.rb (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-lib_gdsii_record.rb (revision 415343) @@ -0,0 +1,44 @@ +--- lib/gdsii/record.rb.orig 2016-05-16 07:41:38 UTC ++++ lib/gdsii/record.rb +@@ -102,13 +102,13 @@ module Gdsii + + # convert to a data type object + @data = case RECORD_INFO[type].data_type +- when GDT_ASCII : Ascii.new(data, self) +- when GDT_INT2 : Int2.new(data) +- when GDT_INT4 : Int4.new(data) +- when GDT_REAL8 : Real8.new(data) +- when GDT_BITARRAY : BitArray.new(data) +- when GDT_NO_DATA : NoData.new() +- when GDT_REAL4 : Real4.new(data) ++ when GDT_ASCII then Ascii.new(data, self) ++ when GDT_INT2 then Int2.new(data) ++ when GDT_INT4 then Int4.new(data) ++ when GDT_REAL8 then Real8.new(data) ++ when GDT_BITARRAY then BitArray.new(data) ++ when GDT_NO_DATA then NoData.new() ++ when GDT_REAL4 then Real4.new(data) + else + raise TypeError, "Given record type (#{type}) is invalid" + end +@@ -246,13 +246,13 @@ module Gdsii + end + + data = case data_type +- when GDT_ASCII : Ascii.read(file, bytes_left) +- when GDT_INT2 : Int2.read(file, bytes_left) +- when GDT_INT4 : Int4.read(file, bytes_left) +- when GDT_REAL8 : Real8.read(file, bytes_left) +- when GDT_BITARRAY : BitArray.read(file, bytes_left) +- when GDT_NO_DATA : NoData.read(file, bytes_left) +- when GDT_REAL4 : Real4.read(file, bytes_left) ++ when GDT_ASCII then Ascii.read(file, bytes_left) ++ when GDT_INT2 then Int2.read(file, bytes_left) ++ when GDT_INT4 then Int4.read(file, bytes_left) ++ when GDT_REAL8 then Real8.read(file, bytes_left) ++ when GDT_BITARRAY then BitArray.read(file, bytes_left) ++ when GDT_NO_DATA then NoData.read(file, bytes_left) ++ when GDT_REAL4 then Real4.read(file, bytes_left) + else + raise TypeError, "Given record type (#{type}) is invalid" + end Property changes on: head/cad/rubygem-gdsii/files/patch-lib_gdsii_record.rb ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/files/patch-lib_gdsii_record_consts.rb =================================================================== --- head/cad/rubygem-gdsii/files/patch-lib_gdsii_record_consts.rb (nonexistent) +++ head/cad/rubygem-gdsii/files/patch-lib_gdsii_record_consts.rb (revision 415343) @@ -0,0 +1,24 @@ +--- lib/gdsii/record/consts.rb.orig 2016-05-16 07:41:38 UTC ++++ lib/gdsii/record/consts.rb +@@ -55,8 +55,8 @@ module Gdsii + # Returns the minimum number of items necessary for this record type. + def min_items + case @data_type +- when GDT_NO_DATA : 0 +- when GDT_ASCII : (@size == 0) ? 1 : @min_len/@size ++ when GDT_NO_DATA then 0 ++ when GDT_ASCII then (@size == 0) ? 1 : @min_len/@size + else + @min_len/@size + end +@@ -65,8 +65,8 @@ module Gdsii + # Returns the maximum number of items necessary for this record type. + def max_items + case @data_type +- when GDT_NO_DATA : 0 +- when GDT_ASCII : (@size == 0) ? 1 : @max_len/@size ++ when GDT_NO_DATA then 0 ++ when GDT_ASCII then (@size == 0) ? 1 : @max_len/@size + else + @max_len/@size + end Property changes on: head/cad/rubygem-gdsii/files/patch-lib_gdsii_record_consts.rb ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/pkg-descr =================================================================== --- head/cad/rubygem-gdsii/pkg-descr (nonexistent) +++ head/cad/rubygem-gdsii/pkg-descr (revision 415343) @@ -0,0 +1,4 @@ +The GDSII Ruby Library provides an easy-to-use interface using +Ruby to reading and writing GDSII files. + +WWW: http://rubyforge.org/projects/gdsii/ Property changes on: head/cad/rubygem-gdsii/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cad/rubygem-gdsii/pkg-plist =================================================================== --- head/cad/rubygem-gdsii/pkg-plist (nonexistent) +++ head/cad/rubygem-gdsii/pkg-plist (revision 415343) @@ -0,0 +1,10 @@ +bin/rgds-debug +bin/rgds-dump +bin/rgds-join +bin/rgds-layers +bin/rgds-sremove +bin/rgds-ssplit +bin/rgds-stats +bin/rgds-structs +bin/rgds-tree +bin/rgds2rb Property changes on: head/cad/rubygem-gdsii/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property