Ticket #27948: Portfile-maven2-maven_select.diff

File Portfile-maven2-maven_select.diff, 1.1 KB (added by nhojpatrick (John Patrick), 14 years ago)
  • Portfile

     
    22# $Id$
    33
    44PortSystem 1.0
     5PortGroup select 1.0
    56
    67name            maven2
    78version         2.2.1
     
    3940use_configure   no
    4041universal_variant no
    4142
     43select.group            maven
     44select.file             ${filespath}/${name}
     45
    4246# Source builds of maven are not possible. So, the default build is a binary
    4347# install of the jars.
    4448build.cmd       true
     
    7781        }
    7882       
    7983        # Symlink maven into the bin directory
    80         system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn"
    8184        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn2"
    8285}
    8386
     87post-activate {
     88   ui_msg "\nTo fully complete your installation and make maven $version the default, please run
     89\n\tsudo port install maven_select \
     90\n\tsudo maven_select $name\n"
     91}
     92
    8493livecheck.type  regex
    8594livecheck.url   ${homepage}download.html
    8695livecheck.regex apache-maven-(\[0-9.\]+)-bin\\.tar