1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Use ${PERL} instead of perl

Add ${DOCSDIR} support
Add NOPORTDOC compliance

PR:		29761
Submitted by:	pat@databits.net
This commit is contained in:
David W. Chapman Jr. 2001-09-03 23:09:04 +00:00
parent 7908b6f8f7
commit c8275d82db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47405
2 changed files with 16 additions and 15 deletions

View File

@ -40,13 +40,14 @@ do-install:
@/usr/bin/ranlib ${PREFIX}/lib/libuu.a
${INSTALL_DATA} ${WRKSRC}/uulib/uudeview.h ${PREFIX}/include
${INSTALL_MAN} ${FILESDIR}/uulib.3 ${PREFIX}/man/man3
perl -pi -e '$$a = '\''${PREFIX}/'\''; $$a =~ s/([^\w\/])/\\$$1/g; s/FUNKYTOKENHERE/$$a/' ${PREFIX}/man/man3/uulib.3
${PERL} -pi -e '$$a = '\''${PREFIX}/'\''; $$a =~ s/([^\w\/])/\\$$1/g; \
s/FUNKYTOKENHERE/$$a/' ${PREFIX}/man/man3/uulib.3
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${PREFIX}/share/doc/uulib
@${INSTALL_MAN} ${FILESDIR}/porting.notes ${PREFIX}/share/doc/uulib
@${INSTALL_DATA} ${FILESDIR}/porting.notes ${DOCSDIR}
.for docfile in ${DOCFILES}
@${INSTALL_MAN} ${WRKSRC}/${docfile} ${PREFIX}/share/doc/uulib
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif

View File

@ -2,15 +2,15 @@ lib/libuu.a
lib/libuu.so
lib/libuu.so.1
include/uudeview.h
share/doc/uulib/Makefile
share/doc/uulib/README
share/doc/uulib/binhex.fig
share/doc/uulib/library.ltx
share/doc/uulib/structure.fig
share/doc/uulib/td-v1.c
share/doc/uulib/td-v2.c
share/doc/uulib/td-v3.c
share/doc/uulib/test.txt
share/doc/uulib/porting.notes
share/doc/uulib/HISTORY
@dirrm share/doc/uulib
%%PORTDOCS%%share/doc/uulib/Makefile
%%PORTDOCS%%share/doc/uulib/README
%%PORTDOCS%%share/doc/uulib/binhex.fig
%%PORTDOCS%%share/doc/uulib/library.ltx
%%PORTDOCS%%share/doc/uulib/structure.fig
%%PORTDOCS%%share/doc/uulib/td-v1.c
%%PORTDOCS%%share/doc/uulib/td-v2.c
%%PORTDOCS%%share/doc/uulib/td-v3.c
%%PORTDOCS%%share/doc/uulib/test.txt
%%PORTDOCS%%share/doc/uulib/porting.notes
%%PORTDOCS%%share/doc/uulib/HISTORY
%%PORTDOCS%%@dirrm share/doc/uulib