Changeset 75113 for trunk/dports/java


Ignore:
Timestamp:
Jan 15, 2011, 8:47:50 PM (9 years ago)
Author:
blair@…
Message:

Add "maven_select" functionality to the maven2 port. Resolves #27948.

Location:
trunk/dports/java/maven2
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/maven2/Portfile

    r75112 r75113  
    33
    44PortSystem 1.0
     5PortGroup select 1.0
    56
    67name            maven2
    78version         2.2.1
    8 revision        2
     9revision        3
    910
    1011categories      java devel
     
    3536                rmd160 25d523d3dc86cf4695b0e343cf0f6e58ea8a54e3
    3637
     38depends_lib     port:maven_select
    3739depends_build   bin:java:kaffe
    3840
    3941use_configure   no
    4042universal_variant no
     43
     44select.group    maven
     45select.file     ${filespath}/${name}
    4146
    4247# Source builds of maven are not possible. So, the default build is a binary
     
    7883
    7984        # Symlink maven into the bin directory
    80         system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn"
    8185        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn2"
     86}
     87
     88post-activate {
     89   ui_msg "\nTo fully complete your installation and make maven $version the default, please run
     90\n\tsudo maven_select $name\n"
    8291}
    8392
Note: See TracChangeset for help on using the changeset viewer.