aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-10 06:11:44 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-10 06:11:44 +0000
commit4ee8c8d078af6ee4ddcdadb37f93fdc98cb1f6f7 (patch)
treecb11a04b9e67947ba8138c26e0118bacd82f7d6a /cad
parentdc69142c79aa3a6d7ca0ed1e74690b0f8c784557 (diff)
downloadports-4ee8c8d078af6ee4ddcdadb37f93fdc98cb1f6f7.tar.gz
ports-4ee8c8d078af6ee4ddcdadb37f93fdc98cb1f6f7.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/sceptre/Makefile16
-rw-r--r--cad/sceptre/files/pkg-message.in7
-rw-r--r--cad/sceptre/pkg-message3
3 files changed, 19 insertions, 7 deletions
diff --git a/cad/sceptre/Makefile b/cad/sceptre/Makefile
index 21905aa98150..111cbff2aae8 100644
--- a/cad/sceptre/Makefile
+++ b/cad/sceptre/Makefile
@@ -7,13 +7,17 @@
PORTNAME= sceptre
PORTVERSION= 00.317
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= cad
MASTER_SITES= http://ftp.osuosl.org/pub/FreeBSD/distfiles/
MAINTAINER= maho@FreeBSD.org
COMMENT= SCEPTRE is a general purpose circuit analysis program
+.if !defined(NOPORTDOCS)
+SUB_FILES+= pkg-message
+.endif
+
.include <bsd.port.pre.mk>
USE_FORTRAN= g77
@@ -24,11 +28,15 @@ BROKEN= Internal compiler error
NO_WRKSUBDIR= YES
+post-extract:
+ @${REINPLACE_CMD} 's,INSTDIR = /usr/local,INSTDIR = ${PREFIX},' \
+ ${WRKSRC}/Makefile
+
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/sceptre
- ${INSTALL_DATA} ${WRKSRC}/doc/doc_en.pdf ${PREFIX}/share/doc/sceptre/doc_en.pdf
- ${INSTALL_DATA} ${WRKSRC}/doc/doc_ger.pdf ${PREFIX}/share/doc/sceptre/doc_ger.pdf
+ ${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
+ @${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>
diff --git a/cad/sceptre/files/pkg-message.in b/cad/sceptre/files/pkg-message.in
new file mode 100644
index 000000000000..2285e2e1ecc7
--- /dev/null
+++ b/cad/sceptre/files/pkg-message.in
@@ -0,0 +1,7 @@
+
+======================================================================
+This package does not include online documentation. You will find PDF
+documents in English and German in the directory
+%%DOCSDIR%%
+======================================================================
+
diff --git a/cad/sceptre/pkg-message b/cad/sceptre/pkg-message
deleted file mode 100644
index 2b7478fa8d00..000000000000
--- a/cad/sceptre/pkg-message
+++ /dev/null
@@ -1,3 +0,0 @@
-This package does not include online documentation. You will find PDF
-documents in English and German in the directory
-/usr/local/share/doc/sceptre.