diff options
author | Samuli Suominen <drac@gentoo.org> | 2008-06-27 13:05:44 +0000 |
---|---|---|
committer | Samuli Suominen <drac@gentoo.org> | 2008-06-27 13:05:44 +0000 |
commit | 1254adf9e126059cfcd1c5a9cc2085e3c3367efa (patch) | |
tree | 4b9c4cf826bde547cf8f4bbad5ca7ada2b90c7f1 /media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild | |
parent | mentioned wrong bug # in changelog (diff) | |
download | gentoo-2-1254adf9e126059cfcd1c5a9cc2085e3c3367efa.tar.gz gentoo-2-1254adf9e126059cfcd1c5a9cc2085e3c3367efa.tar.bz2 gentoo-2-1254adf9e126059cfcd1c5a9cc2085e3c3367efa.zip |
Initial commit for bug 207693, thanks to Oliver Borm.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc3 x86_64)
Diffstat (limited to 'media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild')
-rw-r--r-- | media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild b/media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild new file mode 100644 index 000000000000..b1621df20069 --- /dev/null +++ b/media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild,v 1.1 2008/06/27 13:05:44 drac Exp $ + +inherit eutils + +DESCRIPTION="pdf2svg is based on poppler and cairo and can convert pdf to svg files" +HOMEPAGE="http://www.cityinthesky.co.uk/pdf2svg.html" +SRC_URI="http://www.cityinthesky.co.uk/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=app-text/poppler-0.5.4 + >=x11-libs/cairo-1.2.6 + >=x11-libs/gtk+-2" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +pkg_setup() { + if ! built_with_use x11-libs/cairo svg; then + die "Re-emerge x11-libs/cairo with USE svg." + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i -e \ + 's:#include <stdio.h>:#include <stdio.h>\n#include <stdlib.h>:' \ + ${PN}.c || die "sed failed." +} +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS ChangeLog README +} |