Ticket #357: patch-ant-portfile

File patch-ant-portfile, 1.6 KB (added by bchesneau@…, 21 years ago)

patch to correct symbolic link and upgrade to 1.5.2

Line 
1--- devel/jakarta-ant/Portfile-old      Sun Mar 16 18:47:56 2003
2+++ devel/apache-ant/Portfile   Sun Mar 16 19:23:45 2003
3@@ -1,23 +1,24 @@
4 # $Id: Portfile,v 1.8 2003/03/03 06:18:05 mij Exp $
5 
6 PortSystem                             1.0
7-name                                   jakarta-ant
8-version                                        1.5.1
9+name                                   apache-ant
10+version                                        1.5.2
11 revision                               0
12-categories                             java jakarta
13+categories                             devel
14 maintainers                            sean@fuzzymagic.com
15 description                            Java opensource build system
16 long_description                       Ant is a Java based build tool. In theory it is kind of like \
17                                        make without make's wrinkles. Ant uses XML build files that defines \
18                                        a set of targets. Each target has dependencies (other targets) and \
19                                        contains a set of tasks to perform.
20-homepage                http://jakarta.apache.org/ant/
21+homepage                http://ant.apache.org/
22 
23 platforms                              darwin freebsd
24 master_sites                   http://www.apache.org/dist/ant/source/
25-distname                               ${name}-${version}-src
26-worksrcdir                             ${name}-${version}
27-checksums                              md5 a9d1d1cb1c042ef2fffc21f31d96d4a9
28+
29+distname                               ${portname}-${portversion}-src
30+worksrcdir                             ${portname}-${portversion}
31+checksums                              md5 88d527c83028fd46f265833fb00f4902
32 set antdir              java/${name}
33 set instdir                            ${prefix}/${antdir}
34 set chmodarg                   -Dchmod.fail=false
35@@ -34,7 +35,9 @@
36        system "cd ${worksrcpath}; cp -R ${name} ${path}"
37        system "rm ${path}${name}/bin/*.bat"
38     system "chmod -R ugo+r ${path}${name}"
39-       system "ln -fs ${path}${name}/bin/ant ${destroot}${prefix}/bin/ant"
40+       #system "ln -fs ${path}${name}/bin/ant ${destroot}${prefix}/bin/ant"
41+       system "cd ${destroot} && \
42+                               ln -fs ${prefix}/java/${name}/bin/ant ${prefix}/bin/ant"
43 }
44 
45 variant darwin {