Ticket #20287: Portfile

File Portfile, 2.6 KB (added by oksmith77, 15 years ago)

Updated Portfile. Now it gets the source from SourceForge.

Line 
1# $Id: Portfile 32256 2007-12-23 09:18:47Z ryandesign@macports.org $
2
3PortSystem      1.0
4name            gplcver
5version         2.12a
6categories      science
7maintainers             nomaintainer
8description     Pragmatic C Software GPL Cver 2001
9
10long_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
19homepage        http://sourceforge.net/projects/gplcver
20platforms       darwin
21master_sites    sourceforge:gplcver
22checksums       md5 857a15a9ebc8ef63ece01502509cbeb7 \
23                                sha1 946bb35b6279646c6e10c309922ed17deb2aca8a \
24                                rmd160 5af004b345142ac5400c9defc7125bbe127d2c49
25use_bzip2       yes
26distname        ${name}-${version}.src
27
28use_configure   no
29
30build.dir       "${worksrcpath}/src"
31build.target     -f makefile.osx cver
32
33patchfiles      patch-inst_tst.sh.diff
34
35post-configure  {
36
37    # eliminate unneeded flags
38
39    reinplace "s|^ARCHFLGS= -mcpu=powerpc||g" ${worksrcpath}/src/makefile.osx
40}
41
42destroot {
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
85test.run    yes
86test.cmd    "${worksrcpath}/tests_and_examples/install.tst/inst_tst.sh"
87test.target
88test.dir    "${worksrcpath}/tests_and_examples/install.tst"
89