Ticket #25040: lilypond.patch
File lilypond.patch, 2.5 KB (added by nerdling (Jeremy Lavergne), 14 years ago) |
---|
-
Portfile
20 20 platforms darwin 21 21 master_sites http://download.linuxaudio.org/lilypond/sources/v${branch}/ 22 22 dist_subdir ${name}/${version}_${revision} 23 checksums md5 2303bf5f2ea8d4628f33a68f016f3866 \ 24 sha1 f36072d5f57b2a3d3877e82879be375d548aa951 \ 23 checksums sha1 f36072d5f57b2a3d3877e82879be375d548aa951 \ 25 24 rmd160 275b34b2517780a8c94d9c0a38c3f42b22d49703 26 25 26 depends_build port:t1utils \ 27 port:texi2html \ 28 port:pkgconfig 27 29 depends_lib port:fontforge \ 28 30 port:ghostscript \ 29 31 port:mftrace \ … … 35 37 36 38 post-patch { 37 39 reinplace s|__vector|lily_vector|g ${worksrcpath}/flower/include/std-vector.hh 40 fs-traverse file ${worksrcpath} { 41 if {[file isfile $file]} { 42 if {[variant_isset python25]} { 43 reinplace {s|env python|env python2.5|} $file 44 reinplace {s|bin/python|bin/python2.5|} $file 45 } 46 47 if {[variant_isset python26]} { 48 reinplace {s|env python|env python2.6|} $file 49 reinplace {s|bin/python|bin/python2.6|} $file 50 } 51 52 if {[variant_isset python27]} { 53 reinplace {s|env python|env python2.7|} $file 54 reinplace {s|bin/python|bin/python2.7|} $file 55 } 56 } 57 } 38 58 } 39 59 40 60 configure.args --with-ncsb-dir=${prefix}/share/fonts/urw-fonts \ … … 52 72 reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/bin/lilypond 53 73 } 54 74 75 variant python25 conflicts python26 python27 { 76 depends_run-append port:py25-socket-ssl 77 } 78 79 variant python26 conflicts python25 python27 { 80 depends_run-append port:python26 81 } 82 83 variant python27 conflicts python25 python26 { 84 depends_run-append port:python27 85 } 86 87 if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} { 88 default_variants +python26 89 } 90 55 91 variant docs description {Build documentation files} { 56 92 configure.args-delete --disable-documentation 57 93 configure.args-append --enable-documentation … … 63 99 configure.args-append --enable-gui 64 100 } 65 101 66 default_variants +docs67 68 102 livecheck.type regex 69 103 livecheck.url [lindex ${master_sites} 0] 70 104 livecheck.regex "${name}-(\\d\\.\\d+\\.\\d)"