mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Add staging support
- Remove leading article from COMMENT - Define DOCS option, switch to PORTDOCS - Remove pkg-message, it contained only copyright info which can be found inside package contents
This commit is contained in:
parent
8624d5a946
commit
e64fdb9d4e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349337
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= cons-test
|
||||
PORTVERSION= 2.2.0
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.dsmit.com/cons/stable/ \
|
||||
http://www.gnu.org/software/cons/stable/ \
|
||||
@ -12,7 +12,7 @@ MASTER_SITES= http://www.dsmit.com/cons/stable/ \
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A test bed for `Cons' development
|
||||
COMMENT= Test bed for `Cons' development
|
||||
|
||||
LICENSE= GPLv2 # (or later)
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
@ -27,54 +27,32 @@ PLIST_SUB= CONS_VER="${PORTVERSION}" CONS_TEST="${CONS_TEST}"
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/-test//}-${PORTVERSION}/test
|
||||
|
||||
MANCOMPRESSED= yes
|
||||
MAN1= cons-test.1
|
||||
|
||||
CONS_TEST= cons-${PORTVERSION}/test
|
||||
DOCS= CHANGES COPYRIGHT README TODO Tests.txt
|
||||
PORTDOCS= CHANGES COPYRIGHT README TODO Tests.txt
|
||||
TESTS= 1..83,101..147
|
||||
TEST_LIBS= Cmd.pm Cons.pm
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's:/usr/lib:${PREFIX}/lib:g' \
|
||||
${WRKSRC}/cons-test
|
||||
|
||||
do-install:
|
||||
#
|
||||
# Install the script
|
||||
#
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/cons-test \
|
||||
${PREFIX}/bin
|
||||
#
|
||||
# Install the tests
|
||||
#
|
||||
${MKDIR} ${PREFIX}/lib/${CONS_TEST}/t
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/cons-test ${STAGEDIR}${PREFIX}/bin
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${CONS_TEST}/t
|
||||
${PERL} -e 'for (${TESTS}) {$$f=sprintf "t%04d.t", $$_;\
|
||||
$$x= "${INSTALL_DATA} ${WRKSRC}/t/$$f \
|
||||
${PREFIX}/lib/${CONS_TEST}/t";\
|
||||
${STAGEDIR}${PREFIX}/lib/${CONS_TEST}/t";\
|
||||
printf "$$x\n"; system $$x;}'
|
||||
#
|
||||
# Install the test libraries
|
||||
#
|
||||
${MKDIR} ${PREFIX}/lib/${CONS_TEST}/Test/Cmd
|
||||
${INSTALL_DATA} ${WRKSRC}/Test/Cmd.pm ${PREFIX}/lib/${CONS_TEST}/Test
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${CONS_TEST}/Test/Cmd
|
||||
${INSTALL_DATA} ${WRKSRC}/Test/Cmd.pm \
|
||||
${STAGEDIR}${PREFIX}/lib/${CONS_TEST}/Test
|
||||
${INSTALL_DATA} ${WRKSRC}/Test/Cmd/Cons.pm \
|
||||
${PREFIX}/lib/${CONS_TEST}/Test/Cmd
|
||||
#
|
||||
# Install the man pages
|
||||
#
|
||||
${STAGEDIR}${PREFIX}/lib/${CONS_TEST}/Test/Cmd
|
||||
${INSTALL_MAN} ${WRKSRC}/cons-test.1.gz \
|
||||
${MANPREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
#
|
||||
# Install the documentation
|
||||
#
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for f in ${DOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} \
|
||||
${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
${STAGEDIR}${MANPREFIX}/man/man1
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,16 +0,0 @@
|
||||
Copyright (C) 1996-2000 Free Software Foundation, Inc.
|
||||
|
||||
Cons is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Cons is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
@ -1,10 +1,4 @@
|
||||
bin/cons-test
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Tests.txt
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
lib/%%CONS_TEST%%/t/t0001.t
|
||||
lib/%%CONS_TEST%%/t/t0002.t
|
||||
lib/%%CONS_TEST%%/t/t0003.t
|
||||
@ -137,6 +131,8 @@ lib/%%CONS_TEST%%/t/t0146.t
|
||||
lib/%%CONS_TEST%%/t/t0147.t
|
||||
lib/%%CONS_TEST%%/Test/Cmd.pm
|
||||
lib/%%CONS_TEST%%/Test/Cmd/Cons.pm
|
||||
man/man1/cons-test.1.gz
|
||||
%%PORTDOCS%%@dirrmtry share/doc/cons-%%CONS_VER%%
|
||||
@dirrm lib/%%CONS_TEST%%/Test/Cmd
|
||||
@dirrm lib/%%CONS_TEST%%/Test
|
||||
@dirrm lib/%%CONS_TEST%%/t
|
||||
|
Loading…
Reference in New Issue
Block a user