/[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.16 - (show annotations) (download)
Sun Dec 2 10:20:19 2012 UTC (19 months, 3 weeks ago) by grobian
Branch: MAIN
Changes since 1.15: +2 -2 lines
Add more Prefix keywords to SLOT=0, like it was before migration

(Portage version: 2.2.01.21313-prefix/cvs/Darwin i386, signed Manifest commit with key 0x5F75F607C5C74E89)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild,v 1.15 2012/09/11 02:45:36 ottxor Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
9
10 inherit autotools eutils multilib python
11
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 KEYWORDS="alpha amd64 arm hppa ia64 ~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 IUSE="jpeg python static-libs tiff zlib"
20
21 RDEPEND="tiff? ( media-libs/tiff:0 )
22 jpeg? ( virtual/jpeg )
23 zlib? ( sys-libs/zlib )"
24 DEPEND="${RDEPEND}
25 python? ( >=dev-lang/swig-1.3.31 )"
26
27 pkg_setup() {
28 if use python; then
29 python_pkg_setup
30 fi
31 }
32
33 src_prepare() {
34 # 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 epatch "${FILESDIR}/${P}-implicit.patch"
39
40 eautoreconf
41
42 # run swig to regenerate lcms_wrap.cxx and lcms.py (bug #148728)
43 if use python; then
44 cd python
45 ./swig_lcms || die
46 fi
47 }
48
49 src_configure() {
50 econf \
51 --disable-dependency-tracking \
52 $(use_enable static-libs static) \
53 $(use_with jpeg) \
54 $(use_with python) \
55 $(use_with tiff) \
56 $(use_with zlib)
57 }
58
59 src_compile() {
60 default
61
62 if use python; then
63 python_copy_sources python
64
65 building() {
66 emake \
67 LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
68 LCMS_PYINCLUDE="${EPREFIX}$(python_get_includedir)" \
69 LCMS_PYLIB="${EPREFIX}$(python_get_libdir)" \
70 PYTHON_VERSION="$(python_get_version)"
71 }
72 python_execute_function -s --source-dir python building
73 fi
74 }
75
76 src_install() {
77 emake \
78 DESTDIR="${D}" \
79 BINDIR="${ED}"/usr/bin \
80 libdir="${EPREFIX}"/usr/$(get_libdir) \
81 install || die
82
83 if use python; then
84 installation() {
85 emake \
86 DESTDIR="${D}" \
87 LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
88 LCMS_PYLIB="${EPREFIX}$(python_get_libdir)" \
89 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 insinto /usr/share/lcms/profiles
98 doins testbed/*.icm
99
100 dodoc AUTHORS README* INSTALL NEWS doc/*
101
102 find "${D}" -name '*.la' -exec rm -f '{}' +
103 }
104
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