1 | # $Id: Portfile 32256 2007-12-23 09:18:47Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name gplcver |
---|
5 | version 2.12a |
---|
6 | categories science |
---|
7 | maintainers nomaintainer |
---|
8 | description Pragmatic C Software GPL Cver 2001 |
---|
9 | |
---|
10 | long_description \ |
---|
11 | GPL Cver is a Verilog HDL simulator that is released under \ |
---|
12 | the GNU General Public License. GPL Cver is a full \ |
---|
13 | 1995 P1364 Verilog standard HDL simulator. It also implements \ |
---|
14 | some of the 2001 P1364 standard features including all three \ |
---|
15 | PLI interfaces (tf_, acc_ and vpi_) as defined in the 2001 \ |
---|
16 | Language Reference Manual (LRM). Cver is a full featured \ |
---|
17 | IEEE P1364 Verilog simulator. |
---|
18 | |
---|
19 | homepage http://sourceforge.net/projects/gplcver |
---|
20 | platforms darwin |
---|
21 | master_sites sourceforge:gplcver |
---|
22 | checksums md5 857a15a9ebc8ef63ece01502509cbeb7 \ |
---|
23 | sha1 946bb35b6279646c6e10c309922ed17deb2aca8a \ |
---|
24 | rmd160 5af004b345142ac5400c9defc7125bbe127d2c49 |
---|
25 | use_bzip2 yes |
---|
26 | distname ${name}-${version}.src |
---|
27 | |
---|
28 | use_configure no |
---|
29 | |
---|
30 | build.dir "${worksrcpath}/src" |
---|
31 | build.target -f makefile.osx cver |
---|
32 | |
---|
33 | patchfiles patch-inst_tst.sh.diff |
---|
34 | |
---|
35 | post-configure { |
---|
36 | |
---|
37 | # eliminate unneeded flags |
---|
38 | |
---|
39 | reinplace "s|^ARCHFLGS= -mcpu=powerpc||g" ${worksrcpath}/src/makefile.osx |
---|
40 | } |
---|
41 | |
---|
42 | destroot { |
---|
43 | |
---|
44 | # install executable |
---|
45 | |
---|
46 | xinstall -m 755 -W ${worksrcpath} bin/cver ${destroot}${prefix}/bin |
---|
47 | |
---|
48 | # create directory for everything else |
---|
49 | |
---|
50 | set docdir "${destroot}${prefix}/share/doc/${name}" |
---|
51 | xinstall -m 755 -d ${docdir} |
---|
52 | |
---|
53 | # copy doc files |
---|
54 | |
---|
55 | file copy ${worksrcpath}/COPYING ${docdir} |
---|
56 | file copy ${worksrcpath}/Changelog ${docdir} |
---|
57 | file copy ${worksrcpath}/INSTALL ${docdir} |
---|
58 | file copy ${worksrcpath}/LICENSE ${docdir} |
---|
59 | file copy ${worksrcpath}/NEW.CVER.2001.RELEASE.NOTES ${docdir} |
---|
60 | file copy ${worksrcpath}/OUR_PHILOSOPHY ${docdir} |
---|
61 | file copy ${worksrcpath}/README ${docdir} |
---|
62 | file copy ${worksrcpath}/doc ${docdir} |
---|
63 | |
---|
64 | # install the systasks man page |
---|
65 | |
---|
66 | file copy ${worksrcpath}/doc/systasks.1 ${destroot}${prefix}/share/man/man1/ |
---|
67 | file delete ${docdir}/systasks.1 |
---|
68 | |
---|
69 | # create directory for everything else |
---|
70 | |
---|
71 | set instdir "${destroot}${prefix}/share/${name}" |
---|
72 | xinstall -m 755 -d ${instdir} |
---|
73 | |
---|
74 | # copy files |
---|
75 | |
---|
76 | file copy ${worksrcpath}/pli_incs ${instdir} |
---|
77 | file copy ${worksrcpath}/pli_src ${instdir} |
---|
78 | file copy ${worksrcpath}/tests_and_examples ${instdir} |
---|
79 | file copy ${worksrcpath}/ver_src ${instdir} |
---|
80 | |
---|
81 | } |
---|
82 | |
---|
83 | # Run the installation tests |
---|
84 | |
---|
85 | test.run yes |
---|
86 | test.cmd "${worksrcpath}/tests_and_examples/install.tst/inst_tst.sh" |
---|
87 | test.target |
---|
88 | test.dir "${worksrcpath}/tests_and_examples/install.tst" |
---|
89 | |
---|