Skip to content
Permalink
Browse files

bashforth: Update to 0.63

  • Loading branch information
ryandesign committed May 14, 2020
1 parent 6679d1a commit f0d2a672bee3a826556d9ca27cde8ba58f400cf6
Showing with 42 additions and 17 deletions.
  1. +42 −17 lang/bashforth/Portfile
@@ -1,23 +1,45 @@
PortSystem 1.0
PortGroup github 1.0

github.setup Bushmills Bashforth 1353d4e763c64ae3dfb28e7586fa508e2fc6c251
version 0.63
revision 0
checksums rmd160 0c0a13ede51c3d6f0daabcfc7b96d65dc38436c7 \
sha256 bc8969dc97ae5c3ac69aa898ebc22bc5a61216de47984cc32dd0c3174cba4f52 \
size 27777

name bashforth
version 0.56a
categories lang
maintainers nomaintainer
description BashForth is a ForthInterpreter, written entirely in the bash scripting language.
long_description \
It requires bash v2.04 or higher. Its virtual machine makes use of \
StringThreadedCode. Because its source code doesn't need to be compiled, it \
is highly portable (to any platform running bash). Previous versions can be \
found in the versions archive. \
See http://forthfreak.net/index.cgi?BashForth for more.

homepage http://forthfreak.net/
maintainers {ryandesign @ryandesign} openmaintainer
license GPL-2
supported_archs noarch

description a Forth interpreter written in Bash

long_description Bashforth is a Fortran interpreter written entirely in \
the Bash scripting language. Its virtual machine makes \
use of string threaded code. Because its source code \
doesn't need to be compiled, it is highly portable (to \
any platform running Bash).

github.tarball_from archive

platforms darwin

master_sites ${homepage}/bashforth.versions/
checksums md5 8262e2bdf50730aa6652aeee5ce3855f \
sha1 61fc03bf98ae241b315fbf55c1fe051bafb559df \
rmd160 55dc74de95d96e7e3874b7cb62fe394cbeca0b36
post-extract {
set fp [open ${worksrcpath}/bashforth r]
set file_contents [read ${fp}]
close ${fp}
if {[regexp -lineanchor {^version="([^"]+)"$} ${file_contents} -> version_in_file] == 1} {
if {${version} ne ${version_in_file}} {
ui_error "version should be ${version_in_file} not ${version}"
return -code error
}
} else {
ui_error "Could not determine version"
return -code error
}
}

use_configure no

@@ -26,6 +48,9 @@ build {}
universal_variant no

destroot {
xinstall -m 755 -d ${destroot}${prefix}/bin/
xinstall -m 755 ${worksrcpath}/bashforth ${destroot}${prefix}/bin/
xinstall ${worksrcpath}/bashforth ${destroot}${prefix}/bin/

set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
}

0 comments on commit f0d2a67

Please sign in to comment.
You can’t perform that action at this time.