Re: [NTG-context] Homebrew packaging for macOS

2018-10-09 Thread Hans Åberg

> On 7 Oct 2018, at 19:08, Mojca Miklavec  
> 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-, 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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Mojca Miklavec
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 
> )?

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 
> .

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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Hans Åberg

> On 7 Oct 2018, at 12:45, Hans Hagen  wrote:
> 
> On 10/7/2018 10:56 AM, Hans Åberg wrote:
>>> On 7 Oct 2018, at 01:32, Hans Hagen  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 
 )? 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-.
>> 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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Hans Hagen

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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Hans Hagen

On 10/7/2018 10:56 AM, Hans Åberg wrote:



On 7 Oct 2018, at 01:32, Hans Hagen  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 
)? 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-.

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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Jan U. Hasecke
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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Hans Åberg

> On 7 Oct 2018, at 01:32, Hans Hagen  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 
>> )? 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-.

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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-06 Thread Andrew Dunning

> On 7 Oct 2018, at 01:32, Hans Hagen  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
___

Re: [NTG-context] Homebrew packaging for macOS

2018-10-06 Thread Hans Hagen

On 10/7/2018 1:24 AM, Andrew Dunning wrote:

Dear list,

Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see 
)? 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 
.

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
___

[NTG-context] Homebrew packaging for macOS

2018-10-06 Thread Andrew Dunning
Dear list,

Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see 
)? 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 
.

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
___