Skip to content

Commit 6e5ab88

Browse files
committed
Add diff between step0 and step1
1 parent 773d018 commit 6e5ab88

File tree

1 file changed

+198
-0
lines changed

1 file changed

+198
-0
lines changed

step0_1.diff

+198
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
Only in port-step1: .gitignore
2+
Only in port-step1: PortIndex
3+
Only in port-step1: PortIndex.quick
4+
diff -ur port-step0/_resources/port1.0/group/ruby-1.0.tcl port-step1/_resources/port1.0/group/ruby-1.0.tcl
5+
--- port-step0/_resources/port1.0/group/ruby-1.0.tcl 2013-03-02 10:40:01.000000000 +0900
6+
+++ port-step1/_resources/port1.0/group/ruby-1.0.tcl 2013-03-02 14:17:28.000000000 +0900
7+
@@ -57,6 +57,10 @@
8+
set ruby.project ""
9+
set ruby.docs {}
10+
set ruby.srcdir ""
11+
+set ruby.bindir ""
12+
+
13+
+options ruby.link_binaries
14+
+default ruby.link_binaries yes
15+
16+
# ruby group setup procedure; optional for ruby 1.8 if you want only
17+
# basic variables, like ruby.lib and ruby.archlib.
18+
@@ -64,17 +68,20 @@
19+
global destroot prefix worksrcpath os.platform
20+
global ruby.bin ruby.rdoc ruby.gem
21+
global ruby.version ruby.lib
22+
- global ruby.module ruby.filename ruby.project ruby.docs ruby.srcdir
23+
+ global ruby.module ruby.filename ruby.project ruby.docs ruby.srcdir ruby.bindir
24+
global ruby.prog_suffix
25+
+ global ruby.link_binaries_suffix
26+
27+
if {${implementation} eq "ruby19"} {
28+
set ruby.port_prefix rb19
29+
set ruby.prog_suffix "1.9"
30+
+ set ruby.libexec_suffix "1.9"
31+
} elseif {${implementation} eq "ruby"} {
32+
# ruby.bin, ruby.rdoc, and ruby.gem set to 1.8 by default
33+
set ruby.port_prefix rb
34+
# no program suffix by default, so leave as blank
35+
set ruby.prog_suffix ""
36+
+ set ruby.libexec_suffix "1.8"
37+
} else {
38+
ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19 possible)"
39+
return -code error "ruby.setup failed"
40+
@@ -82,6 +89,8 @@
41+
set ruby.bin ${prefix}/bin/ruby${ruby.prog_suffix}
42+
set ruby.rdoc ${prefix}/bin/rdoc${ruby.prog_suffix}
43+
set ruby.gem ${prefix}/bin/gem${ruby.prog_suffix}
44+
+ set ruby.bindir ${prefix}/libexec/ruby${ruby.libexec_suffix}
45+
+ set ruby.link_binaries_suffix -${ruby.libexec_suffix}
46+
47+
# define ruby global names and lists
48+
# check if module is a list or string
49+
@@ -199,6 +208,11 @@
50+
destroot.cmd ${ruby.bin} -rvendor-specific -rdestroot install.rb
51+
destroot.target
52+
destroot.destdir
53+
+ post-destroot {
54+
+ foreach file [readdir ${destroot}${prefix}/bin] {
55+
+ move [file join ${destroot}${prefix}/bin $file] ${destroot}${ruby.bindir}
56+
+ }
57+
+ }
58+
}
59+
copy_install:* {
60+
set ruby.srcdir [lindex [split ${type} {:}] 1]
61+
@@ -225,7 +239,7 @@
62+
}
63+
install.rb {
64+
configure.cmd ${ruby.bin} -rvendor-specific install.rb
65+
- configure.pre_args config
66+
+ configure.pre_args config --bin-dir=${destroot}${ruby.bindir}
67+
68+
build.cmd ${ruby.bin} -rvendor-specific install.rb
69+
build.target setup
70+
@@ -246,7 +260,7 @@
71+
}
72+
setup.rb {
73+
configure.cmd ${ruby.bin} -rvendor-specific setup.rb
74+
- configure.pre_args config
75+
+ configure.pre_args config --bindir=${ruby.bindir}
76+
77+
build.cmd ${ruby.bin} -rvendor-specific setup.rb
78+
build.target setup
79+
@@ -273,6 +287,11 @@
80+
build.args RUBY="${ruby.bin} -rvendor-specific"
81+
82+
destroot.args RUBY="${ruby.bin} -rvendor-specific"
83+
+ post-destroot {
84+
+ foreach file [readdir ${destroot}${prefix}/bin] {
85+
+ move [file join ${destroot}${prefix}/bin $file] ${destroot}${ruby.bindir}
86+
+ }
87+
+ }
88+
}
89+
gnu {
90+
build.args RUBY="${ruby.bin} -rvendor-specific"
91+
@@ -310,7 +329,7 @@
92+
set binDir ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version}/bin
93+
if {[file isdirectory $binDir]} {
94+
foreach file [readdir $binDir] {
95+
- file copy [file join $binDir $file] ${destroot}${prefix}/bin
96+
+ file copy [file join $binDir $file] ${destroot}${ruby.bindir}
97+
}
98+
}
99+
}
100+
@@ -329,7 +348,18 @@
101+
configure.universal_args-delete --disable-dependency-tracking
102+
}
103+
104+
+ pre-destroot {
105+
+ xinstall -d -m 0755 ${destroot}${ruby.bindir}
106+
+ }
107+
+
108+
post-destroot {
109+
+ if {${ruby.link_binaries}} {
110+
+ foreach bin [glob -nocomplain -tails -directory "${destroot}${ruby.bindir}" *] {
111+
+ if {[catch {file type "${destroot}${prefix}/bin/${bin}${ruby.link_binaries_suffix}"}]} {
112+
+ ln -s "${ruby.bindir}/${bin}" "${destroot}${prefix}/bin/${bin}${ruby.link_binaries_suffix}"
113+
+ }
114+
+ }
115+
+ }
116+
# Install documentation files (if specified)
117+
if {[llength ${ruby.docs}] > 0} {
118+
set docPath ${prefix}/share/doc/${name}
119+
diff -ur port-step0/lang/ruby/Portfile port-step1/lang/ruby/Portfile
120+
--- port-step0/lang/ruby/Portfile 2013-03-02 08:51:28.000000000 +0900
121+
+++ port-step1/lang/ruby/Portfile 2013-03-02 10:52:54.000000000 +0900
122+
@@ -143,6 +143,9 @@
123+
destroot.keepdirs-append ${subdir}
124+
}
125+
}
126+
+ # install destination of commands from port:rb-*
127+
+ xinstall -m 0755 -d ${destroot}${prefix}/libexec/ruby1.8
128+
+ destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby1.8
129+
# error at activate, for these case sensitive files
130+
foreach rdoc {Exception2MessageMapper/fail-i.yaml \
131+
REXML/Parsers/XPathParser/predicate-i.yaml} {
132+
diff -ur port-step0/lang/ruby19/Portfile port-step1/lang/ruby19/Portfile
133+
--- port-step0/lang/ruby19/Portfile 2013-03-02 08:51:41.000000000 +0900
134+
+++ port-step1/lang/ruby19/Portfile 2013-03-02 10:57:20.000000000 +0900
135+
@@ -86,6 +86,10 @@
136+
destroot.keepdirs-append ${subdir}
137+
}
138+
139+
+ # install destination of commands from port:rb-*
140+
+ xinstall -m 0755 -d ${destroot}${prefix}/libexec/ruby1.9
141+
+ destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby1.9
142+
+
143+
# error at activate, for these case sensitive files
144+
foreach rdoc {Exception2MessageMapper/fail-i.yaml \
145+
REXML/Parsers/XPathParser/predicate-i.yaml} {
146+
diff -ur port-step0/ruby/rb-archive-tar-minitar/Portfile port-step1/ruby/rb-archive-tar-minitar/Portfile
147+
--- port-step0/ruby/rb-archive-tar-minitar/Portfile 2012-05-29 13:50:18.000000000 +0900
148+
+++ port-step1/ruby/rb-archive-tar-minitar/Portfile 2013-03-02 13:13:10.000000000 +0900
149+
@@ -21,6 +21,7 @@
150+
151+
destroot.args --no-ri --no-tests
152+
post-destroot {
153+
- reinplace "s%#!.*ruby%#!${ruby.bin}%" ${destroot}${prefix}/bin/minitar
154+
- file delete -force ${destroot}${prefix}/bin/minitar.bat
155+
+ reinplace -locale C "s%#!.*ruby%#!${ruby.bin}%" ${destroot}${ruby.bindir}/minitar
156+
+ file delete -force ${destroot}${prefix}/bin/minitar.bat${ruby.link_binaries_suffix}
157+
+ file delete -force ${destroot}${ruby.bindir}/minitar.bat
158+
}
159+
diff -ur port-step0/ruby/rb-cvs/Portfile port-step1/ruby/rb-cvs/Portfile
160+
--- port-step0/ruby/rb-cvs/Portfile 2010-09-24 21:21:50.000000000 +0900
161+
+++ port-step1/ruby/rb-cvs/Portfile 2013-03-02 13:33:01.000000000 +0900
162+
@@ -15,6 +15,8 @@
163+
checksums md5 4e40b597ba43ef8ecc8b0fdce22119bd
164+
post-destroot {
165+
reinplace "s;/usr/local/bin/ruby;${ruby.bin};" ${worksrcpath}/viztree
166+
- xinstall -m 0755 ${worksrcpath}/viztree ${destroot}${prefix}/bin
167+
+ xinstall -m 0755 ${worksrcpath}/viztree ${destroot}${ruby.bindir}
168+
+ # install commands at post-destroot, need to make symlink in portfile
169+
+ ln -s ${ruby.bindir}/viztree ${destroot}${prefix}/bin/viztree${ruby.link_binaries_suffix}
170+
}
171+
platforms darwin
172+
Only in port-step1/ruby/rb-htaccess: work
173+
diff -ur port-step0/ruby/rb-pdumpfs/Portfile port-step1/ruby/rb-pdumpfs/Portfile
174+
--- port-step0/ruby/rb-pdumpfs/Portfile 2013-03-02 08:55:02.000000000 +0900
175+
+++ port-step1/ruby/rb-pdumpfs/Portfile 2013-03-02 12:23:22.000000000 +0900
176+
@@ -33,8 +33,8 @@
177+
test.target check
178+
179+
destroot {
180+
- xinstall -d -m 0755 ${destroot}${prefix}/bin
181+
- xinstall -m 0755 ${worksrcpath}/pdumpfs ${destroot}${prefix}/bin
182+
+ xinstall -d -m 0755 ${destroot}${ruby.bindir}
183+
+ xinstall -m 0755 ${worksrcpath}/pdumpfs ${destroot}${ruby.bindir}
184+
xinstall -d -m 0755 ${destroot}${prefix}/share/man/man8
185+
xinstall -m 0644 ${worksrcpath}/man/man8/pdumpfs.8 \
186+
${destroot}${prefix}/share/man/man8
187+
Only in port-step1/ruby/rb-pdumpfs: work
188+
diff -ur port-step0/ruby/rb19-nanoc3/Portfile port-step1/ruby/rb19-nanoc3/Portfile
189+
--- port-step0/ruby/rb19-nanoc3/Portfile 2013-03-02 08:53:31.000000000 +0900
190+
+++ port-step1/ruby/rb19-nanoc3/Portfile 2013-03-02 11:16:26.000000000 +0900
191+
@@ -3,7 +3,6 @@
192+
PortGroup ruby 1.0
193+
194+
ruby.setup nanoc3 3.1.3 gem {} rubygems ruby19
195+
-conflicts rb-nanoc3
196+
description A Ruby site compiler that produces static HTML
197+
long_description \
198+
nanoc is a tool for building static web sites. It can transform content \

0 commit comments

Comments
 (0)