Files
Joshua Root 02ae60ce68 ruby/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-27 04:43:39 +11:00

77 lines
1.8 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup github 1.0
name ruby-completion
github.setup mernen completion-ruby 96374aee2ae46de96bd705eff617a65091eaf674
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version 20240924
revision 1
categories ruby
platforms any
supported_archs noarch
license MIT
maintainers {mascguy @mascguy} openmaintainer
description Bash completions for Ruby/JRuby
long_description {*}${description}
checksums rmd160 4c94ce8e82b550a886e30c2de668713e8f5c5a3a \
sha256 3251d05ece79064cab939c39da1363d801b8274e072b44f3e8c314cc658f720f \
size 15526
depends_run port:bash
use_configure no
set comp_dir \
${destroot}${prefix}/etc/bash_completion.d
set doc_dir \
${destroot}${prefix}/share/doc/${subport}
set comp_files_prefix \
ruby-
set comp_files \
[list \
completion-bundle \
completion-gem \
completion-jruby \
completion-rails \
completion-rake \
completion-ruby \
]
set doc_files \
[list \
MIT-LICENSE \
README.markdown \
]
build {}
pre-destroot {
xinstall -d ${comp_dir}
xinstall -d ${doc_dir}
}
destroot {
foreach f ${comp_files} {
set fn_src ${worksrcpath}/${f}
set fn_dest ${comp_dir}/${comp_files_prefix}${f}
xinstall -m 644 ${fn_src} ${fn_dest}
}
foreach f ${doc_files} {
set fn_src ${worksrcpath}/${f}
set fn_dest ${doc_dir}/${f}
xinstall -m 644 ${fn_src} ${fn_dest}
}
}