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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20