It seems libharu can be built into php. The following article describes the steps outside of portage env: http://devzone.zend.com/article/4044-Dynamically-Generating-PDF-Files-with-PHP-and-Haru- It seems all is necessary is to make sure libharu is emerged and to add --with-haru=/usr/local to the build string. Reproducible: Always
Wow, this bug is ancient. I'm sorry for not replying sooner. I've added pecl-haru to the overlay. If testing's fine, I'll migrate it to the main tree.
Thanks Matti! I'll do some testing and report back!
*** Bug 319681 has been marked as a duplicate of this bug. ***
Seems like a small bug: lastochka ~ # emerge -av pecl-haru These are the packages that would be merged, in order: Calculating dependencies - * Digest verification failed: * /var/lib/layman/php/dev-php5/pecl-haru/pecl-haru-1.0.0.ebuild * Reason: Filesize does not match recorded size * Got: 680 * Expected: 651
Although it's weird, the Manifest for the package has the correct size: EBUILD pecl-haru-1.0.0.ebuild 651 RMD160 Not sure where it's getting 680 from?
Sorry, a bit tired :) Sorry this isn't a patch, but here's the correct line for the Manifest: EBUILD pecl-haru-1.0.0.ebuild 680 RMD160 25df20a1a65938316273b495d4b5a5b8009343bc SHA1 28340bc32dfcc4da05b5f7f96fec68fe58f606b9 SHA256 34baf135831a8e8132f627b6fdb37aa3975fda87c73d496ce7a48d40db6b3495
I confirm pecl-haru builds just fine on amd64.
As I understand, the php ebuild now needs to be changed to reflect the new haru USE flag? I'm not great at this part, but I've tried to add the flag in the ebuild. I can get it to appear in the list when doing a merge, but I can't get it to add the --with-haru=<path/to/haru> when doing ./configure. If someone can point me to where that should be added, I can post .patch files shortly.
Quite probable that I broke the Manifest. Sorry about that, I'll fix it later today. And no, you don't need anything in PHP. Just emerge pecl-haru. It'll be added to php as an extension (shared library object) and gets loaded when you start PHP.
Ah I see, I guess I missed the restart of apache post install. All works now. I'll do a few more tests and report back here shortly. Thanks!
Sorry for the delay in getting back. All works great for me. Just in case: Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.31-gentoo-r6 x86_64) Thanks!
Matti, can you please commit the Manifest with correct checksums?
Seems to be working fine here, so commited.