source: trunk/dports/ruby/rb-rubycon/Portfile

Last change on this file was 105024, checked in by jmr@…, 4 years ago

rb-rubycon: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 105024 2013-04-07 23:47:01Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               ruby 1.0
5
6ruby.setup              rubycon 0.8 copy_install:. {_README.txt}
7license                 GPL-2+
8maintainers             nomaintainer
9description             Toolkit for building concept processing and reasoning systems.
10long_description        RubyCon is an open-source, rapid development toolkit for \
11                    building concept processing and other intelligent reasoning \
12                    systems. RubyCon builds upon the work of the ConceptNet \
13                    project (http://web.media.mit.edu/~hugo/conceptnet/), \
14                    implementing ConceptNets semantic network of 280,000+ \
15                    assertions and graph-processing algorithms into a set \
16                    of reusable objects in the Ruby programming language.
17platforms               darwin
18distname        ${ruby.filename}-${version}-src
19worksrcdir      ${ruby.filename}
20build           {
21                    file mkdir ${worksrcpath}/db
22                    file rename ${worksrcpath}/predicates.txt ${worksrcpath}/db/predicates
23                    system "cd ${worksrcpath} && ${ruby.bin} -e \"load \\\"rubycon.rb\\\";rcon=RubyCon.new;rcon.import \\\"db/predicates\\\"\""
24                    reinplace "s;\.\/db;${ruby.lib}\/db;" ${worksrcpath}/concept.rb ${worksrcpath}/link.rb
25                }
26post-destroot   {
27                    file delete ${destroot}${ruby.lib}/_COPYING.txt
28                    file delete ${destroot}${ruby.lib}/_CREDITS.txt
29                    file delete ${destroot}${ruby.lib}/_README.txt
30                    foreach file [glob -nocomplain ${destroot}${ruby.lib}/db/*~] {
31                                                file delete $file
32                                        }
33
34                    foreach file [glob ${destroot}${ruby.lib}/db/*] {
35                        file attributes $file -permissions 00666
36                    }
37                }
38homepage                http://www.enablix.com/rubycon/
39master_sites    http://www.enablix.com/downloads/
40checksums               md5 7b38b567c231a7394ad8d9d7e1c40bef
Note: See TracBrowser for help on using the repository browser.