/[gentoo-x86]/media-libs/lcms/lcms-1.19.ebuild
Gentoo

Contents of /media-libs/lcms/lcms-1.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jan 22 17:06:08 2010 UTC (8 years, 9 months ago) by ssuominen
Branch: MAIN
Changes since 1.1: +3 -3 lines
Require SLOT="0" of media-libs/jpeg for headers.
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 ssuominen 1.2 # Copyright 1999-2010 Gentoo Foundation
2 pva 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.2 # $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild,v 1.1 2009/12/01 11:02:40 pva Exp $
4 pva 1.1
5     EAPI="2"
6    
7     inherit libtool eutils multilib
8    
9     DESCRIPTION="A lightweight, speed optimized color management engine"
10     HOMEPAGE="http://www.littlecms.com/"
11     SRC_URI="http://www.littlecms.com/${P}.tar.gz"
12    
13     LICENSE="MIT"
14     SLOT="0"
15     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
16     IUSE="tiff jpeg zlib python"
17    
18     RDEPEND="tiff? ( media-libs/tiff )
19 ssuominen 1.2 jpeg? ( media-libs/jpeg:0 )
20 pva 1.1 zlib? ( sys-libs/zlib )"
21     DEPEND="${RDEPEND}
22     python? ( >=dev-lang/swig-1.3.31 )"
23    
24     src_prepare() {
25     # run swig to regenerate lcms_wrap.cxx and lcms.py (bug #148728)
26     if use python; then
27     cd "${S}"/python
28     ./swig_lcms || die "swig_lcms failed"
29     fi
30     }
31    
32     src_configure() {
33     econf \
34     --disable-dependency-tracking \
35     $(use_with jpeg) \
36     $(use_with python) \
37     $(use_with tiff) \
38     $(use_with zlib)
39     }
40    
41     src_install() {
42     emake \
43     DESTDIR="${D}" \
44     BINDIR="${D}"/usr/bin \
45     libdir=/usr/$(get_libdir) \
46     install || die "make install failed"
47    
48     insinto /usr/share/lcms/profiles
49     doins testbed/*.icm
50    
51     dodoc AUTHORS README* INSTALL NEWS doc/*
52     }

  ViewVC Help
Powered by ViewVC 1.1.20