- use DOCSDIR and EXAMPLESDIR

- fix plist with NOPORT*
- bump PORTREVISON

Prompted by:	QA Tindy run
Approved by:	maintainer timeout to BotMail
This commit is contained in:
Ion-Mihai Tetcu 2008-07-23 20:36:50 +00:00
parent 7078de9f53
commit ef97e06269
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217389
2 changed files with 19 additions and 17 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= Cgraph
PORTVERSION= 2.04
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.tobez.org/download/port-mirrors/graphics/Cgraph/
DISTNAME= ${PORTNAME}${PORTVERSION}
@ -16,6 +16,8 @@ MAINTAINER= tobez@FreeBSD.org
COMMENT= A PostScript plotting library in C
WRKSRC= ${WRKDIR}/Cgraph/source
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:L}
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:L}
USE_LDCONFIG= yes
@ -24,16 +26,16 @@ post-extract:
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/cgraph
@${INSTALL_DATA} ${WRKSRC}/../docs/cgraph.ps ${PREFIX}/share/doc/cgraph
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/../docs/cgraph.ps ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${PREFIX}/share/examples/cgraph
@${INSTALL_DATA} ${WRKSRC}/../examples/minimal/CGminimal.c ${PREFIX}/share/examples/cgraph
@${INSTALL_DATA} ${WRKSRC}/../examples/dash/dashlist.c ${PREFIX}/share/examples/cgraph
@${INSTALL_DATA} ${WRKSRC}/../examples/marker/markerlist.c ${PREFIX}/share/examples/cgraph
@${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFopt-lrLog.c ${PREFIX}/share/examples/cgraph
@${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFampspect.dat ${PREFIX}/share/examples/cgraph
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/../examples/minimal/CGminimal.c \
${WRKSRC}/../examples/dash/dashlist.c \
${WRKSRC}/../examples/marker/markerlist.c \
${WRKSRC}/../examples/loglog/TFopt-lrLog.c \
${WRKSRC}/../examples/loglog/TFampspect.dat ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View file

@ -3,11 +3,11 @@ lib/libcgraph.a
lib/libcgraph_p.a
lib/libcgraph.so
lib/libcgraph.so.2
share/doc/cgraph/cgraph.ps
share/examples/cgraph/CGminimal.c
share/examples/cgraph/dashlist.c
share/examples/cgraph/markerlist.c
share/examples/cgraph/TFopt-lrLog.c
share/examples/cgraph/TFampspect.dat
@dirrm share/doc/cgraph
@dirrm share/examples/cgraph
%%PORTDOCS%%%%DOCSDIR%%/cgraph.ps
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/CGminimal.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dashlist.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/markerlist.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/TFopt-lrLog.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/TFampspect.dat
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%