Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513164 - media-gfx/wkhtmltopdf-0.12.x has been released
Summary: media-gfx/wkhtmltopdf-0.12.x has been released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-14 01:05 UTC by Sebastian Pipping
Modified: 2014-11-27 05:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wkhtmltopdf-0.12.1.ebuild (wkhtmltopdf-0.12.1.ebuild,924 bytes, text/plain)
2014-08-07 10:42 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2014-06-14 01:05:53 UTC
0.12.0
https://github.com/wkhtmltopdf/wkhtmltopdf/releases

0.12.1-9615f00
http://wkhtmltopdf.org/downloads.html
Comment 1 Vladimir Varlamov 2014-07-12 12:47:28 UTC
For native complilation wkhtmltopdf require patched qt (distribute as submodule in their github and with source code tarball) but pathes dont distribute separately. From 0.12.2 possibly complile with vanilla qt which reduces features. Most likely it will be local use-flag. 

http://wkhtmltopdf.org/downloads.html has binaries. You can make additional -bin ebuild.

Both variants generate static included qt build.  This is out from x86_64:

# ldd wkhtmltopdf-amd64-0.12.2-7058a04
        linux-vdso.so.1 (0x00007fffa17ff000)
        libgio-2.0.so.0 => /usr/lib64/libgio-2.0.so.0 (0x00007f1741c6a000)
        libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f1741a19000)
        libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f17416f1000)
        libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00007f174149c000)
        libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f1741269000)
        libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f174105f000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f1740e23000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f1740b84000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f1740972000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f1740638000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f1740422000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f174021e000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f1740016000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f173fdf9000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libstdc++.so.6 (0x00007f173faf1000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f173f7fb000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1 (0x00007f173f5e5000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f173f23b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1741fcd000)
        libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007f173f037000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f173ee20000)
        libffi.so.6 => /usr/lib64/libffi.so.6 (0x00007f173ec17000)
        libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f173e9ec000)
        libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f173e7dc000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f173e5ba000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f173e3b6000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f173e1b0000)

Adn this from wkhtmltox-0.12.1_linux-centos6-i386.rpm

$ ldd wkhtmltopdf 
        linux-gate.so.1 (0xf7798000)
        libjpeg.so.62 => /usr/lib32/libjpeg.so.62 (0xf7703000)
        libpng12.so.0 => /usr/lib32/libpng12.so.0 (0xf76da000)
        libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf76cf000)
        libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf7695000)
        libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf75f9000)
        libXext.so.6 => /usr/lib32/libXext.so.6 (0xf75e7000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf74b1000)
        libz.so.1 => /lib32/libz.so.1 (0xf749a000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7495000)
        librt.so.1 => /lib32/librt.so.1 (0xf748c000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf7470000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/32/libstdc++.so.6 (0xf7381000)
        libm.so.6 => /lib32/libm.so.6 (0xf733e000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/32/libgcc_s.so.1 (0xf7322000)
        libc.so.6 => /lib32/libc.so.6 (0xf7177000)
        /lib/ld-linux.so.2 (0xf7799000)
        libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf714e000)
        libbz2.so.1 => /lib32/libbz2.so.1 (0xf713d000)
        libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf711b000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7117000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf7110000)
Comment 2 Bertrand Jacquin 2014-08-07 10:42:09 UTC
Created attachment 382440 [details]
wkhtmltopdf-0.12.1.ebuild

Here is an update of current tree wkhtmltopdf-0.11.0_rc1.ebuild that :

 - Bump to 0.12.1
 - Update HOMEPAGE
 - Update SRC_URI
 - Use qt4-r2_src_install
 - Drop unnecessary src_configure

I don't like the fact to add INSTALL_ROOT="${ED}/usr" to qt4-r2_src_install but I don't really known how qmake works, and it seems there to not handle prefix.
Comment 3 Bertrand Jacquin 2014-08-08 00:13:21 UTC
wkhtmltopdf QT patch are available at http://git.meleeweb.net/gentoo/etc-portage-patches.git/tree/dev-qt

Those files need to be put in /etc/portage/patches/dev-qt

Then emerge dev-qt/{qtcore,qtgui,qtsvg,qtwebkit,qtxmlpatterns}

epatch_user will be able to apply them before building as qt4-build.eclass call epatch_user.

You then need to rebuild wkhtmltopdf to be able to use extended features.

Instructions for generating patches is available here http://git.meleeweb.net/gentoo/etc-portage-patches.git/tree/dev-qt/NOTES
Comment 4 Kirill Komlev 2014-08-22 11:24:25 UTC
I'm using build.py, that is a part of source tar.

Next ebuild create a static linked wkhtmltopdf with special patched Qt. It's more easy, than your way to create special class for this: 

EAPI=5

inherit eutils

DESCRIPTION="Convert html to pdf (and various image formats) using webkit"
HOMEPAGE="http://wkhtmltopdf.org"
SRC_URI="mirror://sourceforge/${PN}/${PV}/${PN/pdf/x}-${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="examples doc"

DEPEND="dev-lang/python
    media-libs/fontconfig
    media-libs/freetype
    sys-libs/zlib
    virtual/jpeg:0
    media-libs/libpng:0=
    dev-libs/openssl
    x11-libs/libX11
    x11-libs/libXext
    x11-libs/libXrender"

S="${WORKDIR}/${PN/pdf/x}-${PV}"

src_configure() {
    sed -e "s/shell('tar -c -v -f/#\0/" \
        -e "s/shell('xz --compress --force --verbose -9/#\0/" \
        -i ./scripts/build.py || die "Unable to disable tar.xz in build script"
}

src_compile() {
    ./scripts/build.py posix-local
}

src_install() {
    local build_dir=./static-build/posix-local/${PN/pdf/x}-${PV}
    dobin ${build_dir}/bin/*
    doheader -r ${build_dir}/include
    dolib.so ${build_dir}/lib/*
    use examples && dodoc -r examples
    use doc && dodoc README.md CHANGELOG-OLD CHANGELOG.md AUTHORS VERSION COPYING
}
Comment 5 Tim Harder gentoo-dev 2014-11-27 05:04:37 UTC
0.12.1.2 added to the tree.