Files
macports-ports/ruby/rb-rubycon/Portfile
T
2023-12-09 04:22:35 +11:00

40 lines
1.9 KiB
Plaintext

PortSystem 1.0
PortGroup ruby 1.0
ruby.setup rubycon 0.8 copy_install:. {_README.txt}
license GPL-2+
maintainers nomaintainer
description Toolkit for building concept processing and reasoning systems.
long_description RubyCon is an open-source, rapid development toolkit for \
building concept processing and other intelligent reasoning \
systems. RubyCon builds upon the work of the ConceptNet \
project (http://web.media.mit.edu/~hugo/conceptnet/), \
implementing ConceptNets semantic network of 280,000+ \
assertions and graph-processing algorithms into a set \
of reusable objects in the Ruby programming language.
platforms any
supported_archs noarch
distname ${ruby.filename}-${version}-src
worksrcdir ${ruby.filename}
build {
file mkdir ${worksrcpath}/db
file rename ${worksrcpath}/predicates.txt ${worksrcpath}/db/predicates
system "cd ${worksrcpath} && ${ruby.bin} -e \"load \\\"rubycon.rb\\\";rcon=RubyCon.new;rcon.import \\\"db/predicates\\\"\""
reinplace "s;\.\/db;${ruby.lib}\/db;" ${worksrcpath}/concept.rb ${worksrcpath}/link.rb
}
post-destroot {
file delete ${destroot}${ruby.lib}/_COPYING.txt
file delete ${destroot}${ruby.lib}/_CREDITS.txt
file delete ${destroot}${ruby.lib}/_README.txt
foreach file [glob -nocomplain ${destroot}${ruby.lib}/db/*~] {
file delete $file
}
foreach file [glob ${destroot}${ruby.lib}/db/*] {
file attributes $file -permissions 00666
}
}
homepage http://www.enablix.com/rubycon/
master_sites http://www.enablix.com/downloads/
checksums md5 7b38b567c231a7394ad8d9d7e1c40bef