Ticket #996: portfile-20031008.diff
File portfile-20031008.diff, 2.0 KB (added by bchesneau@…, 21 years ago) |
---|
-
(a) Portfile-orig vs. (b) Portfile
a b 15 15 "blame" support, and the beginnings of Bonsai-like query facilities. 16 16 homepage http://viewcvs.sourceforge.net/ 17 17 platforms darwin 18 master_sites \ 19 http://unc.dl.sourceforge.net/sourceforge/${name}/ \ 20 http://telia.dl.sourceforge.net/sourceforge/${name}/ \ 21 http://easynews.dl.sourceforge.net/sourceforge/${name}/ \ 22 http://umn.dl.sourceforge.net/sourceforge/${name}/ \ 23 http://twtelecom.dl.sourceforge.net/sourceforge/${name}/ \ 24 http://belnet.dl.sourceforge.net/sourceforge/${name}/ \ 25 http://switch.dl.sourceforge.net/sourceforge/${name}/ \ 26 http://cesnet.dl.sourceforge.net/sourceforge/${name}/ 18 master_sites sourceforge:viewcvs 19 20 patchfiles patch-viewcvs-install 21 27 22 checksums md5 c7857b1ed05240ad1f691ea40044daf2 28 #some evil to make things work 29 patch { 30 reinplace "s|\"/usr/local/viewcvs-\" + version|\"${destroot}${prefix}/viewcvs\"|g" "${worksrcpath}/viewcvs-install" 31 reinplace "s|temp = raw_input(\"Installation|temp = \"\"##raw_input|g" "${worksrcpath}/viewcvs-install" 32 reinplace "s|temp = raw_input(|temp = \"o\"##|g" "${worksrcpath}/viewcvs-install" 33 } 23 24 25 26 34 27 configure {} 35 28 depends_build bin:python:python 29 30 pre-build { 31 reinplace "s|__ROOTDIR|${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install 32 reinplace "s|__DESTROOTDIR|${destroot}${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install 33 } 34 36 35 build {} 37 36 build.cmd ./viewcvs-install 38 37 post-destroot { … … 53 52 } 54 53 55 54 system "install -d ${destroot}${cgi_path}" 56 system "install -m 755 ${destroot}${prefix}/ viewcvs/cgi/query.cgi ${destroot}${cgi_path}"57 system "install -m 755 ${destroot}${prefix}/ viewcvs/cgi/viewcvs.cgi ${destroot}${cgi_path}"55 system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/query.cgi ${destroot}${cgi_path}" 56 system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/viewcvs.cgi ${destroot}${cgi_path}" 58 57 }