On 9/2/18 4:33 PM, Jonathon Fernyhough wrote:
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...
You can lie and use: HOME="$srcdir/temp" julia ... Generally, software will believe you when you export the $HOME variable yourself. :) -- Eli Schwartz Bug Wrangler and Trusted User