mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- fix build install / plist with custom PREFIX [1]
- pkg-message --> files/pkg-message.in; [2] - don't hardcode DOCSDIR to default in it - display it only when NOPORTDOCS it's not defined - rework PORTDOCS installation a little [3] - bump PORTREVISION [3] Submitted by: Sahil Tandon [1][3], itetcu@ [2] Reported by: QATty [1] Approved by: maintainer
This commit is contained in:
parent
dc69142c79
commit
4ee8c8d078
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235529
3 changed files with 19 additions and 7 deletions
|
@ -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>
|
||||
|
|
7
cad/sceptre/files/pkg-message.in
Normal file
7
cad/sceptre/files/pkg-message.in
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
======================================================================
|
||||
This package does not include online documentation. You will find PDF
|
||||
documents in English and German in the directory
|
||||
%%DOCSDIR%%
|
||||
======================================================================
|
||||
|
|
@ -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.
|
Loading…
Add table
Reference in a new issue