1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- Fix the checks to avoid using `sys/dir.h' and thus undeprecate

- Define LICENSE (GPLv2) and install supplied documentation files
This commit is contained in:
Alexey Dokuchaev 2019-06-19 10:16:48 +00:00
parent 72fcdeb547
commit 10f31d1c83
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504533
3 changed files with 43 additions and 5 deletions

View File

@ -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>

View File

@ -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? */

View File

@ -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 */