so-fancy / diff-so-fancy

Good-lookin' diffs. Actually… nah… The best-lookin' diffs. :tada:
MIT License
17.36k stars 335 forks source link

Question about packaging #455

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi, I want to package this for Haiku (as I use it on it).

I'd like to know if it is possible to move the lib/ contents into a system library folder instead, so that the main script can still find it.

One complication for this in haiku packages is that they can be mounted anywhere, in theory anyhow. (in practice only the haikuporter tool does this currently, but it uses a chroot for that) So my question would be, can i patch the script so it would find the library as long as it is in the standard LIBRARY_PATH?

as a second question: is the stuff in third_party required? (that is is the script + lib/ the only thing needed?)

scottchiefbaker commented 1 year ago

@nephele-gh you should only need ONE file if you want to package d-s-f. The easiest thing to do is get the standalone version from the latest release: https://github.com/so-fancy/diff-so-fancy/releases/tag/v1.4.3

That first file is the fatpacked version of d-s-f with the included modules built in.

ghost commented 1 year ago

Thanks! I have added a patch to package it. https://github.com/haikuports/haikuports/pull/7872

scottchiefbaker commented 1 year ago

👍

ghost commented 1 year ago

diff-so-fancy is now available on haiku. :)

OJFord commented 1 year ago

Haiku now has diffs so much fancier than be- -fore. All thanks to you.