aboutsummaryrefslogtreecommitdiff
path: root/cad/gplcver
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2019-06-19 10:16:48 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2019-06-19 10:16:48 +0000
commit10f31d1c831ef517df443445470e95b32271a63c (patch)
tree6389309bd7848390a9080fe7652ae708bd414c93 /cad/gplcver
parent72fcdeb5471b54252cac129306d7857ab60cfff6 (diff)
downloadports-10f31d1c831ef517df443445470e95b32271a63c.tar.gz
ports-10f31d1c831ef517df443445470e95b32271a63c.zip
- Fix the checks to avoid using `sys/dir.h' and thus undeprecate
- Define LICENSE (GPLv2) and install supplied documentation files
Notes
Notes: svn path=/head/; revision=504533
Diffstat (limited to 'cad/gplcver')
-rw-r--r--cad/gplcver/Makefile13
-rw-r--r--cad/gplcver/files/patch-src-v_src3.c15
-rw-r--r--cad/gplcver/files/patch-src_v__fx.c20
3 files changed, 43 insertions, 5 deletions
diff --git a/cad/gplcver/Makefile b/cad/gplcver/Makefile
index 80134b90ce39..7ac17c53d381 100644
--- a/cad/gplcver/Makefile
+++ b/cad/gplcver/Makefile
@@ -10,8 +10,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}.src
MAINTAINER= ports@FreeBSD.org
COMMENT= Verilog HDL simulator
-DEPRECATED= Abandonware using sys/dir.h
-EXPIRATION_DATE= 2019-07-12
+LICENSE= GPLv2
USES= tar:bzip2 gmake
@@ -19,8 +18,18 @@ BUILD_WRKSRC= ${WRKSRC}/src
MAKEFILE= makefile.freebsd
PLIST_FILES= bin/cver
+PORTDOCS= *
+
+OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/cver ${STAGEDIR}${PREFIX}/bin
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Changelog \
+ ${WRKSRC}/NEW.CVER.2001.RELEASE.NOTES \
+ ${WRKSRC}/OUR_PHILOSOPHY ${STAGEDIR}${DOCSDIR}
+
.include <bsd.port.mk>
diff --git a/cad/gplcver/files/patch-src-v_src3.c b/cad/gplcver/files/patch-src-v_src3.c
index c557afa3d71b..a9c626c2e0c8 100644
--- a/cad/gplcver/files/patch-src-v_src3.c
+++ b/cad/gplcver/files/patch-src-v_src3.c
@@ -1,6 +1,15 @@
---- src/v_src3.c.orig Fri Jan 20 09:40:09 2006
-+++ src/v_src3.c Fri Jan 20 09:41:23 2006
-@@ -49,7 +49,7 @@
+--- src/v_src3.c.orig 2007-05-30 15:25:49 UTC
++++ src/v_src3.c
+@@ -40,7 +40,7 @@
+ #include <sys/stat.h>
+ #endif
+
+-#if defined(__CYGWIN32__) || defined(__SVR4) || defined(__hpux)
++#if defined(__CYGWIN32__) || defined(__SVR4) || defined(__hpux) || defined(__FreeBSD__)
+ #include <dirent.h>
+ #else
+ #include <sys/dir.h>
+@@ -51,7 +51,7 @@
#endif
/* REMOVEME - no longer supporting SunOS - maybe needed for hpux? */
diff --git a/cad/gplcver/files/patch-src_v__fx.c b/cad/gplcver/files/patch-src_v__fx.c
new file mode 100644
index 000000000000..9eb74f2f1a17
--- /dev/null
+++ b/cad/gplcver/files/patch-src_v__fx.c
@@ -0,0 +1,20 @@
+--- src/v_fx.c.orig 2007-05-30 15:24:38 UTC
++++ src/v_fx.c
+@@ -37,7 +37,7 @@
+
+ #include <sys/types.h>
+
+-#if defined(__SVR4) || defined(__hpux) || defined(__CYGWIN32__)
++#if defined(__SVR4) || defined(__hpux) || defined(__CYGWIN32__) || defined(__FreeBSD__)
+ #include <dirent.h>
+ #else
+ #include <sys/dir.h>
+@@ -798,7 +798,7 @@ static void bld_ylb_dirfiles(struct vylib_t *vyp)
+ register int32 last_fi;
+ register int32 numdfils, siz_mydir, bytlen, obytlen;
+ DIR *dirp;
+-#if defined(__SVR4) || defined(__hpux) || defined(__CYGWIN32__)
++#if defined(__SVR4) || defined(__hpux) || defined(__CYGWIN32__) || defined(__FreeBSD__)
+ struct dirent *dp;
+ #else
+ /* all BSD cases and special case interface for non unices */