Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 10:16:48 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r504533 - in head/cad/gplcver: . files
Message-ID:  <201906191016.x5JAGmXA021210@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Jun 19 10:16:48 2019
New Revision: 504533
URL: https://svnweb.freebsd.org/changeset/ports/504533

Log:
  - Fix the checks to avoid using `sys/dir.h' and thus undeprecate
  - Define LICENSE (GPLv2) and install supplied documentation files

Added:
  head/cad/gplcver/files/patch-src_v__fx.c   (contents, props changed)
Modified:
  head/cad/gplcver/Makefile
  head/cad/gplcver/files/patch-src-v_src3.c

Modified: head/cad/gplcver/Makefile
==============================================================================
--- head/cad/gplcver/Makefile	Wed Jun 19 10:14:34 2019	(r504532)
+++ head/cad/gplcver/Makefile	Wed Jun 19 10:16:48 2019	(r504533)
@@ -10,8 +10,7 @@ DISTNAME=	${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
 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>

Modified: head/cad/gplcver/files/patch-src-v_src3.c
==============================================================================
--- head/cad/gplcver/files/patch-src-v_src3.c	Wed Jun 19 10:14:34 2019	(r504532)
+++ head/cad/gplcver/files/patch-src-v_src3.c	Wed Jun 19 10:16:48 2019	(r504533)
@@ -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? */

Added: head/cad/gplcver/files/patch-src_v__fx.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/gplcver/files/patch-src_v__fx.c	Wed Jun 19 10:16:48 2019	(r504533)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906191016.x5JAGmXA021210>