Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/exiv2: ChangeLog exiv2-0.24.ebuild
Date: Wed, 04 Jun 2014 21:22:16
Message-Id: 20140604212213.9293E2004F@flycatcher.gentoo.org
1 dilfridge 14/06/04 21:22:13
2
3 Modified: ChangeLog
4 Added: exiv2-0.24.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EBE6A336BE19039C!)
9
10 Revision Changes Path
11 1.121 media-gfx/exiv2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/ChangeLog?rev=1.121&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/ChangeLog?rev=1.121&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/ChangeLog?r1=1.120&r2=1.121
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/exiv2/ChangeLog,v
20 retrieving revision 1.120
21 retrieving revision 1.121
22 diff -u -r1.120 -r1.121
23 --- ChangeLog 30 Apr 2014 14:28:29 -0000 1.120
24 +++ ChangeLog 4 Jun 2014 21:22:13 -0000 1.121
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-gfx/exiv2
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/exiv2/ChangeLog,v 1.120 2014/04/30 14:28:29 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/exiv2/ChangeLog,v 1.121 2014/06/04 21:22:13 dilfridge Exp $
30 +
31 +*exiv2-0.24 (04 Jun 2014)
32 +
33 + 04 Jun 2014; Andreas K. Huettel <dilfridge@g.o> +exiv2-0.24.ebuild,
34 + +files/exiv2-0.24-python3.patch:
35 + Version bump
36
37 30 Apr 2014; Michał Górny <mgorny@g.o> exiv2-0.23-r2.ebuild:
38 Fix multilib and Python support. Bug #474654.
39
40
41
42 1.1 media-gfx/exiv2/exiv2-0.24.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/exiv2-0.24.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/exiv2-0.24.ebuild?rev=1.1&content-type=text/plain
46
47 Index: exiv2-0.24.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-gfx/exiv2/exiv2-0.24.ebuild,v 1.1 2014/06/04 21:22:13 dilfridge Exp $
52
53 EAPI=5
54 AUTOTOOLS_IN_SOURCE_BUILD=1
55 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
56
57 inherit eutils multilib toolchain-funcs python-any-r1 autotools-multilib
58
59 DESCRIPTION="EXIF and IPTC metadata C++ library and command line utility"
60 HOMEPAGE="http://www.exiv2.org/"
61 SRC_URI="http://www.exiv2.org/${P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0/13"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
66 IUSE_LINGUAS="de es fi fr pl ru sk"
67 IUSE="contrib doc examples nls xmp zlib static-libs $(printf 'linguas_%s ' ${IUSE_LINGUAS})"
68
69 RDEPEND="
70 virtual/libiconv[${MULTILIB_USEDEP}]
71 nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
72 xmp? ( dev-libs/expat[${MULTILIB_USEDEP}] )
73 zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
74 "
75
76 DEPEND="${RDEPEND}
77 contrib? ( >=dev-libs/boost-1.44 )
78 doc? (
79 app-doc/doxygen
80 dev-libs/libxslt
81 virtual/pkgconfig
82 media-gfx/graphviz
83 ${PYTHON_DEPS}
84 )
85 nls? ( sys-devel/gettext )
86 "
87
88 DOCS=( README doc/ChangeLog doc/cmd.txt )
89
90 pkg_setup() {
91 use doc && python-any-r1_pkg_setup
92 }
93
94 src_prepare() {
95 # convert docs to UTF-8
96 local i
97 for i in doc/cmd.txt; do
98 einfo "Converting "${i}" to UTF-8"
99 iconv -f LATIN1 -t UTF-8 "${i}" > "${i}~" && mv -f "${i}~" "${i}" || rm -f "${i}~"
100 done
101
102 if use doc; then
103 einfo "Updating doxygen config"
104 doxygen 2>&1 >/dev/null -u config/Doxyfile
105 fi
106
107 if use contrib; then
108 epatch "${FILESDIR}/${PN}-0.23-boost-fs-contrib.patch"
109
110 # create build environment for contrib
111 ln -snf ../../src contrib/organize/exiv2
112 sed -i -e 's:/usr/local/include/.*:/usr/include:g' \
113 -e 's:/usr/local/lib/lib:-l:g' -e 's:-gcc..-mt-._..\.a::g' \
114 contrib/organize/boost.mk || die
115 fi
116
117 epatch "${FILESDIR}/${PN}-0.24-python3.patch"
118
119 # set locale to safe value for the sed commands (bug #382731)
120 sed -i -r "s,(\s+)sed\s,\1LC_ALL="C" sed ,g" src/Makefile || die
121
122 autotools-multilib_src_prepare
123 }
124
125 multilib_src_configure() {
126 local myeconfargs=(
127 $(use_enable nls)
128 $(use_enable xmp)
129 $(use_enable static-libs static)
130 )
131
132 # plain 'use_with' fails
133 use zlib || myeconfargs+=( --without-zlib )
134
135 # Bug #78720. amd64/gcc-3.4/-fvisibility* fail.
136 if [[ ${ABI} == amd64 && $(gcc-major-version) -lt 4 ]]; then
137 myeconfargs+=( --disable-visibility )
138 fi
139
140 autotools-utils_src_configure
141 }
142
143 multilib_src_compile() {
144 emake
145
146 if multilib_is_native_abi; then
147 if use contrib; then
148 emake -C contrib/organize \
149 LDFLAGS="\$(BOOST_LIBS) -L../../src -lexiv2 ${LDFLAGS}" \
150 CPPFLAGS="${CPPFLAGS} -I\$(BOOST_INC_DIR) -I. -DEXV_HAVE_STDINT_H"
151 fi
152
153 use doc && emake doc
154 fi
155 }
156
157 multilib_src_install() {
158 autotools-utils_src_install
159
160 if multilib_is_native_abi; then
161 if use contrib; then
162 emake DESTDIR="${D}" -C contrib/organize install
163 fi
164
165 use doc && dohtml -r doc/html/.
166 fi
167 }
168
169 multilib_src_install_all() {
170 einstalldocs
171 prune_libtool_files --all
172
173 use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt}
174 if use examples; then
175 insinto /usr/share/doc/${PF}/examples
176 docompress -x /usr/share/doc/${PF}/examples
177 doins samples/*.cpp
178 fi
179 }