1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

added the following checking:

"in *_DEPENDS, ${PREFIX} must not be used. use ${LOCALBASE}/${X11BASE}
  instead of it."

Commented by:	asami
Reviewed by:	taoka
This commit is contained in:
Munechika SUMIKAWA 1999-09-28 16:23:03 +00:00
parent 8f641bab83
commit 942ecd986a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=22049
4 changed files with 18 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# $FreeBSD$
#
DISTNAME= portlint-2.0
DISTNAME= portlint-2.1
CATEGORIES= devel
DISTFILES= #empty

View File

@ -981,6 +981,14 @@ EOF
"$j is deprecated.");
}
# check for PREFIX
if ($m{'dep'} =~ /\${PREFIX}/) {
&perror("FATAL: \${PREFIX} must not be ".
"contained in *_DEPENDS. ".
"use \${LOCALBASE} or ".
"\${X11BASE} instead.");
}
# check port dir existence
$k = $m{'dir'};
$k =~ s/\${PORTSDIR}/$ENV{'PORTSDIR'}/;

View File

@ -6,7 +6,7 @@
# $FreeBSD$
#
DISTNAME= portlint-2.0
DISTNAME= portlint-2.1
CATEGORIES= devel
DISTFILES= #empty

View File

@ -981,6 +981,14 @@ EOF
"$j is deprecated.");
}
# check for PREFIX
if ($m{'dep'} =~ /\${PREFIX}/) {
&perror("FATAL: \${PREFIX} must not be ".
"contained in *_DEPENDS. ".
"use \${LOCALBASE} or ".
"\${X11BASE} instead.");
}
# check port dir existence
$k = $m{'dir'};
$k =~ s/\${PORTSDIR}/$ENV{'PORTSDIR'}/;