- 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:
Ion-Mihai Tetcu 2009-06-10 06:11:44 +00:00
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

View file

@ -7,13 +7,17 @@
PORTNAME= sceptre PORTNAME= sceptre
PORTVERSION= 00.317 PORTVERSION= 00.317
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= cad CATEGORIES= cad
MASTER_SITES= http://ftp.osuosl.org/pub/FreeBSD/distfiles/ MASTER_SITES= http://ftp.osuosl.org/pub/FreeBSD/distfiles/
MAINTAINER= maho@FreeBSD.org MAINTAINER= maho@FreeBSD.org
COMMENT= SCEPTRE is a general purpose circuit analysis program COMMENT= SCEPTRE is a general purpose circuit analysis program
.if !defined(NOPORTDOCS)
SUB_FILES+= pkg-message
.endif
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
USE_FORTRAN= g77 USE_FORTRAN= g77
@ -24,11 +28,15 @@ BROKEN= Internal compiler error
NO_WRKSUBDIR= YES NO_WRKSUBDIR= YES
post-extract:
@${REINPLACE_CMD} 's,INSTDIR = /usr/local,INSTDIR = ${PREFIX},' \
${WRKSRC}/Makefile
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/sceptre ${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/doc_en.pdf ${PREFIX}/share/doc/sceptre/doc_en.pdf ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/doc_ger.pdf ${PREFIX}/share/doc/sceptre/doc_ger.pdf @${CAT} ${PKGMESSAGE}
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.post.mk>

View 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%%
======================================================================

View file

@ -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.