Hello Christopher,

That's the Downloads link on the first hit on Google for me when searching for "yuicompressor". Are you quite new to using open source software?

Mind you, we don't have openjdk, Oracle's open source version of Java-- the most complete one I think, in MacPorts yet. It seems it won't be simple to put in until OpenJDK 9 is out, when they'll support clang. gcj (the GNU compiler collection version) is dead (or "certainly lying down" http://stackoverflow.com/questions/4035538/is-gnus-java-compiler-gcj-dead ), and I'm not sure what state kaffe (another open source Java) is in, but IIRC it's far less complete than OpenJDK.

The usual ways for ports to depend on java seem to be

1) "depends_lib bin:java:kaffe" or similar to use any java binary in the path, e.g. from Oracle's installer, or install the port "kaffe" (that's what jruby does along with 54 or so other ports; port -q search java 2>/dev/null | xargs port cat 2>/dev/null | grep bin:java:kaffe | wc -l ) or

2) using the java PortGroup (as 8 do; port -q search java 2>/dev/null | xargs port cat 2>/dev/null | egrep 'PortGroup.*java' | wc -l ).

You could also use the github PortGroup to install a particular release. See also https://guide.macports.org/chunked/development.creating-portfile.html

If you decide to have a go at drafting a Portfile (the easiest way is to look at existing ones-- and it's not that hard), it'd be best to post to macports-dev if you need help.

Russell


On 12/12/16 21:20, Christopher Stone wrote:
On Dec 12, 2016, at 03:47, Russell Jones <[email protected] <mailto:[email protected]>> wrote:
alias yuic = "java -jar ~/path/to/yuicompressor-x.y.z.jar"
Hey Russell,

Thanks.

I have no problem at all using an alias for such a thing – but the module is not installed, and I couldn't find it yesterday after quite a lot of searching.

I took another crack at it today and finally found it.

https://github.com/yui/yuicompressor/releases

--
Best Regards,
Chris


Reply via email to