[aur-general] IJulia and Julia library/module packages
Jonathon Fernyhough
jonathon at manjaro.org
Sun Sep 2 20:33:58 UTC 2018
Thanks Eli. :)
On 02/09/2018 17:42, Eli Schwartz via aur-general wrote:
> - declaring a "custom" license when it is in fact MIT
Hmm... while the GitHub page
(https://github.com/JuliaLang/IJulia.jl/blob/master/LICENSE.md) says MIT
in the top banner, the file itself doesn't mention MIT... but looking
more closely at the text itself, it's the MIT license.
> - not quoting srcdir/pkgdir
Ah, yes.
>> Of particular note is the very hacky way of creating files which would
>> otherwise be generated by Pkg.build()... there _must_ be a cleaner way
>> of doing that.
>
> Try to see if Pkg.build() can run in a "$srcdir" environment to "build"
> the project in build(), complete with necessary runtime-generated files.
> Then cp this over instead.
>
That was... interesting. It's possible to run the modules' "build.jl"
script but it has to be tweaked/patched to prevent installing files
under $HOME. I couldn't see an easy way of setting e.g. $PREFIX which
may mean Julia does things in its own way - or most modules aren't
designed for installing system-wide.
> Anyway, you probably want to provide the files in source=() rather than
> inlined through messy, difficult-to-read-and-review heredocs. It would
> separate the data you're trying to install, from the process you use to
> install it...
>
Now I've mostly worked out how to wrangle "build.jl" to work with a
"custom" location/prefix I'll have to go back through the other julia-*
dependent packages and get those in line.
J
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20180902/97ebe6ea/attachment.asc>
More information about the aur-general
mailing list