View | Details | Raw Unified | Return to bug 232464
Collapse All | Expand All

(-)cad/gnucap/Makefile (-32 / +28 lines)
Lines 2-56 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	gnucap
4
PORTNAME=	gnucap
5
DISTVERSION=	2009-12-07
5
DISTVERSION=	2013-04-23
6
PORTREVISION=	1
7
CATEGORIES=	cad
6
CATEGORIES=	cad
8
MASTER_SITES=	http://www.gnucap.org/devel/ \
7
MASTER_SITES=	http://www.gnucap.org/devel/ \
9
		http://www.gnucap.org/devel/archive/
8
		http://www.gnucap.org/devel/archive/
10
9
11
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
12
COMMENT=	The GNU Circuit Analysis Package
11
COMMENT=	GNU Circuit Analysis Package
13
12
14
LICENSE=	GPLv3
13
LICENSE=	GPLv3
14
LICENSE_FILE=	${WRKSRC}/COPYING
15
15
16
OPTIONS_DEFINE=	READLINE DOCS EXAMPLES
16
BROKEN_mips=	defined in discarded section
17
OPTIONS_DEFAULT=READLINE
17
BROKEN_mips64=	defined in discarded section
18
READLINE_DESC=	Enable readline support
19
18
20
USES=		gmake
19
USES=		gmake
20
USE_LDCONFIG=	yes
21
21
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
23
CONFIGURE_ENV=	prefix=${STAGEDIR}${PREFIX}
22
24
23
PORTDOCS=	*
25
MAKE_ARGS=	CCFLAGS="${CXXFLAGS}" CCC=c++
24
PORTEXAMPLES=	*
26
CXXFLAGS+=	-fPIC -I${PREFIX}/include -I${WRKSRC}/include
27
ALL_TARGET=	gnucap
28
25
PLIST_FILES=	bin/gnucap bin/gnucap-modelgen \
29
PLIST_FILES=	bin/gnucap bin/gnucap-modelgen \
26
		man/man1/gnucap-ibis.1.gz man/man1/gnucap.1.gz
30
		lib/libgnucap-default-plugins.so \
31
		lib/libgnucap.so
27
32
28
READLINE_USES=		readline
33
PORTDOCS=	README
29
READLINE_CONFIGURE_OFF=	--with-readline=no
34
EXAMPLES=	runl *c *.ckt *.doc
30
35
36
OPTIONS_DEFINE=	DOCS
37
31
post-patch:
38
post-patch:
32
	@${REINPLACE_CMD} -e \
39
	${FIND} -s ${WRKSRC} -name 'configure'|${XARGS} \
33
		'/^SUBDIRS/s|doc examples||' ${WRKSRC}/Makefile.in
40
		${REINPLACE_CMD} -e 's|g++|${CXX}|g'
34
.for i in src/ap_match.cc modelgen/ap_match.cc
35
	@${REINPLACE_CMD} -e \
36
		"s:strchr(str2, '|'):const_cast<char*>(strchr(str2, '|')):" \
37
		${WRKSRC}/${i}
38
.endfor
39
41
40
post-install:
42
do-install:
41
	${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
43
	${INSTALL_PROGRAM} ${WRKSRC}/main/O/gnucap ${WRKSRC}/modelgen/O/gnucap-modelgen \
44
		${STAGEDIR}${PREFIX}/bin
45
	${INSTALL_LIB} ${WRKSRC}/lib/O/libgnucap.so ${WRKSRC}/apps/O/*.so \
46
		${STAGEDIR}${PREFIX}/lib
47
42
post-install-DOCS-on:
48
post-install-DOCS-on:
43
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
49
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
44
	${INSTALL_DATA} ${WRKSRC}/doc/acs-tutorial ${STAGEDIR}${DOCSDIR}
50
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
45
	${INSTALL_DATA} ${WRKSRC}/doc/history ${STAGEDIR}${DOCSDIR}
51
	
46
	${INSTALL_DATA} ${WRKSRC}/doc/relnotes.* ${STAGEDIR}${DOCSDIR}
47
	${INSTALL_DATA} ${WRKSRC}/doc/whatisit ${STAGEDIR}${DOCSDIR}
48
post-install-EXAMPLES-on:
49
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
50
	${INSTALL_DATA} ${WRKSRC}/examples/README ${STAGEDIR}${EXAMPLESDIR}
51
	${INSTALL_DATA} ${WRKSRC}/examples/runall ${STAGEDIR}${EXAMPLESDIR}
52
	${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR}
53
	${INSTALL_DATA} ${WRKSRC}/examples/*.ckt ${STAGEDIR}${EXAMPLESDIR}
54
	${INSTALL_DATA} ${WRKSRC}/examples/*.doc ${STAGEDIR}${EXAMPLESDIR}
55
56
.include <bsd.port.mk>
52
.include <bsd.port.mk>
(-)cad/gnucap/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (gnucap-2009-12-07.tar.gz) = f6cd8fc0e0636a1aaa50def5a3db2a667b4fff3cb7a34fa0710753082e74e65e
1
TIMESTAMP = 1539947960
2
SIZE (gnucap-2009-12-07.tar.gz) = 545578
2
SHA256 (gnucap-2013-04-23.tar.gz) = 814fe06dbd185a39bb5bd9a34c978fd204f9838c4a556de0e357c758088aba82
3
SIZE (gnucap-2013-04-23.tar.gz) = 377694
(-)cad/gnucap/files/patch-lib_c__attach.cc (+11 lines)
Line 0 Link Here
1
--- lib/c_attach.cc.orig	2018-10-19 21:02:54 UTC
2
+++ lib/c_attach.cc
3
@@ -27,7 +27,7 @@
4
 /*--------------------------------------------------------------------------*/
5
 namespace {
6
 /*--------------------------------------------------------------------------*/
7
-std::map<const std::string, void*> attach_list;
8
+std::map<std::string, void*> attach_list;
9
 /*--------------------------------------------------------------------------*/
10
 class CMD_ATTACH : public CMD {
11
 public:
(-)cad/gnucap/files/patch-modelgen__mg_.h (-10 / +10 lines)
Lines 1-6 Link Here
1
--- modelgen/mg_.h.orig	2009-12-08 08:19:15.000000000 +0900
1
--- modelgen/mg_.h.orig	2013-04-24 03:24:21 UTC
2
+++ modelgen/mg_.h	2012-10-14 00:54:09.000000000 +0900
2
+++ modelgen/mg_.h
3
@@ -108,6 +108,20 @@
3
@@ -108,6 +108,20 @@ class List_Base (public)
4
   size_t	 size()const	 {return _list.size();}
4
   size_t	 size()const	 {return _list.size();}
5
 };
5
 };
6
 /*--------------------------------------------------------------------------*/
6
 /*--------------------------------------------------------------------------*/
Lines 21-30 Link Here
21
 /* A "Collection" differs from a "List" in how it is parsed.
21
 /* A "Collection" differs from a "List" in how it is parsed.
22
  * Each parse of a "Collection" created one more object and stores
22
  * Each parse of a "Collection" created one more object and stores
23
  * it in the Collection.  The size of the Collection therefore grows by 1.
23
  * it in the Collection.  The size of the Collection therefore grows by 1.
24
@@ -200,20 +214,6 @@
24
@@ -198,20 +212,6 @@ class Collection (public)
25
       f << (**i);
26
     }
25
   }
27
   }
26
 };
28
-};
27
 /*--------------------------------------------------------------------------*/
29
-/*--------------------------------------------------------------------------*/
28
-class C_Comment
30
-class C_Comment
29
-  :public Base
31
-  :public Base
30
-{
32
-{
Lines 37-44 Link Here
37
-{
39
-{
38
-public:
40
-public:
39
-  void parse(CS& f);
41
-  void parse(CS& f);
40
-};
42
 };
41
-/*--------------------------------------------------------------------------*/
43
 /*--------------------------------------------------------------------------*/
42
 class Key
44
 class Key
43
   :public Base
44
 {

Return to bug 232464