Ticket #42114: maven-devel-fix-select.patch
File maven-devel-fix-select.patch, 3.8 KB (added by robsonpeixoto@…, 11 years ago) |
---|
-
Portfile
6 6 7 7 name maven-devel 8 8 version 3.1.1 9 revision 1 9 10 10 11 categories java devel 11 12 license Apache-2 … … 33 34 master_sites apache:maven/maven-3/${version}/binaries 34 35 distname apache-maven-${version}-bin 35 36 worksrcdir apache-maven-${version} 37 checksums md5 6342fdf6b0aabc1457c7f8cc218127ed \ 38 sha1 630eea2107b0742acb315b214009ba08602dda5f \ 39 sha256 077ed466455991d5abb4748a1d022e2d2a54dc4d557c723ecbacdc857c61d51b 36 40 37 checksums md5 6342fdf6b0aabc1457c7f8cc218127ed \ 38 sha1 630eea2107b0742acb315b214009ba08602dda5f \ 39 sha256 077ed466455991d5abb4748a1d022e2d2a54dc4d557c723ecbacdc857c61d51b 41 depends_run port:maven_select \ 42 bin:java:kaffe 40 43 41 depends_run port:maven_select 44 use_configure no 45 universal_variant no 42 46 43 use_configure no44 # hmm?45 universal_variant no46 47 47 select.group maven 48 select.file ${filespath}/ maven348 select.file ${filespath}/${name} 49 49 50 50 # Source builds of maven are not possible. So, the default build is a binary 51 51 # install of the jars. … … 53 53 } 54 54 55 55 destroot { 56 set maven_dir apache-maven-${version} 57 set maven_path ${destroot}${prefix}/share/java/${maven_dir} 56 set mavendir ${destroot}${prefix}/share/java/${name} 58 57 59 58 # Create the target java directory exists 60 xinstall -m 755 -d ${maven _path}59 xinstall -m 755 -d ${mavendir} 61 60 62 61 # Copy over the needed elements of our directory tree 63 62 file copy \ … … 65 64 ${worksrcpath}/boot \ 66 65 ${worksrcpath}/conf \ 67 66 ${worksrcpath}/lib \ 68 ${maven _path}67 ${mavendir} 69 68 70 69 # Remove extraneous bat files 71 foreach f [glob -directory ${maven _path}/bin *.bat] {70 foreach f [glob -directory ${mavendir}/bin *.bat] { 72 71 file delete $f 73 72 } 74 73 75 74 # Fix permissions on shell scripts 76 75 foreach f { maven install_repo.sh } { 77 if [file exists ${maven _path}/bin/$f] {78 file attributes ${maven _path}/bin/$f -permissions +x76 if [file exists ${mavendir}/bin/$f] { 77 file attributes ${mavendir}/bin/$f -permissions +x 79 78 } 80 79 } 81 80 82 81 # Reduce the permissions on the distribution files. 83 file attributes ${maven _path}/conf -permissions 075584 file attributes ${maven _path}/conf/settings.xml -permissions 064485 foreach f [glob -directory ${maven _path}/boot *.jar] {82 file attributes ${mavendir}/conf -permissions 0755 83 file attributes ${mavendir}/conf/settings.xml -permissions 0644 84 foreach f [glob -directory ${mavendir}/boot *.jar] { 86 85 file attributes $f -permissions 0644 87 86 } 88 foreach f [glob -directory ${maven _path}/lib *.jar] {87 foreach f [glob -directory ${mavendir}/lib *.jar] { 89 88 file attributes $f -permissions 0644 90 89 } 91 90 92 91 # Symlink maven into the bin directory 93 ln -s ${prefix}/share/java/${maven_dir}/bin/mvn ${prefix}/bin/mvn392 system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn-devel" 94 93 } 95 94 96 95 notes \ … … 99 98 100 99 livecheck.type regex 101 100 livecheck.url ${homepage}download.html 102 livecheck.regex apache-maven-(3\\. \[0-9.\]+)-bin\\.tar101 livecheck.regex apache-maven-(3\\.1\\.\[0-9\]+)-bin\\.tar -
files/maven-devel
1 bin/mvn 31 bin/mvn-devel -
files/maven3
1 bin/mvn3