Revision 657

Date:
2017/06/22 14:16:24
Author:
ahitrov
Revision Log:
Shortcut for Perl Check Module task. Using PERL_CHECK_MODE=pass during 'make install' bypasses installation for all globally installed modules. Libnet now doesn't ask about tests

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/ports/all/libnet/GNUmakefile

     
    7 7 CONFIGURE_PRECMD = touch ${WRKSRC}/libnet.cfg
    8 8 INSTALL_PRECMD = ${MAKE_RECURSIVE} pre-install
    9 9 MASTER_CPAN_SUBDIR = Net
    10
    10 CONFIGURE_POSTENV = PERL_CORE=1
    11 11 PORT_DEPENDS = MIME-Base64 \
    12 12 ExtUtils-MakeMaker
    13 13
  • utf8/core/ports/etc/chkmod

     
    2 2
    3 3 use strict;
    4 4
    5 my ($module, $version) = @ARGV;
    5 my ($module, $version, $mode) = @ARGV;
    6 6 $module =~ s/-/::/g;
    7 7 my $installed;
    8 8
     
    23 23 (my $path=$module) =~ s/::/\//g;
    24 24 $installed->{path} = $INC{$path.".pm"};
    25 25
    26 if ($installed->{version} >= $version) {
    26 if ($installed->{version} >= $version || $mode eq 'pass') {
    27 27 unless ($ENV{DRY_RUN}||'' eq 'yes') {
    28 28 print STDERR "##############################################################################\n";
    29 29 print STDERR "# Found installed module: $module\n";
  • utf8/core/ports/etc/ports.mk

     
    1 1 ##############################################################################
    2 # $HeadURL: http://svn.dev.rambler.ru/Contenido/branches/utf8/ports/etc/ports.mk $
    3 # $Id: ports.mk 1526 2010-03-29 11:11:10Z ahitrov $
    2 # $HeadURL: svn+ssh://svn@vcs.dev.rambler.ru/Contenido/branches/utf8/ports/etc/ports.mk $
    3 # $Id: ports.mk 1777 2017-06-22 14:12:52Z ahitrov $
    4 4 ###############################################################################
    5 5
    6 6 PREFIX ?= ${error PREFIX must be defined}
     
    66 66 INSTALL_ENV ?= PERL5LIB='${PERL_LIBCOL}' MAKE=${MAKE} OPSYS=${OPSYS}
    67 67
    68 68 PERL_CHECK ?= yes
    69 PERL_CHECK_MODE ?= interactive
    69 70 PERL_CHECK_MODULE ?= ${PORTNAME}
    70 71 PERL_CHECK_VERSION ?= ${PORTVERSION}
    71 72 endif
     
    333 334 @echo "NOT FOUND: ${PORTNAME}"
    334 335 endif
    335 336 else
    336 @`${PORTSDIR}/etc/chkmod ${PERL_CHECK_MODULE} ${PERL_CHECK_VERSION}` && ${MAKE_RECURSIVE_PERL} $@
    337 @`${PORTSDIR}/etc/chkmod ${PERL_CHECK_MODULE} ${PERL_CHECK_VERSION} ${PERL_CHECK_MODE}` && ${MAKE_RECURSIVE_PERL} $@
    337 338 endif
    338 339 endif
    339 340 endif