From 4ee8c8d078af6ee4ddcdadb37f93fdc98cb1f6f7 Mon Sep 17 00:00:00 2001 From: Ion-Mihai Tetcu Date: Wed, 10 Jun 2009 06:11:44 +0000 Subject: [PATCH] - 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 --- cad/sceptre/Makefile | 16 ++++++++++++---- cad/sceptre/files/pkg-message.in | 7 +++++++ cad/sceptre/pkg-message | 3 --- 3 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 cad/sceptre/files/pkg-message.in delete mode 100644 cad/sceptre/pkg-message 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 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 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.