[23691] trunk/dports/science
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 6 14:13:45 PDT 2007
Revision: 23691
http://trac.macosforge.org/projects/macports/changeset/23691
Author: markd at macports.org
Date: 2007-04-06 14:13:45 -0700 (Fri, 06 Apr 2007)
Log Message:
-----------
Closes #10977. New port.
Added Paths:
-----------
trunk/dports/science/gplcver/
trunk/dports/science/gplcver/Portfile
trunk/dports/science/gplcver/files/
trunk/dports/science/gplcver/files/patch-inst_tst.sh.diff
Added: trunk/dports/science/gplcver/Portfile
===================================================================
--- trunk/dports/science/gplcver/Portfile (rev 0)
+++ trunk/dports/science/gplcver/Portfile 2007-04-06 21:13:45 UTC (rev 23691)
@@ -0,0 +1,88 @@
+# $Id$
+
+PortSystem 1.0
+name gplcver
+version 2.11a
+categories science
+maintainers nomaintainer at macports.org
+description Pragmatic C Software GPL Cver 2001
+
+long_description \
+ GPL Cver is a Verilog HDL simulator that is released under \
+ the GNU General Public License. GPL Cver is a full \
+ 1995 P1364 Verilog standard HDL simulator. It also implements \
+ some of the 2001 P1364 standard features including all three \
+ PLI interfaces (tf_, acc_ and vpi_) as defined in the 2001 \
+ Language Reference Manual (LRM). Cver is a full featured \
+ IEEE P1364 Verilog simulator.
+
+homepage http://www.pragmatic-c.com/gpl-cver/
+platforms darwin
+master_sites http://www.pragmatic-c.com/gpl-cver/downloads
+checksums md5 4967e78c299bdfdb0c9f2dcd4803e734
+use_bzip2 yes
+distname ${name}-${version}.src
+
+use_configure no
+
+build.dir "${worksrcpath}/src"
+build.target -f makefile.osx cver
+
+patchfiles patch-inst_tst.sh.diff
+
+post-configure {
+
+ # eliminate unneeded flag with those hope that this
+ # Portfile will work with Intel Macs
+
+ reinplace "s|^ARCHFLGS= -mcpu=powerpc||g" ${worksrcpath}/src/makefile.osx
+}
+
+destroot {
+
+ # install executable
+
+ xinstall -m 755 -W ${worksrcpath} bin/cver ${destroot}/${prefix}/bin
+
+ # create directory for everything else
+
+ set docdir "${destroot}${prefix}/share/doc/${name}"
+ xinstall -m 755 -d ${docdir}
+
+ # copy doc files
+
+ file copy ${worksrcpath}/COPYING ${docdir}
+ file copy ${worksrcpath}/Changelog ${docdir}
+ file copy ${worksrcpath}/INSTALL ${docdir}
+ file copy ${worksrcpath}/LICENSE ${docdir}
+ file copy ${worksrcpath}/NEW.CVER.2001.RELEASE.NOTES ${docdir}
+ file copy ${worksrcpath}/OUR_PHILOSOPHY ${docdir}
+ file copy ${worksrcpath}/README ${docdir}
+ file copy ${worksrcpath}/doc ${docdir}
+
+ # install the systasks man page
+
+ file copy ${worksrcpath}/doc/systasks.1 ${destroot}${prefix}/share/man/man1/
+ file delete ${docdir}/systasks.1
+
+ # create directory for everything else
+
+ set instdir "${destroot}${prefix}/share/${name}"
+ xinstall -m 755 -d ${instdir}
+
+ # copy files
+
+ file copy ${worksrcpath}/pli_incs ${instdir}
+ file copy ${worksrcpath}/pli_src ${instdir}
+ file copy ${worksrcpath}/tests_and_examples ${instdir}
+ file copy ${worksrcpath}/ver_src ${instdir}
+
+}
+
+# Run the installation tests
+
+test.run yes
+test.cmd "${worksrcpath}/tests_and_examples/install.tst/inst_tst.sh"
+test.target
+test.dir "${worksrcpath}/tests_and_examples/install.tst"
+
Property changes on: trunk/dports/science/gplcver/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/science/gplcver/files/patch-inst_tst.sh.diff
===================================================================
--- trunk/dports/science/gplcver/files/patch-inst_tst.sh.diff (rev 0)
+++ trunk/dports/science/gplcver/files/patch-inst_tst.sh.diff 2007-04-06 21:13:45 UTC (rev 23691)
@@ -0,0 +1,196 @@
+--- tests_and_examples/install.tst/inst_tst.sh.orig Sat Sep 16 22:32:18 2006
++++ tests_and_examples/install.tst/inst_tst.sh Sun Sep 17 00:25:34 2006
+@@ -1,5 +1,4 @@
+ #!/bin/sh
+-# install test procedures
+
+ CVER="../../bin/cver -q "
+
+@@ -7,90 +6,162 @@
+ then
+ echo "ERROR - there is no cver in ../../bin/"
+ echo "Must make in src/ directory"
+- exit;
++ exit 1
+ fi
+
+ $CVER instid.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log instid.plg
++cmp -s verilog.log instid.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER instpnd3.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log instpnd3.plg
++cmp -s verilog.log instpnd3.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER aspike1.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log aspike1.plg
++cmp -s verilog.log aspike1.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
++
+ $CVER +warn_canceled_e aspike1.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log aspike1a.plg
++cmp -s verilog.log aspike1a.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
++
+ $CVER +show_canceled_e aspike1.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log aspike1b.plg
++cmp -s verilog.log aspike1b.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
++
+ $CVER +show_canceled_e +pulse_e_style_ondetect aspike1.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log aspike1c.plg
++cmp -s verilog.log aspike1c.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
++
+ $CVER aspike1.v -et >/dev/null
+ ./rmlic.pl
+-diff verilog.log aspike1d.plg
++cmp -s verilog.log aspike1d.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER +warn_canceled_e -v JK_Q.v -v JK_QBAR.v udpjkff.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log udpjkff.plg
++cmp -s verilog.log udpjkff.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER xx2bdel.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log xx2bdel.plg
++cmp -s verilog.log xx2bdel.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
++
+ $CVER xx2bpth.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log xx2bpth.plg
++cmp -s verilog.log xx2bpth.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
++
+ $CVER xx2bpth2.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log xx2bpth2.plg
++cmp -s verilog.log xx2bpth2.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER c880.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log c880.plg
++cmp -s verilog.log c880.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER -i force01.inp force01.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log force01.plg
++cmp -s verilog.log force01.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER smrd04.v -f smrd04.vc >/dev/null
+ ./rmlic.pl
+-diff verilog.log smrd04.plg
++cmp -s verilog.log smrd04.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER gatenots.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log gatenots.plg
++cmp -s verilog.log gatenots.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER arms_sim.v armscnt.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log arms.plg
++cmp -s verilog.log arms.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER -f dfpsetd.vc >/dev/null
+ ./rmlic.pl
+-diff verilog.log dfpsetd.plg
++cmp -s verilog.log dfpsetd.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER -f mipdnot1.vc >/dev/null
+ ./rmlic.pl
+-diff verilog.log mipdnot1.plg
++cmp -s verilog.log mipdnot1.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER -f sdfia04.vc >/dev/null
+ ./rmlic.pl
+-diff verilog.log sdfia04.plg
++cmp -s verilog.log sdfia04.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER dffn.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log dffn.plg
++cmp -s verilog.log dffn.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER xplipnd.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log xplipnd.plg
++cmp -s verilog.log xplipnd.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
+
+ $CVER defsplt1.v >/dev/null
+ ./rmlic.pl
+-diff verilog.log defsplt1.plg
++cmp -s verilog.log defsplt1.plg
++if [ "$?" -ne 0 ]; then
++ exit 1
++fi
++
+
+-echo ">>>> Install test completed (this should be only message printed)."
+-echo " "
++exit 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070406/1cd7d97c/attachment.html
More information about the macports-changes
mailing list