source: trunk/dports/science/gplcver/Portfile

Last change on this file was 93764, checked in by ryandesign@…, 5 years ago

gplcver: remove ineffectual --export-dynamic which causes a build failure with clang (#34668); license GPL-2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 93764 2012-05-30 12:05:44Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            gplcver
7version         2.12a
8revision        1
9categories      science
10maintainers             nomaintainer
11license         GPL-2
12
13description     GPL Cver is an open-source, interpreted Verilog simulator by Pragmatic C Software
14
15long_description \
16                Open-source interpreted Verilog simulator with a feature set and performance \
17                similar to Verilog-XL. Implements all IEEE 1364-1995 features along with some \
18                Verilog-2001 features. Full support for Verilog PLIs.
19
20homepage        http://sourceforge.net/projects/gplcver
21platforms       darwin
22master_sites    sourceforge:project/gplcver/gplcver/${version}
23checksums       md5    857a15a9ebc8ef63ece01502509cbeb7 \
24                                sha1   946bb35b6279646c6e10c309922ed17deb2aca8a \
25                                rmd160 5af004b345142ac5400c9defc7125bbe127d2c49
26use_bzip2       yes
27distname        ${name}-${version}.src
28
29use_configure   no
30
31variant universal {}
32
33build.dir       "${worksrcpath}/src"
34build.args      -f makefile.osx \
35                CC=${configure.cc} \
36                ARCHFLGS="[get_canonical_archflags cc]"
37
38patchfiles      patch-inst_tst.sh.diff \
39                patch-makefile.osx.diff
40
41destroot {
42
43    # install executable
44
45    xinstall -m 755 -W ${worksrcpath} bin/cver ${destroot}${prefix}/bin
46
47    # create directory for everything else
48   
49    set docdir "${destroot}${prefix}/share/doc/"
50    xinstall -m 755 -d ${docdir}
51    file copy ${worksrcpath}/doc ${docdir}
52    file rename ${docdir}/doc ${docdir}${name}
53    set docdir "${docdir}${name}"
54    xinstall -m 644 -W ${worksrcpath} \
55        COPYING Changelog LICENSE NEW.CVER.2001.RELEASE.NOTES OUR_PHILOSOPHY README \
56        ${docdir}
57    file copy ${worksrcpath}/doc/README ${docdir}/README_doc
58
59    # install the systasks man page
60   
61    file copy ${worksrcpath}/doc/systasks.1 ${destroot}${prefix}/share/man/man1/
62    file delete ${docdir}/systasks.1
63   
64    # create directory for everything else
65   
66    set exampledir "${destroot}${prefix}/share/examples/${name}"
67    xinstall -m 755 -d ${exampledir}
68
69    # copy files
70
71    file copy ${worksrcpath}/pli_incs ${exampledir}
72    file copy ${worksrcpath}/pli_src ${exampledir}
73    file copy ${worksrcpath}/tests_and_examples ${exampledir}
74    file copy ${worksrcpath}/ver_src ${exampledir}
75   
76}
77
78#  Run the installation tests
79
80test.run    yes
81test.cmd    "${worksrcpath}/tests_and_examples/install.tst/inst_tst.sh"
82test.target
83test.dir    "${worksrcpath}/tests_and_examples/install.tst"
84
Note: See TracBrowser for help on using the repository browser.