Is there a script or a standard to translate program names such as part of an URL like "gst-plugins-base" into the GoboLinux name e. g. "GST-plugins-base"?

Robert Alexander <[email protected]> Sat, 2 Sep 2017 19:55:13 +0200
Newsgroups gmane.linux.distributions.gobo.general
Message-ID <CAFie_AADYpNPru-FQAQifUvapV9erth36xyr86kmc6OSESWh2Q@mail.gmail.com>
--===============1016061702621850141==
Content-Type: multipart/alternative; boundary="001a113fb1505e9813055838946f"

--001a113fb1505e9813055838946f
Content-Type: text/plain; charset="UTF-8"

Hello GoboFolks,

Just a somewhat brief question this time.

- Is there a way in GoboLinux, a script or some standard, to know what
specific
"Gobo" name a particular input program name will have?

To give you a specific example, take the program called "gst-plugins-base",
with the following recent URL:


http://ftp.gnome.org/pub/GNOME/sources/gst-plugins-base/1.12/gst-plugins-base-1.12.2.tar.xz

I picked the following old recipe here as example by Lucas from +10 years
ago,
see at the bottom of the list on that URL:


http://recipes.gobolinux.org/r/?list=GST-Plugins-Base&ver=0.10.9-r2&file=Recipe

You can see that the name is "GST-Plugins-Base".

So in the above, something that could, e. g. turn the input String:

  "gst-plugins-base-1.12.2.tar.xz"

into the corresponding name on GoboLinux, being:

  "GST-Plugins-Base-1.12.2"

(You can ignore the version number; I am only interest in the "translated"
GoboLinux program name there.)

The reason why I ask specifically is because in my ruby cookbooks project,
I keep track of programs in yaml files (with the .yml "extension" name).

Therein I use a simpler scheme, which is the downcased input, and all
'-' and '_' removed, as starting name. So for example, the above would be
a local file called "gstpluginsbase.yml".

Other scripts can then turn this into the "proper" name, in particular
the one that can be used by a configure script via, for example,

  ./configure --prefix=/Programs/Gstpluginsbase/1.12.2

or ideally, with the GoboLinux naming scheme, then being:

  ./configure --prefix=/Programs/GST-Plugins-Base/1.12.2

That is the primary reason why I would like to know if there is a script
already existing; or a standard that one could read or se. Even if neither
one exists, I can write a script that can scan the (remote or local)
GoboLinux
recipes and automatically add a hardcoded entry towards each local .yml
files
that I have - but of course, a standard for the naming convention, or an
existing script, may be easier to re-use (or perhaps re-implement for me
in ruby).

When I have this, I think that I will also be able to eventually
auto-generate
all recent, aka modern, GoboLinux recipes eventually (I am already tracking
3009 programs so far and adding new entries is quite easy; I'll start with
auto-generating the simpler GoboLinux recipes, but this may still take a
while. On a side note, I also finally have a spare computer and a spare
ethernet cable, so I think I can eventually get GoboLinux running on a
second machine. The primary one is keeping slackware mostly as a tinker
OS).

Hope I could explain why I may consider this useful. Cheers! :)

--001a113fb1505e9813055838946f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello GoboFolks,<br><br>Just a somewhat brief question thi=
s time.<br><br>- Is there a way in GoboLinux, a script or some standard, to=
 know what specific<br>&quot;Gobo&quot; name a particular input program nam=
e will have?<br><br>To give you a specific example, take the program called=
 &quot;gst-plugins-base&quot;,<br>with the following recent URL:<br><br>=C2=
=A0 <a href=3D"http://ftp.gnome.org/pub/GNOME/sources/gst-plugins-base/1.12=
/gst-plugins-base-1.12.2.tar.xz">http://ftp.gnome.org/pub/GNOME/sources/gst=
-plugins-base/1.12/gst-plugins-base-1.12.2.tar.xz</a><br><br>I picked the f=
ollowing old recipe here as example by Lucas from +10 years ago,<br>see at =
the bottom of the list on that URL:<br>=C2=A0<br>=C2=A0 <a href=3D"http://r=
ecipes.gobolinux.org/r/?list=3DGST-Plugins-Base&amp;ver=3D0.10.9-r2&amp;fil=
e=3DRecipe">http://recipes.gobolinux.org/r/?list=3DGST-Plugins-Base&amp;ver=
=3D0.10.9-r2&amp;file=3DRecipe</a><br><br>You can see that the name is &quo=
t;GST-Plugins-Base&quot;.<br><br>So in the above, something that could, e. =
g. turn the input String:<br><br>=C2=A0 &quot;gst-plugins-base-1.12.2.tar.x=
z&quot;<br><br>into the corresponding name on GoboLinux, being:<br><br>=C2=
=A0 &quot;GST-Plugins-Base-1.12.2&quot;<br><br>(You can ignore the version =
number; I am only interest in the &quot;translated&quot;<br>GoboLinux progr=
am name there.)<br><br>The reason why I ask specifically is because in my r=
uby cookbooks project,<br>I keep track of programs in yaml files (with the =
.yml &quot;extension&quot; name).<br><br>Therein I use a simpler scheme, wh=
ich is the downcased input, and all <br>&#39;-&#39; and &#39;_&#39; removed=
, as starting name. So for example, the above would be<br>a local file call=
ed &quot;gstpluginsbase.yml&quot;.<br><br>Other scripts can then turn this =
into the &quot;proper&quot; name, in particular<br>the one that can be used=
 by a configure script via, for example,<br><br>=C2=A0 ./configure --prefix=
=3D/Programs/Gstpluginsbase/1.12.2<br><br>or ideally, with the GoboLinux na=
ming scheme, then being:<br><br>=C2=A0 ./configure --prefix=3D/Programs/GST=
-Plugins-Base/1.12.2<br><br>That is the primary reason why I would like to =
know if there is a script<br>already existing; or a standard that one could=
 read or se. Even if neither<br>one exists, I can write a script that can s=
can the (remote or local) GoboLinux<br>recipes and automatically add a hard=
coded entry towards each local .yml files<br>that I have - but of course, a=
 standard for the naming convention, or an<br>existing script, may be easie=
r to re-use (or perhaps re-implement for me<br>in ruby).<br><br>When I have=
 this, I think that I will also be able to eventually auto-generate<br>all =
recent, aka modern, GoboLinux recipes eventually (I am already tracking<br>=
3009 programs so far and adding new entries is quite easy; I&#39;ll start w=
ith<br>auto-generating the simpler GoboLinux recipes, but this may still ta=
ke a <br>while. On a side note, I also finally have a spare computer and a =
spare<br>ethernet cable, so I think I can eventually get GoboLinux running =
on a<br>second machine. The primary one is keeping slackware mostly as a ti=
nker<br>OS).<br><br>Hope I could explain why I may consider this useful. Ch=
eers! :)<br></div>

--001a113fb1505e9813055838946f--

--===============1016061702621850141==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZ29ib2xpbnV4
LXVzZXJzIG1haWxpbmcgbGlzdApnb2JvbGludXgtdXNlcnNAbGlzdHMuZ29ib2xpbnV4Lm9yZwpo
dHRwOi8vbGlzdHMuZ29ib2xpbnV4Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL2dvYm9saW51eC11c2Vy
cwo=

--===============1016061702621850141==--