Updated the haxe & neko macports
Finally got around to update the haxe and neko ports to the latest versions (neko 1.8.1 and haxe 2.0.4).
Actually I got some issues while doing it as I wanted to change the current structure of the neko library to match the proposed structure of the other ports (instead of keeping all files in /opt/local/bin I wanted the libneko.dylib to stay in /opt/local/lib like all the other little .dylibs and such) which took some research as I didn’t previously know how dynamic libraries are linked.
And I also skipped the whole git repository hack for haxe and instead just retrieved the latest versions and packaged them into a nice little tar instead.
Besides that I’m also using unmodified sources this time, as the previous Mac OS X issues has been patched now (thanks Nicolas!). This means that the step to using the CVS sources instead should be rather easy whenever this has been tested a bit.
So, if you already fetched my private little ports repository you should only have to do a git pull and you’re up-to-date and should just have to run sudo port update (I haven’t tested this though as I removed the old one while modifying my portfiles). But if you’re new to this, here’s some quick instructions (and here’s the real instructions):
Note: This example assumes that:
- You’ll keep your repository in your user directory, also known as “~”.
- You’re using the default macports prefix, “/opt/local”
- And, there’s no previous neko or haxe installations as they might cause some conflicts (simply remove them if there are)
- Start a terminal session and navigate to your home dir:
cd ~ - Fetch a clone of the ports repository:
git clone git://github.com/slaskis/ports.git - Edit the macports sources.conf:
pico /opt/local/etc/macports/sources.conf - Add this line anywhere above the previous “rsync:…”-line (but substitute {username} with your actual user name):
file:///Users/{username}/ports [nosync] - Install haxe and neko:
sudo port install haxe - Follow the instructions after the installs. It’ll be instructions from both the neko install and haxe install, so don’t miss them or it’ll have problems finding the tools.
- (optional) Install hxcpp and enjoy the fresh fruits of 2.0.4!
haxelib install hxcpp
And don’t forget to read why you should actually install this in the first place:
What’s missing in the neko port right now is mod_neko and mod_tora apache support (besides other useful libraries, like postgresql perhaps?), I havn’t needed these myself yet, but feel free to fork my repository and help out!
sitting in a pleasant sofa is fun.
combine for double the fun.