Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to port1.0 group (stub port now displays notes) #7647

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions _resources/port1.0/group/perl5-1.0.tcl
Expand Up @@ -177,6 +177,10 @@ proc perl5.setup {module vers {cpandir ""}} {
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
}
uplevel {
description-append (stub port)
long_description-append (NOTE: This is a stub port.)
}
}
} else {
depends_lib-append port:perl${perl5.default_branch}
Expand Down
4 changes: 4 additions & 0 deletions _resources/port1.0/group/php-1.1.tcl
Expand Up @@ -72,6 +72,10 @@ proc php._set_branches {option action args} {
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${subport}
system "echo \"${subport} is a stub port\" > ${destroot}${prefix}/share/doc/${subport}/README"
}
uplevel {
description-append (stub port)
long_description-append (NOTE: This is a stub port.)
}
}
} else {
# Single-branch extension port; add the code to the port directly.
Expand Down
4 changes: 4 additions & 0 deletions _resources/port1.0/group/python-1.0.tcl
Expand Up @@ -123,6 +123,10 @@ proc python_set_versions {option action args} {
destroot {
system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
}
uplevel {
description-append (stub port)
long_description-append (NOTE: This is a stub port.)
}
} else {
set addcode 1
}
Expand Down
15 changes: 15 additions & 0 deletions _resources/port1.0/group/ruby-1.0.tcl
Expand Up @@ -171,6 +171,17 @@ proc ruby.setup {module vers {type "install.rb"} {docs {}} {source "custom"} {im
}
}
if {$subport eq $name} {
# use whatever ${prefix}/bin/ruby was chosen, and if none, fall back to latest
if {![catch {set val [lindex [split [exec ${prefix}/bin/ruby --version] { }] 1]}]} {
ruby.branch [join [lrange [split $val .] 0 1] .]
} else {
ruby.branch 2.7
}
# if the above default is not supported by this module, use the latest it does support
if {[info exists ruby.branches] && ${ruby.branch} ni ${ruby.branches}} {
ruby.branch [lindex [lsort -command vercmp ${ruby.branches}] end]
}
depends_run port:rb${ruby.suffix}-[string tolower ${ruby.module}]
ruby.link_binaries no
distfiles
supported_archs noarch
Expand All @@ -180,6 +191,10 @@ proc ruby.setup {module vers {type "install.rb"} {docs {}} {source "custom"} {im
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
}
uplevel {
description-append (stub port)
long_description-append (NOTE: This is a stub port.)
}
return
}
}
Expand Down