ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Homebrew packaging for macOS
@ 2018-10-06 23:24 Andrew Dunning
  2018-10-06 23:32 ` Hans Hagen
  2018-10-07 17:08 ` Mojca Miklavec
  0 siblings, 2 replies; 10+ messages in thread
From: Andrew Dunning @ 2018-10-06 23:24 UTC (permalink / raw)
  To: ntg-context

Dear list,

Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see <https://brew.sh>)? Providing it as an installation option would make it far easier to obtain the latest version.

In looking into it myself, I immediately came across the problem of not being exactly sure where to find a versioned download link. See their guidelines at <https://docs.brew.sh/Acceptable-Formulae>.

All best,

Andrew Dunning

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-06 23:24 Homebrew packaging for macOS Andrew Dunning
@ 2018-10-06 23:32 ` Hans Hagen
  2018-10-06 23:39   ` Andrew Dunning
  2018-10-07  8:56   ` Hans Åberg
  2018-10-07 17:08 ` Mojca Miklavec
  1 sibling, 2 replies; 10+ messages in thread
From: Hans Hagen @ 2018-10-06 23:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Andrew Dunning

On 10/7/2018 1:24 AM, Andrew Dunning wrote:
> Dear list,
> 
> Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see <https://brew.sh>)? Providing it as an installation option would make it far easier to obtain the latest version.

How do you now update? It's just one recall to first-setup.sh

> In looking into it myself, I immediately came across the problem of not being exactly sure where to find a versioned download link. See their guidelines at <https://docs.brew.sh/Acceptable-Formulae>.
> 
> All best,
> 
> Andrew Dunning
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-06 23:32 ` Hans Hagen
@ 2018-10-06 23:39   ` Andrew Dunning
  2018-10-07  9:32     ` Jan U. Hasecke
  2018-10-07  8:56   ` Hans Åberg
  1 sibling, 1 reply; 10+ messages in thread
From: Andrew Dunning @ 2018-10-06 23:39 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


> On 7 Oct 2018, at 01:32, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> How do you now update? It's just one recall to first-setup.sh

Thanks for the response: to be more precise, my suggestion is more about building discoverability and trust for ConTeXt. Homebrew provides an extremely simple way of installing and uninstalling things along with any dependencies.

I think it might be possible to get the script version into Homebrew Cask as it stands, but it would be nicer if it could get directly into Homebrew if that is possible.

All best,

Andrew


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-06 23:32 ` Hans Hagen
  2018-10-06 23:39   ` Andrew Dunning
@ 2018-10-07  8:56   ` Hans Åberg
  2018-10-07 10:45     ` Hans Hagen
  1 sibling, 1 reply; 10+ messages in thread
From: Hans Åberg @ 2018-10-07  8:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Andrew Dunning


> On 7 Oct 2018, at 01:32, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 10/7/2018 1:24 AM, Andrew Dunning wrote:
>> Dear list,
>> Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see <https://brew.sh>)? Providing it as an installation option would make it far easier to obtain the latest version.
> 
> How do you now update? It's just one recall to first-setup.sh

It would be better to put the development version in TeXLive as a separate package—on MacOS, it comes with the TeX Live Utility which gives update notifications frequently, once a week, but one can run it more frequently by hand. Just give it a different name than from the ordinary distribution, say context-<version>.

When I used the beta, it was difficult to switch with other TeX software. So this might be better.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-06 23:39   ` Andrew Dunning
@ 2018-10-07  9:32     ` Jan U. Hasecke
  2018-10-07 10:47       ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Jan U. Hasecke @ 2018-10-07  9:32 UTC (permalink / raw)
  To: ntg-context

On 07.10.18 01:39, Andrew Dunning wrote:
> I think it might be possible to get the script version into Homebrew Cask as it stands, but it would be nicer if it could get directly into Homebrew if that is possible.

This project
https://pi-hole.net/

has the install command line right on the front page.

I think we could have something like this on the frontpage of the wiki
for quick installation.

A script that does all this:

mkdir ~/context
cd ~/context
wget http://minimals.contextgarden.net/setup/first-setup.sh
sh ./first-setup.sh --modules=all


So people could install the latest beta with something like this:

curl http://minimals.contextgarden.net/setup/first-setup.sh | bash


juh
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-07  8:56   ` Hans Åberg
@ 2018-10-07 10:45     ` Hans Hagen
  2018-10-07 13:06       ` Hans Åberg
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2018-10-07 10:45 UTC (permalink / raw)
  To: Hans Åberg, mailing list for ConTeXt users; +Cc: Andrew Dunning

On 10/7/2018 10:56 AM, Hans Åberg wrote:
> 
>> On 7 Oct 2018, at 01:32, Hans Hagen <j.hagen@xs4all.nl> wrote:
>>
>> On 10/7/2018 1:24 AM, Andrew Dunning wrote:
>>> Dear list,
>>> Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see <https://brew.sh>)? Providing it as an installation option would make it far easier to obtain the latest version.
>>
>> How do you now update? It's just one recall to first-setup.sh
> 
> It would be better to put the development version in TeXLive as a separate package—on MacOS, it comes with the TeX Live Utility which gives update notifications frequently, once a week, but one can run it more frequently by hand. Just give it a different name than from the ordinary distribution, say context-<version>.
> 
> When I used the beta, it was difficult to switch with other TeX software. So this might be better.
hm, you can install context alongside texlive and just change the path 
as everything else is picked up from that (also a lightweight context 
distribution is normally faster than context in texlive)

(till now we only update context in telive once per year and i don't 
know if mojca pushes the latest context in there for the updating; till 
now often it went in sync with a luatex update)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-07  9:32     ` Jan U. Hasecke
@ 2018-10-07 10:47       ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2018-10-07 10:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jan U. Hasecke

On 10/7/2018 11:32 AM, Jan U. Hasecke wrote:
> On 07.10.18 01:39, Andrew Dunning wrote:
>> I think it might be possible to get the script version into Homebrew Cask as it stands, but it would be nicer if it could get directly into Homebrew if that is possible.
> 
> This project
> https://pi-hole.net/
> 
> has the install command line right on the front page.
> 
> I think we could have something like this on the frontpage of the wiki
> for quick installation.
> 
> A script that does all this:
> 
> mkdir ~/context
> cd ~/context
> wget http://minimals.contextgarden.net/setup/first-setup.sh
> sh ./first-setup.sh --modules=all
> 
> 
> So people could install the latest beta with something like this:
> 
> curl http://minimals.contextgarden.net/setup/first-setup.sh | bash
but after that updating is just calling first-setup again, no need to 
reinstall

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-07 10:45     ` Hans Hagen
@ 2018-10-07 13:06       ` Hans Åberg
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Åberg @ 2018-10-07 13:06 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users, Andrew Dunning


> On 7 Oct 2018, at 12:45, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 10/7/2018 10:56 AM, Hans Åberg wrote:
>>> On 7 Oct 2018, at 01:32, Hans Hagen <j.hagen@xs4all.nl> wrote:
>>> 
>>> On 10/7/2018 1:24 AM, Andrew Dunning wrote:
>>>> Dear list,
>>>> Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see <https://brew.sh>)? Providing it as an installation option would make it far easier to obtain the latest version.
>>> 
>>> How do you now update? It's just one recall to first-setup.sh
>> It would be better to put the development version in TeXLive as a separate package—on MacOS, it comes with the TeX Live Utility which gives update notifications frequently, once a week, but one can run it more frequently by hand. Just give it a different name than from the ordinary distribution, say context-<version>.
>> When I used the beta, it was difficult to switch with other TeX software. So this might be better.
> hm, you can install context alongside texlive and just change the path as everything else is picked up from that (also a lightweight context distribution is normally faster than context in texlive)

I don't recall the problem, maybe using LuaTeX in another context that ConTeXt, so having to keep track of that switch.

> (till now we only update context in telive once per year and i don't know if mojca pushes the latest context in there for the updating; till now often it went in sync with a luatex update)

I get weekly update update notices from the TeX Live Utility, so it seems working fine at that end.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-06 23:24 Homebrew packaging for macOS Andrew Dunning
  2018-10-06 23:32 ` Hans Hagen
@ 2018-10-07 17:08 ` Mojca Miklavec
  2018-10-09 13:26   ` Hans Åberg
  1 sibling, 1 reply; 10+ messages in thread
From: Mojca Miklavec @ 2018-10-07 17:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 7 Oct 2018 at 01:24, Andrew Dunning wrote:
>
> Dear list,
>
> Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see <https://brew.sh>)?

I'm not aware of any such effort so far, but we gladly help you if you
are willing to invest effort into creating one yourself.

> Providing it as an installation option would make it far easier to obtain the latest version.

Obtaining the latest version is already relatively easy, but I fully
understand your point :)

> In looking into it myself, I immediately came across the problem of not being exactly sure where to find a versioned download link. See their guidelines at <https://docs.brew.sh/Acceptable-Formulae>.

Maybe
    https://github.com/contextgarden/context-mirror
comes closest to what you are looking for, but note that ConTeXt
provides several releases per day (or maybe a release every few days
at most) which is more resembling individual commits in other projects
than one release per every few months as would be common with other
projects.

The only thing that comes somewhat closer to a release is a version
that gets released with TeX Live once per year, but that's not in line
with your desire to easily get the latest version. We had the latest
version of ConTeXt in TLContrib repository for a while which could
probably be reinstated if desired, but that means using MacTeX (even
if from HB).

If you want to provide a package for HB, you either need to use "HEAD"
or create a cron job that will update the package definition several
times per day :) :) :)

But note that installing ConTeXt alone is not sufficient. You also
need LuaTeX, a bunch of fonts and other files (I'm not sure which
ones; with the old ConTeXt MKII it was a lot more dependencies than
with the new ConTeXt MKIV). The easiest way would be to install TeX
Live as a dependency, but from what I saw I suspect that HB only
packages MacTeX as a binary installation. You could install ConTeXt on
top of that in a way that doesn't conflict. Alternatively you need to
spend (quite some) effort figuring out what exactly is needed.

I'll probably create another git repository with a standalone
installation, but it's not yet ready and you should not count on it.

I suspect that you'll find a slightly hard time getting this package
into core HomeBrew and that you'll need to provide your own
repository, but I might be wrong. I decided against providing a
package for MacPorts precisely because it's not really practical to
update a package definition every few days.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Homebrew packaging for macOS
  2018-10-07 17:08 ` Mojca Miklavec
@ 2018-10-09 13:26   ` Hans Åberg
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Åberg @ 2018-10-09 13:26 UTC (permalink / raw)
  To: Mojca Miklavec; +Cc: mailing list for ConTeXt users


> On 7 Oct 2018, at 19:08, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> 
> The only thing that comes somewhat closer to a release is a version
> that gets released with TeX Live once per year, but that's not in line
> with your desire to easily get the latest version.

The Tex Live archive is updated continuously: On MacOS, the TeX Live Utility gives weekly update notifications, though one can update more frequently by hand.

> But note that installing ConTeXt alone is not sufficient. You also
> need LuaTeX, a bunch of fonts and other files (I'm not sure which
> ones; with the old ConTeXt MKII it was a lot more dependencies than
> with the new ConTeXt MKIV).

This is a problem with the development version, which looks up luatex via the PATH, I think, which causes a conflict if one needs the luatex in the Tex Live distribution. 

> The easiest way would be to install TeX
> Live as a dependency,

A way might be to give the development version a different name, say context-<version>, making sure it just looks up its own resources, and put it in the TeX Live archive, updated regularly. Then those that runs the TeX Live Utility will have access to it.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-10-09 13:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-06 23:24 Homebrew packaging for macOS Andrew Dunning
2018-10-06 23:32 ` Hans Hagen
2018-10-06 23:39   ` Andrew Dunning
2018-10-07  9:32     ` Jan U. Hasecke
2018-10-07 10:47       ` Hans Hagen
2018-10-07  8:56   ` Hans Åberg
2018-10-07 10:45     ` Hans Hagen
2018-10-07 13:06       ` Hans Åberg
2018-10-07 17:08 ` Mojca Miklavec
2018-10-09 13:26   ` Hans Åberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).