From 4f2e4eb04ab4af687945f501dd429b9db0990b01 Mon Sep 17 00:00:00 2001 From: miwi Date: Sun, 27 Nov 2011 09:53:04 +0000 Subject: - Update to version 2009.12.07 PR: 162852 Submitted by: Ports Fury Feature safe: yes --- cad/gnucap/Makefile | 41 ++++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) (limited to 'cad/gnucap/Makefile') diff --git a/cad/gnucap/Makefile b/cad/gnucap/Makefile index 07c029f5d88a..4f1f133abed6 100644 --- a/cad/gnucap/Makefile +++ b/cad/gnucap/Makefile @@ -7,8 +7,7 @@ # PORTNAME= gnucap -PORTVERSION= 2008.06.08 -PORTREVISION= 1 +PORTVERSION= 2009.12.07 CATEGORIES= cad MASTER_SITES= http://www.gnucap.org/devel/ \ http://www.gnucap.org/devel/archive/ @@ -17,18 +16,38 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/./-/g} MAINTAINER= ports@FreeBSD.org COMMENT= The GNU Circuit Analysis Package +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/${PORTNAME} - -OPTIONS= READLINE "Enable commandline features via readline" on +MAKE_JOBS_SAFE= yes MAN1= gnucap.1 gnucap-ibis.1 - -.include - -.if !defined(WITHOUT_READLINE) || exists(${LOCALBASE}/lib/libreadline.so.6) -LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline +PORTDOCS= * +PORTEXAMPLES= * +PLIST_FILES= bin/gnucap bin/gnucap-modelgen + +post-patch: + ${REINPLACE_CMD} -e \ + '/^SUBDIRS/s|doc examples||' ${WRKSRC}/Makefile.in + +post-install: + ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${MANPREFIX}/man/man1 +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/acs-tutorial ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/history ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/relnotes.* ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/whatisit ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/runall ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.c ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.ckt ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.doc ${EXAMPLESDIR} .endif -.include +.include -- cgit