aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-11-27 17:53:10 +0800
committermiwi <miwi@FreeBSD.org>2011-11-27 17:53:10 +0800
commitc616014567cd31e7eb8075509cc66d86b33c884b (patch)
treedea0dcbc3c73b5bace7d4766ae010fa8dda554ac /devel
parent207c4265dd8d8cb0102ac835f77a1db8b7787861 (diff)
downloadfreebsd-ports-gnome-c616014567cd31e7eb8075509cc66d86b33c884b.tar.gz
freebsd-ports-gnome-c616014567cd31e7eb8075509cc66d86b33c884b.tar.zst
freebsd-ports-gnome-c616014567cd31e7eb8075509cc66d86b33c884b.zip
- Fix MASTER_SITES
- Add LICENSE - Support MANPREFIX PR: 162856 Submitted by: Ports Fury Feature safe: yes
Diffstat (limited to 'devel')
-rw-r--r--devel/cons-test/Makefile38
-rw-r--r--devel/cons-test/pkg-plist1
2 files changed, 23 insertions, 16 deletions
diff --git a/devel/cons-test/Makefile b/devel/cons-test/Makefile
index 3cd42daf2290..a2007e78847f 100644
--- a/devel/cons-test/Makefile
+++ b/devel/cons-test/Makefile
@@ -7,40 +7,48 @@
PORTNAME= cons-test
PORTVERSION= 2.2.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://www.dsmit.com/cons/stable/ \
http://www.gnu.org/software/cons/stable/ \
- ftp://ftp.gnu.org/pub/gnu/cons/ \
+ ftp://ftp.gnu.org/pub/old-gnu/cons/ \
http://www.baldmt.com/cons/stable/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A test bed for `Cons' development
+LICENSE= GPLv2 # (or later)
+LICENSE_FILE= ${WRKSRC}/COPYING
+
RUN_DEPENDS= ${LOCALBASE}/bin/cons:${PORTSDIR}/devel/cons
-USE_PERL5= yes
+WRKSRC= ${WRKDIR}/cons-${PORTVERSION}/test
NO_BUILD= yes
-CONS_TEST= cons-${PORTVERSION}/test
-WRKSRC= ${WRKDIR}/${CONS_TEST}
-PLIST_SUB+= CONS_VER=${PORTVERSION} CONS_TEST=${CONS_TEST}
+
+USE_PERL5= yes
+PLIST_SUB= CONS_VER="${PORTVERSION}" CONS_TEST="${CONS_TEST}"
+
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/-test//}-${PORTVERSION}/test
-MAN1= cons-test.1
MANCOMPRESSED= yes
-DOCS= CHANGES COPYING COPYRIGHT README TODO Tests.txt
+MAN1= cons-test.1
+
+CONS_TEST= cons-${PORTVERSION}/test
+DOCS= CHANGES COPYRIGHT README TODO Tests.txt
TESTS= 1..83,101..147
TEST_LIBS= Cmd.pm Cons.pm
+
+post-patch:
+ @${REINPLACE_CMD} -e 's:/usr/lib:${PREFIX}/lib:g' \
+ ${WRKSRC}/cons-test
+
do-install:
#
# Install the script
#
- ${MKDIR} ${PREFIX}/bin
- @${SED} -e 's:/usr/lib:${PREFIX}/lib:g' \
- <${WRKSRC}/cons-test >${PREFIX}/bin/cons-test
- @${CHMOD} a+x ${PREFIX}/bin/cons-test
-
+ ${INSTALL_SCRIPT} ${WRKSRC}/cons-test \
+ ${PREFIX}/bin
#
# Install the tests
#
@@ -60,14 +68,14 @@ do-install:
# Install the man pages
#
${INSTALL_MAN} ${WRKSRC}/cons-test.1.gz \
- ${PREFIX}/man/man1/cons-test.1.gz
+ ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
#
# Install the documentation
#
${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
- ${INSTALL} -c ${WRKSRC}/$f \
+ ${INSTALL_DATA} ${WRKSRC}/${f} \
${DOCSDIR}
.endfor
.endif
diff --git a/devel/cons-test/pkg-plist b/devel/cons-test/pkg-plist
index b9acf9f175ec..ea03854631ff 100644
--- a/devel/cons-test/pkg-plist
+++ b/devel/cons-test/pkg-plist
@@ -1,6 +1,5 @@
bin/cons-test
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO