5 | | name itcl |
6 | | version 3.4b1 |
7 | | categories lang |
8 | | license Tcl/Tk |
9 | | maintainers nomaintainer |
10 | | description Object oriented extension to Tcl. |
11 | | long_description ${description} |
12 | | homepage http://incrtcl.sourceforge.net/ |
13 | | platforms darwin |
14 | | master_sites sourceforge:incrtcl:itcl \ |
15 | | sourceforge:tcl:tcl |
16 | | dist_subdir tcltk |
17 | | distname ${name}${version} |
| 6 | name itcl |
| 7 | version 4.0.2 |
| 8 | categories lang |
| 9 | license Tcl/Tk |
| 10 | maintainers nomaintainer |
| 11 | description Object oriented extension to Tcl. |
| 12 | long_description ${description} |
| 13 | homepage http://incrtcl.sourceforge.net/ |
| 14 | platforms darwin |
| 15 | master_sites sourceforge:incrtcl:itcl \ |
| 16 | sourceforge:tcl:tcl |
| 17 | dist_subdir tcltk |
| 18 | distname ${name}${version} |
21 | | set tclv 8.5.9 |
| 22 | set vstub ${version} |
| 23 | set tclv 8.6.2 |
| 24 | distfiles ${distname}.tar.gz:itcl \ |
| 25 | tcl${tclv}-src.tar.gz:tcl |
| 26 | depends_build port:tcl port:tk |
| 27 | build.args CPPFLAGS=-I${prefix}/include |
| 28 | |
| 29 | configure.env TCLROOT=${prefix} |
| 30 | configure.cflags "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix" |
| 31 | #configure.ldflags-append "-tcl8.5" |
| 32 | |
| 33 | ## FIXME! Error: org.macports.activate for port itcl returned: Image error: /opt/local/include/itcl.h is being used by the active tcl port. + many other files... |
| 34 | configure.args --with-tcl=${prefix}/lib \ |
| 35 | --includedir=${prefix}/include/itcl |
23 | | distfiles ${distname}.tar.gz:itcl \ |
24 | | tcl${tclv}-src.tar.gz:tcl |
25 | | checksums ${distname}.tar.gz md5 e4c97750c08ab47e960b91911fdd0132 \ |
26 | | tcl${tclv}-src.tar.gz md5 8512d8db3233041dd68a81476906012a |
27 | | depends_build port:tcl port:tk |
28 | | build.args CPPFLAGS=-I${prefix}/include |
29 | | worksrcdir ${name}3.4 |
30 | | |
31 | | configure.env TCLROOT=${prefix} |
32 | | configure.cflags "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix" |
33 | | configure.ldflags-append "-tcl8.5" |
34 | | |
35 | | configure.args --with-tcl=${prefix}/lib |
36 | | |
37 | | configure.universal_args-delete --disable-dependency-tracking |
| 37 | configure.universal_args-delete --disable-dependency-tracking |
57 | | set _d ${destroot}${prefix} |
58 | | set _w ${worksrcpath} |
59 | | file mkdir ${_d}/lib/itcl3.4 |
60 | | xinstall -m 755 ${_w}/itclConfig.sh ${_d}/lib/itcl3.4 |
61 | | file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itcl3.4 |
62 | | file copy -force ${_w}/library/itcl.tcl ${_d}/lib/itcl3.4 |
63 | | file copy -force ${_w}/libitcl3.4.dylib ${_d}/lib |
64 | | file copy -force ${_w}/libitclstub3.4.a ${_d}/lib |
| 57 | set _d ${destroot}${prefix} |
| 58 | set _w ${worksrcpath} |
| 59 | file mkdir ${_d}/lib/itcl${version} |
| 60 | xinstall -m 755 ${_w}/itclConfig.sh ${_d}/lib/itcl${vstub} |
| 61 | file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itcl${vstub} |
| 62 | file copy -force ${_w}/library/itcl.tcl ${_d}/lib/itcl${vstub} |
| 63 | file copy -force ${_w}/libitcl${vstub}.dylib ${_d}/lib |
| 64 | file copy -force ${_w}/libitclstub${vstub}.a ${_d}/lib |
71 | | foreach x [glob ${_w}/doc/*.n] { |
72 | | file copy -force $x ${_d}/share/man/mann |
73 | | } |
| 71 | foreach x [glob ${_w}/doc/*.n] { |
| 72 | file copy -force $x ${_d}/share/man/mann |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | ## FIXME! clang: error: no such file or directory: '{-I/Users/julien/.macports/opt/local/var/macports/build/_Users_julien_tmp_myports_lang_itcl/itcl3/work/tcl8.6.2/generic' |
| 77 | variant universal {} |
| 78 | #configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]" |
| 79 | |
| 80 | if {${subport} eq ${name}} { |
| 81 | checksums itcl${version}.tar.gz \ |
| 82 | rmd160 acc09f343a57b95e7ce9ba4613963748af0a9cb8 \ |
| 83 | sha256 d93f63a52af2b6d10a1995fc03431a4b626c1a5b1a5e7868fb489ce31925e916 \ |
| 84 | tcl${tclv}-src.tar.gz \ |
| 85 | rmd160 574bffdf3e390cf6460ab4a9d4b59db0e58f2998 \ |
| 86 | sha256 86f7ae5f581dd0904d04415637ab3aef5a50986c1b6d04c340e2b1b0258da9c4 |
| 87 | |
| 88 | test.run yes |
| 89 | test.target test |
| 90 | |
| 91 | conflicts ${name}3 |
| 92 | |
| 93 | livecheck.type regex |
| 94 | livecheck.url https://sourceforge.net/projects/incrtcl/files/%5Bincr%20Tcl_Tk%5D-4-source/ |
| 95 | livecheck.regex "itcl (\\d+(?:\\.\\d+)*)" |
| 96 | } |
| 97 | |
| 98 | subport ${name}3 { |
| 99 | version 3.4.1 |
| 100 | distname itcl${version} |
| 101 | distfiles ${distname}.tar.gz:itcl \ |
| 102 | tcl${tclv}-src.tar.gz:tcl |
| 103 | checksums itcl${version}.tar.gz \ |
| 104 | rmd160 a3293d8e7beeee8cd308a7c56edf7c790a374ef4 \ |
| 105 | sha256 5330832ce72da97610497a58eca904287d0ff91f9ec741a4e4810d5b933c8568 \ |
| 106 | tcl${tclv}-src.tar.gz \ |
| 107 | rmd160 574bffdf3e390cf6460ab4a9d4b59db0e58f2998 \ |
| 108 | sha256 86f7ae5f581dd0904d04415637ab3aef5a50986c1b6d04c340e2b1b0258da9c4 |
| 109 | worksrcdir ${name}${version} |
| 110 | |
| 111 | set vstub 3.4 |
| 112 | |
| 113 | conflicts ${name} |
| 114 | |
| 115 | livecheck.type regex |
| 116 | livecheck.url https://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-source/ |
| 117 | livecheck.regex "title=\"(\\d+(?:\\.\\d+)*)\"" |