Ticket #31745: Portfile-ipe-tools.diff
File Portfile-ipe-tools.diff, 4.8 KB (added by m.thon@…, 13 years ago) |
---|
-
Portfile
old new 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 1 2 # $Id: Portfile 82514 2011-08-15 05:11:11Z ryandesign@macports.org $ 2 3 3 4 PortSystem 1.0 4 5 5 6 name ipe-tools 6 version 20110116 7 revision 1 7 version 20110916 8 8 categories graphics 9 9 maintainers jacobs-university.de:m.thon 10 10 description Tools for the Ipe extensible drawing editor … … 15 15 - pdftoipe \ 16 16 - figtoipe \ 17 17 - ipe5toxml 18 license {GPL-2 GPL-3} 18 19 homepage http://ipe7.sourceforge.net/ 19 20 master_sites sourceforge:project/ipe7/tools 20 21 platforms darwin 21 22 set svgtoipe-vers 20100608 22 set pdftoipe-vers 20110 11623 set pdftoipe-vers 20110916 23 24 set figtoipe-vers 20091205 24 25 set ipe5toxml-vers 20051114 25 26 26 27 distfiles svgtoipe-${svgtoipe-vers}${extract.suffix} \ 27 pdftoipe-${pdftoipe-vers} ${extract.suffix} \28 pdftoipe-${pdftoipe-vers}-src${extract.suffix} \ 28 29 figtoipe-${figtoipe-vers}${extract.suffix} \ 29 30 ipe5toxml-${ipe5toxml-vers}${extract.suffix} 30 31 31 32 checksums svgtoipe-${svgtoipe-vers}${extract.suffix} \ 32 33 sha1 7c7af21eaa7273f74ac44570bbc659f674e01322 \ 33 34 rmd160 7c39ad574e9add8e2b660e29a2e6ed80ebe533b3 \ 34 pdftoipe-${pdftoipe-vers} ${extract.suffix} \35 sha1 6e4a7072e5bd05f941f8d3a0aab92ab1d3bb6aab\36 rmd160 3210a1d5889299cb2b6ae8fa45af960ea080d06a\35 pdftoipe-${pdftoipe-vers}-src${extract.suffix} \ 36 sha1 2cd4f70ebafa0310bbc3a0217f7d6acad2eda10f \ 37 rmd160 67d27456a1f7e46aa27eb67054c91ad52f51b0c3 \ 37 38 figtoipe-${figtoipe-vers}${extract.suffix} \ 38 39 sha1 b81f2f0cc568e165bdedb618ced9384ebfcb19a3 \ 39 40 rmd160 cc1615b55313ab8c151565bdb498fff8ba945029 \ … … 41 42 sha1 23cb8b40f1aa8a9bc4904d295b08fe0293cda7fc \ 42 43 rmd160 44c22367e3ef3cb4607310d15af51f527b006be0 43 44 45 worksrcdir . 46 patchfiles patch-pdftoipe-${pdftoipe-vers}-src-xmloutputdev.cpp.diff 47 44 48 depends_build port:pkgconfig 45 depends_lib port:poppler \46 port:py26-pil 49 depends_lib port:poppler 50 47 51 use_configure no 48 52 use_parallel_build no 49 53 … … 56 60 build { 57 61 system "cd ${workpath}/figtoipe-${figtoipe-vers} && ${build.env} ${build.cmd} ${build.target} CXX=${configure.cxx}" 58 62 system "cd ${workpath}/ipe5toxml && ${build.env} ${build.cmd}" 59 system "cd ${workpath}/pdftoipe-${pdftoipe-vers} && ${build.env} CC=${configure.cxx} ${build.cmd} ${build.target}"63 system "cd ${workpath}/pdftoipe-${pdftoipe-vers}-src && ${build.env} CC=${configure.cxx} ${build.cmd} ${build.target}" 60 64 } 61 65 62 66 destroot { 63 67 xinstall -m 755 ${workpath}/figtoipe-${figtoipe-vers}/figtoipe ${destroot}${prefix}/bin 64 68 xinstall -m 644 ${workpath}/figtoipe-${figtoipe-vers}/figtoipe.1 ${destroot}${prefix}/share/man/man1 65 69 xinstall -m 755 ${workpath}/ipe5toxml/ipe5toxml ${destroot}${prefix}/bin 66 xinstall -m 755 ${workpath}/pdftoipe-${pdftoipe-vers} /pdftoipe ${destroot}${prefix}/bin67 xinstall -m 644 ${workpath}/pdftoipe-${pdftoipe-vers} /pdftoipe.1 ${destroot}${prefix}/share/man/man170 xinstall -m 755 ${workpath}/pdftoipe-${pdftoipe-vers}-src/pdftoipe ${destroot}${prefix}/bin 71 xinstall -m 644 ${workpath}/pdftoipe-${pdftoipe-vers}-src/pdftoipe.1 ${destroot}${prefix}/share/man/man1 68 72 xinstall -m 755 ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe ${destroot}${prefix}/bin 69 73 } 74 75 variant python24 conflicts python25 python26 python27 description {Use PIL from Python 2.4} { 76 depends_lib-append port:py24-pil 77 } 78 79 variant python25 conflicts python24 python26 python27 description {Use PIL from Python 2.5} { 80 depends_lib-append port:py25-pil 81 } 82 83 variant python26 conflicts python24 python25 python27 description {Use PIL from Python 2.6} { 84 depends_lib-append port:py26-pil 85 } 86 87 variant python27 conflicts python24 python25 python26 description {Use PIL from Python 2.7} { 88 depends_lib-append port:py27-pil 89 } 90 91 if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} { 92 default_variants +python27 93 }