Ticket #14238: Portfile

File Portfile, 1.5 KB (added by michipili (Michael Grünewald), 17 years ago)
Line 
1# $Id$
2
3PortSystem              1.0
4
5name                    icon
6version                 9.4.3
7categories              lang
8maintainers             michael.grunewald@laposte.net
9description             The Icon Programming Language
10long_description        Icon is a high-level, general-purpose programming \
11                        language with a large repertoire of features for \
12                        processing data structures and character strings. \
13                        Icon is an imperative, procedural language with a \
14                        syntax reminiscent of C and Pascal, but with \
15                        semantics at a much higher level.
16homepage                http://www.cs.arizona.edu/icon/
17platforms               darwin
18master_sites            http://www.cs.arizona.edu/icon/ftp/packages/unix/
19distfiles               icon.v943src.tgz
20checksums               md5 4740b1fc5caf2fe7409367923dffe607 \
21                        sha1 92bd3347807b333fb903edf61a2805f2e1159577 \
22                        rmd160 af75af7f106920cd59a7f8ac85954aa472ae78e7
23
24worksrcdir              icon.v943src
25
26#
27# Operations
28#
29
30configure {
31  cd ${worksrcpath}
32  system "make X-Configure name=macintosh"
33}
34
35build.target            All
36
37destroot {
38  set icon_dir "${destroot}${prefix}/libexec/${name}"
39  set iconbin_dir "../libexec/${name}/bin"
40  set icondoc_dir "../libexec/${name}/doc"
41  set portbin_dir "${destroot}${prefix}/bin"
42  set portdoc_dir "${destroot}${prefix}/share/doc"
43  xinstall -d "${portbin_dir}"
44  xinstall -d "${portdoc_dir}"
45  cd ${worksrcpath}
46  system "make Install dest=${icon_dir}"
47  cd "${portbin_dir}"
48  system "ln -s ${iconbin_dir}/icon"
49  system "ln -s ${iconbin_dir}/icont"
50  system "ln -s ${iconbin_dir}/iconx"
51  system "ln -s ${iconbin_dir}/vib"
52  cd "${portdoc_dir}"
53  system "ln -s ${icondoc_dir} ${name}-${version}"
54}