Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 459820
Collapse All | Expand All

(-)tiff-4.0.3-r1.ebuild (-17 / +24 lines)
Lines 2-9 Link Here
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/tiff/tiff-4.0.3-r1.ebuild,v 1.3 2013/02/18 22:41:23 zmedico Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/tiff-4.0.3-r1.ebuild,v 1.3 2013/02/18 22:41:23 zmedico Exp $
4
4
5
EAPI=4
5
EAPI=5
6
inherit eutils libtool
6
inherit autotools-multilib
7
7
8
DESCRIPTION="Tag Image File Format (TIFF) library"
8
DESCRIPTION="Tag Image File Format (TIFF) library"
9
HOMEPAGE="http://www.remotesensing.org/libtiff/"
9
HOMEPAGE="http://www.remotesensing.org/libtiff/"
Lines 15-45 SLOT="0" Link Here
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
16
IUSE="+cxx jbig jpeg lzma static-libs zlib"
16
IUSE="+cxx jbig jpeg lzma static-libs zlib"
17
17
18
RDEPEND="jpeg? ( virtual/jpeg )
18
RDEPEND="amd64? ( abi_x86_32? ( app-emulation/emul-linux-x86-baselibs ) )
19
	jpeg? ( virtual/jpeg )
19
	jbig? ( media-libs/jbigkit )
20
	jbig? ( media-libs/jbigkit )
20
	lzma? ( app-arch/xz-utils )
21
	lzma? ( app-arch/xz-utils )
21
	zlib? ( sys-libs/zlib )"
22
	zlib? ( sys-libs/zlib )"
22
DEPEND="${RDEPEND}"
23
DEPEND="${RDEPEND}"
23
24
24
src_prepare() {
25
PATCHES=(
25
	epatch "${FILESDIR}"/${PN}-4.0.3-tiff2pdf-colors.patch #145055
26
	"${FILESDIR}"/${PN}-4.0.3-tiff2pdf-colors.patch #145055
26
	elibtoolize
27
)
27
}
28
29
MULTILIB_WRAPPED_HEADERS=(
30
	/usr/include/tiffconf.h
31
)
32
33
AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
28
34
29
src_configure() {
35
src_configure() {
30
	econf \
36
	local myeconfargs=(
31
		$(use_enable static-libs static) \
37
		$(use_enable zlib)
32
		$(use_enable zlib) \
38
		$(use_enable jpeg)
33
		$(use_enable jpeg) \
39
		$(use_enable jbig)
34
		$(use_enable jbig) \
40
		$(use_enable lzma)
35
		$(use_enable lzma) \
41
		$(use_enable cxx)
36
		$(use_enable cxx) \
42
		--without-x
37
		--without-x \
38
		--with-docdir="${EPREFIX}"/usr/share/doc/${PF}
43
		--with-docdir="${EPREFIX}"/usr/share/doc/${PF}
44
	)
45
46
	autotools-multilib_src_configure
39
}
47
}
40
48
41
src_install() {
49
src_install() {
42
	default
50
	autotools-multilib_src_install
43
	prune_libtool_files --all
44
	rm -f "${ED}"/usr/share/doc/${PF}/{COPYRIGHT,README*,RELEASE-DATE,TODO,VERSION}
51
	rm -f "${ED}"/usr/share/doc/${PF}/{COPYRIGHT,README*,RELEASE-DATE,TODO,VERSION}
45
}
52
}

Return to bug 459820