/[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.18 - (hide annotations) (download)
Tue Jun 10 00:51:04 2014 UTC (4 years, 6 months ago) by vapier
Branch: MAIN
Changes since 1.17: +3 -3 lines
Add arm64/m68k love.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 vapier 1.18 # Copyright 1999-2014 Gentoo Foundation
2 pva 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.18 # $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild,v 1.17 2013/08/27 15:46:54 kensington Exp $
4 pva 1.1
5 arfrever 1.10 EAPI="3"
6     PYTHON_DEPEND="python? 2"
7     SUPPORT_PYTHON_ABIS="1"
8 patrick 1.12 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
9 arfrever 1.10
10     inherit autotools eutils multilib python
11 pva 1.1
12     DESCRIPTION="A lightweight, speed optimized color management engine"
13     HOMEPAGE="http://www.littlecms.com/"
14     SRC_URI="http://www.littlecms.com/${P}.tar.gz"
15    
16     LICENSE="MIT"
17     SLOT="0"
18 vapier 1.18 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
19 ssuominen 1.9 IUSE="jpeg python static-libs tiff zlib"
20 pva 1.1
21 jlec 1.11 RDEPEND="tiff? ( media-libs/tiff:0 )
22 kensington 1.17 jpeg? ( virtual/jpeg:0 )
23 pva 1.1 zlib? ( sys-libs/zlib )"
24     DEPEND="${RDEPEND}
25     python? ( >=dev-lang/swig-1.3.31 )"
26    
27 arfrever 1.10 pkg_setup() {
28     if use python; then
29     python_pkg_setup
30     fi
31     }
32    
33 pva 1.1 src_prepare() {
34 arfrever 1.10 # Python bindings are built/installed manually.
35     sed -e "/SUBDIRS =/s/ python//" -i Makefile.am
36    
37     epatch "${FILESDIR}/${P}-disable_static_modules.patch"
38 dilfridge 1.14 epatch "${FILESDIR}/${P}-implicit.patch"
39 arfrever 1.10
40     eautoreconf
41    
42 pva 1.1 # run swig to regenerate lcms_wrap.cxx and lcms.py (bug #148728)
43     if use python; then
44 ssuominen 1.9 cd python
45     ./swig_lcms || die
46 pva 1.1 fi
47     }
48    
49     src_configure() {
50     econf \
51     --disable-dependency-tracking \
52 ssuominen 1.9 $(use_enable static-libs static) \
53 pva 1.1 $(use_with jpeg) \
54     $(use_with python) \
55     $(use_with tiff) \
56     $(use_with zlib)
57     }
58    
59 arfrever 1.10 src_compile() {
60     default
61    
62     if use python; then
63     python_copy_sources python
64    
65     building() {
66     emake \
67 ottxor 1.15 LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
68     LCMS_PYINCLUDE="${EPREFIX}$(python_get_includedir)" \
69     LCMS_PYLIB="${EPREFIX}$(python_get_libdir)" \
70 arfrever 1.10 PYTHON_VERSION="$(python_get_version)"
71     }
72     python_execute_function -s --source-dir python building
73     fi
74     }
75    
76 pva 1.1 src_install() {
77     emake \
78     DESTDIR="${D}" \
79 ottxor 1.15 BINDIR="${ED}"/usr/bin \
80     libdir="${EPREFIX}"/usr/$(get_libdir) \
81 ssuominen 1.9 install || die
82 pva 1.1
83 arfrever 1.10 if use python; then
84     installation() {
85     emake \
86     DESTDIR="${D}" \
87 ottxor 1.15 LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
88     LCMS_PYLIB="${EPREFIX}$(python_get_libdir)" \
89 arfrever 1.10 PYTHON_VERSION="$(python_get_version)" \
90     install
91     }
92     python_execute_function -s --source-dir python installation
93    
94     python_clean_installation_image
95     fi
96    
97 pva 1.1 insinto /usr/share/lcms/profiles
98     doins testbed/*.icm
99    
100     dodoc AUTHORS README* INSTALL NEWS doc/*
101 ssuominen 1.9
102     find "${D}" -name '*.la' -exec rm -f '{}' +
103 pva 1.1 }
104 arfrever 1.10
105     pkg_postinst() {
106     if use python; then
107     python_mod_optimize lcms.py
108     fi
109     }
110    
111     pkg_postrm() {
112     if use python; then
113     python_mod_cleanup lcms.py
114     fi
115     }

  ViewVC Help
Powered by ViewVC 1.1.20