Ticket #28673: sysvbanner-1.0.15.diff
File sysvbanner-1.0.15.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name sysvbanner 6 version 1.0 -126 version 1.0.15 7 7 categories sysutils textproc 8 8 platforms darwin 9 9 maintainers pmq … … 14 14 15 15 homepage http://directory.fsf.org/text/doc/banner.html 16 16 master_sites http://ftp.debian.org/debian/pool/main/s/sysvbanner 17 distfiles ${name}_${version}.diff.gz18 checksums md5 5cbcee01cb1da56136264acab4102f1519 worksrcdir ${name}-1.020 17 18 distfiles [suffix ${name}_${version}] 19 20 checksums sha1 310960c38ff9778bc1597322f45f8b052b7c5ede \ 21 rmd160 6268a34e613585db3ba3387e710c51bbc516df9c 22 21 23 livecheck.url http://packages.debian.org/unstable/misc/${name} 22 livecheck.regex "<h1>Package: ${name} \\\(( .*)\\\)</h1>"24 livecheck.regex "<h1>Package: ${name} \\\((\[a-z0-9.\]+)" 23 25 24 set diff_file patch-sysvbanner.diff 25 extract.post_args > ${diff_file} 26 patch { 27 system "cd work && patch -p0 < ${diff_file}" 26 use_configure no 27 28 variant universal {} 29 if {[variant_isset universal]} { 30 set archflags ${configure.universal_cflags} 31 } else { 32 set archflags ${configure.cc_archflags} 28 33 } 29 use_configure no 34 30 35 build.target banner 36 build.args CC=${configure.cc} \ 37 CFLAGS="${archflags}" 31 38 32 39 destroot { 33 40 xinstall -W ${worksrcpath} -m 755 banner ${destroot}${prefix}/bin/${name}