Found here: http://lloydforge.org/projects/yajl/ Reproducible: Always
Created attachment 188608 [details] Here is a first crack at an ebuild to install the yajl JSON parser C library The author has written his own configure script in ruby, and uses cmake. The script defaults prefix to /usr/local I have a patch that fixes it to honor the --prefix flag to allow for --prefix /usr. However, the "make all" target compiles, runs the tests, and installs everything to a subdir anyways, which I just move to ${D}/usr, since his "make install" target does not include the docs. I have also written a patch for the source that makes it pass his integer.json test case. This case fails on amd64 because in 32-bit it expects 2147483648 to cause an overflow error, which now doesn't since long int is 64 bits. The decision was thus: a) allow 64-bit platforms to handle larger numerical values and change the testing to match b) make sure that all platforms exhibit the exact same behavior I think (b) is a better option, and probably consistent with javascript in browsers. I could find nothing in the rfc specifying numerical limits for json. So, I chose (b) and patched the sources to use int32_t for integers. I only apply the patch on 64 bit platforms.
Created attachment 188609 [details, diff] patch for 64bit arches use int32_t on 64bit machines to make numerical limits behave the same as on 32bit
Created attachment 188610 [details, diff] fix custom configure script so that --prefix argument is honored it works, but is not used by the ebuild atm
Removing Java
Created attachment 219571 [details] ebuild for yajl 1.0.9 using cmake This is a ebuild for yajl 1.0.9 that uses CMake to build yajl. It is based of the ebuild for dev-libs/qjson-0.7.1. Two patch files to follow.
Created attachment 219573 [details, diff] patch for 1.0.9 ebuild to fix multilib support. fix multilib support. for verion 1.0.9
Created attachment 219575 [details, diff] fix doxygen config. for 1.0.9
FLameeyes pushed it on tree so this bug may close now Ondrej, Diego ( flameeyes ) pushed yajl-1.0.9 on portage tree. I recommend you to talk to him to include the live ebuild from sunrise as well since as per policy, we do not allow packages from portage tree to be on sunrise as well. Please let me know about your further actions. We can either drop the live ebuild from sunrise or talk to Diego and move it to portage Thanks
The live ebuild has been removed from Sunrise.