Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 474654 | Differences between
and this patch

Collapse All | Expand All

(-)exiv2-0.23-r1.ebuild (-16 / +16 lines)
Lines 2-11 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-gfx/exiv2/exiv2-0.23-r1.ebuild,v 1.6 2013/04/02 20:56:24 ago Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/exiv2/exiv2-0.23-r1.ebuild,v 1.6 2013/04/02 20:56:24 ago Exp $
4
4
5
EAPI=4
5
EAPI=5
6
AUTOTOOLS_IN_SOURCE_BUILD=1
6
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
7
7
8
inherit eutils autotools-utils multilib toolchain-funcs python
8
inherit eutils multilib toolchain-funcs python-single-r1 autotools-multilib
9
9
10
DESCRIPTION="EXIF and IPTC metadata C++ library and command line utility"
10
DESCRIPTION="EXIF and IPTC metadata C++ library and command line utility"
11
HOMEPAGE="http://www.exiv2.org/"
11
HOMEPAGE="http://www.exiv2.org/"
Lines 13-19 Link Here
13
13
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
16
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
17
IUSE_LINGUAS="de es fi fr pl ru sk"
17
IUSE_LINGUAS="de es fi fr pl ru sk"
18
IUSE="contrib doc examples nls xmp zlib static-libs $(printf 'linguas_%s ' ${IUSE_LINGUAS})"
18
IUSE="contrib doc examples nls xmp zlib static-libs $(printf 'linguas_%s ' ${IUSE_LINGUAS})"
19
19
Lines 31-37 Link Here
31
		dev-libs/libxslt
31
		dev-libs/libxslt
32
		virtual/pkgconfig
32
		virtual/pkgconfig
33
		media-gfx/graphviz
33
		media-gfx/graphviz
34
		=dev-lang/python-2*
34
		${PYTHON_DEPEND}
35
	)
35
	)
36
	nls? ( sys-devel/gettext )
36
	nls? ( sys-devel/gettext )
37
"
37
"
Lines 64-69 Link Here
64
64
65
	# set locale to safe value for the sed commands (bug #382731)
65
	# set locale to safe value for the sed commands (bug #382731)
66
	sed -i -r "s,(\s+)sed\s,\1LC_ALL="C" sed ,g" src/Makefile
66
	sed -i -r "s,(\s+)sed\s,\1LC_ALL="C" sed ,g" src/Makefile
67
68
	multilib_copy_sources
67
}
69
}
68
70
69
src_configure() {
71
src_configure() {
Lines 81-113 Link Here
81
		use amd64 && myeconfargs+=("${myconf} --disable-visibility")
83
		use amd64 && myeconfargs+=("${myconf} --disable-visibility")
82
	fi
84
	fi
83
85
84
	autotools-utils_src_configure
86
	autotools-multilib_src_configure
85
}
87
}
86
88
87
src_compile() {
89
src_compile() {
88
	autotools-utils_src_compile
90
	autotools-multilib_src_compile
89
91
90
	if use contrib; then
92
	if use contrib; then
91
		emake -C contrib/organize \
93
		autotools-multilib_src_compile -C contrib/organize \
92
			LDFLAGS="\$(BOOST_LIBS) -L../../src -lexiv2 ${LDFLAGS}" \
94
			LDFLAGS="\$(BOOST_LIBS) -L../../src -lexiv2 ${LDFLAGS}" \
93
			CPPFLAGS="${CPPFLAGS} -I\$(BOOST_INC_DIR) -I. -DEXV_HAVE_STDINT_H" \
95
			CPPFLAGS="${CPPFLAGS} -I\$(BOOST_INC_DIR) -I. -DEXV_HAVE_STDINT_H"
94
		|| die "emake organize failed"
95
	fi
96
	fi
96
97
97
	if use doc; then
98
	use doc && multilib_for_best_abi emake doc
98
		emake doc || die "emake doc failed"
99
	fi
100
}
99
}
101
100
102
src_install() {
101
src_install() {
103
	autotools-utils_src_install
102
	autotools-multilib_src_install
104
103
105
	if use contrib; then
104
	if use contrib; then
106
		emake DESTDIR="${D}" -C contrib/organize install || die "emake install organize failed"
105
		autotools-multilib_src_install -C contrib/organize \
106
			DESTDIR="${D}" -C install
107
	fi
107
	fi
108
108
109
	use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt}
109
	use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt}
110
	use doc && dohtml -r doc/html/.
110
	use doc && multilib_for_best_abi dohtml -r doc/html/.
111
	if use examples; then
111
	if use examples; then
112
		insinto /usr/share/doc/${PF}/examples
112
		insinto /usr/share/doc/${PF}/examples
113
		docompress -x /usr/share/doc/${PF}/examples
113
		docompress -x /usr/share/doc/${PF}/examples

Return to bug 474654