Ticket #44526: xxdiff.diff
File xxdiff.diff, 2.7 KB (added by RJVB (René Bertin), 10 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 103303 2013-02-21 06:52:40Z jmr@macports.org $ 2 2 3 3 PortSystem 1.0 4 PortGroup qmake 1.0 4 5 5 6 name xxdiff 6 version 3.2 7 version 4.0 8 revision 1 7 9 categories devel 8 10 license GPL-2+ 9 11 platforms darwin … … 15 17 16 18 homepage http://furius.ca/xxdiff/ 17 19 master_sites sourceforge 18 checksums md5 301ff399a1e4be8b68c38c3e27c0b1ad\19 sha 1 ab2848fd9279f55b5db270f319ad4791154ecf82 \20 rmd160 12e7527f39713b925f05b687c2ad8b60459bb670 20 checksums rmd160 678346b245b977999911f73e9dda8e3fe4404cc7 \ 21 sha256 91501544e82bc89983d07eeb086419645fbfa78fc906b50ff7ab6cdf39431330 22 21 23 use_bzip2 yes 22 24 23 25 depends_lib port:bison \ 24 port:flex \ 25 port:qt3 26 port:flex 26 27 27 use_configure no 28 configure { 29 # Build xxdiff with qmake. 30 system -W ${worksrcpath}/src "make -f Makefile.bootstrap QMAKE=${prefix}/bin/qmake" 31 } 28 32 29 33 build { 30 34 # Build xxdiff with qmake. 31 system "cd ${worksrcpath}/src; make -f Makefile.bootstrap makefile QTDIR=${prefix}" 32 system "cd ${worksrcpath}/src; make QTDIR=${prefix}" 35 system -W ${worksrcpath}/src "make" 33 36 } 34 37 35 38 destroot { 36 39 # Destroot xxdiff. 37 xinstall ${worksrcpath}/bin/xxdiff ${destroot}${prefix}/bin 40 xinstall -d ${destroot}${applications_dir}/Qt4 41 copy "${worksrcpath}/bin/xxdiff.app" ${destroot}${applications_dir}/Qt4/ 38 42 xinstall ${worksrcpath}/src/xxdiff.1 ${destroot}${prefix}/share/man/man1 43 } 44 45 patchfiles-append add-accelerators.patch \ 46 update-resParser.y.patch 47 48 variant doc description {Install documentation} {} 49 if { [variant_isset doc] } { 39 50 # Destroot xxdiff documentation. 40 xinstall -d ${destroot}${prefix}/share/doc 41 file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} 42 file delete ${destroot}${prefix}/share/doc/${name}/Makefile 43 file delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.txt 44 file delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.html 51 post-destroot { 52 xinstall -d ${destroot}${prefix}/share/doc 53 copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} 54 delete ${destroot}${prefix}/share/doc/${name}/Makefile 55 delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.txt 56 delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.html 57 } 45 58 }