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
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup select 1.0 5 6 6 7 name maven2 7 8 version 2.2.1 … … 39 40 use_configure no 40 41 universal_variant no 41 42 43 select.group maven 44 select.file ${filespath}/${name} 45 42 46 # Source builds of maven are not possible. So, the default build is a binary 43 47 # install of the jars. 44 48 build.cmd true … … 77 81 } 78 82 79 83 # Symlink maven into the bin directory 80 system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn"81 84 system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn2" 82 85 } 83 86 87 post-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 84 93 livecheck.type regex 85 94 livecheck.url ${homepage}download.html 86 95 livecheck.regex apache-maven-(\[0-9.\]+)-bin\\.tar