Ticket #27947: Portfile-maven3-maven_select.diff

File Portfile-maven3-maven_select.diff, 941 bytes (added by nhojpatrick (John Patrick), 14 years ago)

updated to include post-activate to inform user to execte maven_select

  • Portfile

     
    22# $Id$
    33
    44PortSystem 1.0
     5PortGroup select 1.0
    56
    67name            maven3
    78version         3.0.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
     
    8387        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn3"
    8488}
    8589
     90post-activate {
     91   ui_msg "\nTo fully complete your installation and make maven $version the default, please run
     92\n\tsudo port install maven_select \
     93\n\tsudo maven_select $name\n"
     94}
     95
    8696livecheck.type  regex
    8797livecheck.url   ${homepage}download.html
    8898livecheck.regex apache-maven-(\[0-9.\]+)-bin\\.tar