diff options
Diffstat (limited to 'media-libs/lcms')
-rw-r--r-- | media-libs/lcms/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/lcms/files/lcms-2.2-header.patch | 13 | ||||
-rw-r--r-- | media-libs/lcms/lcms-2.2.ebuild | 59 |
3 files changed, 79 insertions, 1 deletions
diff --git a/media-libs/lcms/ChangeLog b/media-libs/lcms/ChangeLog index d93b3825e949..1af02e8255ab 100644 --- a/media-libs/lcms/ChangeLog +++ b/media-libs/lcms/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/lcms # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/ChangeLog,v 1.125 2011/02/26 18:18:37 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/ChangeLog,v 1.126 2011/06/10 23:05:23 radhermit Exp $ + +*lcms-2.2 (10 Jun 2011) + + 10 Jun 2011; Tim Harder <radhermit@gentoo.org> +lcms-2.2.ebuild, + +files/lcms-2.2-header.patch: + Version bump. Update to EAPI 4, add doc USE flag, and add test phase. 26 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> lcms-1.19.ebuild, +files/lcms-1.19-disable_static_modules.patch: diff --git a/media-libs/lcms/files/lcms-2.2-header.patch b/media-libs/lcms/files/lcms-2.2-header.patch new file mode 100644 index 000000000000..72e561c8152b --- /dev/null +++ b/media-libs/lcms/files/lcms-2.2-header.patch @@ -0,0 +1,13 @@ +--- lcms2-2.2/utils/transicc/transicc.c.orig ++++ lcms2-2.2/utils/transicc/transicc.c +@@ -26,6 +26,10 @@ + + #include "utils.h" + ++#ifndef _MSC_VER ++#include <unistd.h> ++#endif ++ + #ifdef CMS_IS_WINDOWS_ + #include <io.h> + #endif diff --git a/media-libs/lcms/lcms-2.2.ebuild b/media-libs/lcms/lcms-2.2.ebuild new file mode 100644 index 000000000000..2a69a5018ec7 --- /dev/null +++ b/media-libs/lcms/lcms-2.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-2.2.ebuild,v 1.1 2011/06/10 23:05:23 radhermit Exp $ + +EAPI=4 +inherit eutils + +DESCRIPTION="A lightweight, speed optimized color management engine" +HOMEPAGE="http://www.littlecms.com/" +SRC_URI="mirror://sourceforge/${PN}/lcms2-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="doc jpeg static-libs test tiff zlib" + +RDEPEND="jpeg? ( virtual/jpeg ) + tiff? ( media-libs/tiff ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/lcms2-${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-header.patch +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_with jpeg) \ + $(use_with tiff) \ + $(use_with zlib) +} + +src_compile() { + default + + if use test ; then + cd testbed + emake testcms + fi +} + +src_test() { + cd testbed + ./testcms || die "Tests failed" +} + +src_install() { + default + + if use doc ; then + docinto pdf + dodoc doc/*.pdf + fi + + use static-libs || find "${ED}" -name '*.la' -exec rm -f '{}' + +} |