On Friday October 07 2016 14:25:11 David Bariod wrote:
Hi,
Yes, something like that could work, but it may be a bit less trivial than that.
R.
>It's been a long time I haven't done Tcl development, but from memory:
>
>namespace eval {
> --> your code here <---
>}
>
>should do what you're t
It's been a long time I haven't done Tcl development, but from memory:
namespace eval {
--> your code here <---
}
should do what you're trying to do.
--
David
On Fri, Oct 7, 2016 at 2:12 PM, René J.V. Bertin
wrote:
> sorry for the noise, it seems I can simply use
>
> namespace upvar kf5
sorry for the noise, it seems I can simply use
namespace upvar kf5 ${name}_dep dep
etc.
Now, would it be possible and worth the trouble to put kf5.framework_dependency
procedure itself into the dedicated namespace?
R.
___
macports-dev mailing list
Hi,
I have a procedure in a PortGroup that is used to define dependency variables
for KF5, hiding the whole mechanism behind kf5-foo and kf5-foo-devel
interchangeability from the casual port developer (and making it easy for
myself too).
Basically:
{{{
proc kf5.framework_dependency {name {lib
On Wednesday November 11 2015 11:30:11 René J.V. Bertin wrote:
sh@@t, sorry for the noise, turns out [info exists dep] doesn't check for the
variable dep, but the variable it links to:
>upvar #0 kf5.${name}_dep dep
R.
___
macports-dev mailing list
Hi,
I'm working on KF5 Portfiles, and have the following routine to help defining
dependencies in the PortGroup:
{{{
# variables to facilitate setting up dependencies to KF5 frameworks that may
(or not)
# also exist as port:kf5-foo-devel .
proc kf5.framework_dependency {name {library 0}} {
On 2013-12-10 16:18, Peter Danecek wrote:
> I would like to count the occurrences of a character, more specifically of
> the `.` in the ${version} option. Asking Big Brother Google, there seem to be
> quite some possibilities, so I came up with the following solutions:
>
> set dot_count [
Hi all,
I would like to count the occurrences of a character, more specifically of the
`.` in the ${version} option. Asking Big Brother Google, there seem to be quite
some possibilities, so I came up with the following solutions:
set dot_count [ regsub -all "\\." ${version} {} ignore ]
On Sep 19, 2013, at 9:37 AM, Peter Danecek wrote:
> I see there is the `ln` alias. So I tried to replace the following line
>file link ${worksrcpath}/TestBitVector/BitVector.py ../BitVector.py
>
> with
>ln ../BitVector.py ${worksrcpath}/TestBitVector/BitVector.py
>
> The first work
I submitted two ports in #40533 & #40534, where these code snippet come from.
Please, go ahead to review them.
Thanks!
~petr
On Sep 19, 2013, at 14:55 , Rainer Müller wrote:
> On 2013-09-19 14:51, Peter Danecek wrote:
>> Thanks for your quick replies.
>> Where can I find some list of these al
Okay, I now understand this one.
On Sep 19, 2013, at 15:37 , Peter Danecek wrote:
>
>>> Another one:
>>> I also try to copy some examples into a doc directory I am trying this:
>>> --- snip ---
>>> post-destroot {
>>> file copy ${worksrcpath}/${distname}.html
>>> ${destroot}${prefix}/share/do
On Sep 19, 2013, at 14:55 , Rainer Müller wrote:
> On 2013-09-19 14:51, Peter Danecek wrote:
>> Thanks for your quick replies.
>> Where can I find some list of these aliases?
>
> There are not many procedural statements to be used in Portfiles
> (otherwise we are missing a necessary declarative
On 2013-09-19 14:51, Peter Danecek wrote:
> Thanks for your quick replies.
> Where can I find some list of these aliases?
There are not many procedural statements to be used in Portfiles
(otherwise we are missing a necessary declarative abstraction):
https://www.macports.org/guide/#reference.tcl-
[Sorry for the incomplete mail, I sent in unintentionally.]
Thanks for your quick replies.
Where can I find some list of these aliases?
Another one:
I also try to copy some examples into a doc directory I am trying this:
--- snip ---
post-destroot {
file copy ${worksrcpath}/${distname}.html
Thanks for your quick replies.
Where can I find some list of these aliases?
Another one:
I also try to copy some examples into a doc directory I am trying this:
On Sep 19, 2013, at 13:43 , Clemens Lang wrote:
> On Thu, Sep 19, 2013 at 06:24:17AM -0500, Ryan Schmidt wrote:
>> To combine them
On Thu, Sep 19, 2013 at 06:24:17AM -0500, Ryan Schmidt wrote:
> To combine them you probably need eval:
>
> eval delete [glob */*.pyc]
The problem here is that delete (or file delete) expect the files to be
deleted as (multiple) parameters, but [glob */*.pyc] returns a list of
files (which is one
On Sep 19, 2013, at 06:16, Peter Danecek wrote:
> So would like to delete some file (as a pre-patch step) to get a clean source
> directory before the build. When I put the file names all works fine, but I
> would like to be less verbose, so I am trying something like this:
>
> --- snip ---
>
Hi all,
I have little experience with Tcl, so apologise for this potentially stupid
question but I failed to find the answer with some browsing.
So would like to delete some file (as a pre-patch step) to get a clean source
directory before the build. When I put the file names all works fine, b
18 matches
Mail list logo