Gentoo Archives: gentoo-commits

From: "Stefan Briesenick (sbriesen)" <sbriesen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/exiv2: ChangeLog exiv2-0.21.1.ebuild
Date: Sat, 02 Apr 2011 23:46:49
Message-Id: 20110402234637.D379320054@flycatcher.gentoo.org
1 sbriesen 11/04/02 23:46:37
2
3 Modified: ChangeLog
4 Added: exiv2-0.21.1.ebuild
5 Log:
6 version bump (bug #358161) + boost fixes (bug #357605)
7
8 (Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.92 media-gfx/exiv2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/ChangeLog?rev=1.92&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/ChangeLog?rev=1.92&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/ChangeLog?r1=1.91&r2=1.92
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/exiv2/ChangeLog,v
20 retrieving revision 1.91
21 retrieving revision 1.92
22 diff -u -r1.91 -r1.92
23 --- ChangeLog 21 Dec 2010 12:31:54 -0000 1.91
24 +++ ChangeLog 2 Apr 2011 23:46:37 -0000 1.92
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-gfx/exiv2
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/exiv2/ChangeLog,v 1.91 2010/12/21 12:31:54 sbriesen Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/exiv2/ChangeLog,v 1.92 2011/04/02 23:46:37 sbriesen Exp $
31 +
32 +*exiv2-0.21.1 (02 Apr 2011)
33 +
34 + 02 Apr 2011; Stefan Briesenick <sbriesen@g.o> +exiv2-0.21.1.ebuild:
35 + version bump (bug #358161) + boost fixes (bug #357605)
36
37 *exiv2-0.21-r1 (21 Dec 2010)
38
39
40
41
42 1.1 media-gfx/exiv2/exiv2-0.21.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/exiv2-0.21.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/exiv2/exiv2-0.21.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: exiv2-0.21.1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 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.21.1.ebuild,v 1.1 2011/04/02 23:46:37 sbriesen Exp $
52
53 EAPI="2"
54 PYTHON_DEPEND="2"
55
56 inherit eutils multilib toolchain-funcs python
57
58 DESCRIPTION="EXIF and IPTC metadata C++ library and command line utility"
59 HOMEPAGE="http://www.exiv2.org/"
60 SRC_URI="http://www.exiv2.org/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
65 IUSE="contrib doc examples nls xmp zlib"
66 IUSE_LINGUAS="de es fi fr pl ru sk"
67 IUSE="${IUSE} $(printf 'linguas_%s ' ${IUSE_LINGUAS})"
68
69 RDEPEND="
70 virtual/libiconv
71 nls? ( virtual/libintl )
72 xmp? ( dev-libs/expat )
73 zlib? ( sys-libs/zlib )
74 "
75 DEPEND="${RDEPEND}
76 contrib? ( >=dev-libs/boost-1.37 )
77 doc? (
78 app-doc/doxygen
79 dev-libs/libxslt
80 dev-util/pkgconfig
81 media-gfx/graphviz
82 )
83 nls? ( sys-devel/gettext )
84 "
85
86 src_prepare() {
87 # exiv2 fails to build with boost-1.46 due to boost filesystem
88 # API v3 becoming the default. This is easily fixed by adding a
89 # #define BOOST_FILESYSTEM_VERSION 2
90 # to source files that include boost/filesystem.hpp
91 #
92 # Implemented via sed to avoid patch-file (bug #357605)
93 sed -i -e \
94 's|^\(#include <boost/filesystem.hpp>.*\)|#define BOOST_FILESYSTEM_VERSION 2\n\1|g' \
95 contrib/organize/helpers.hpp
96
97 # convert docs to UTF-8
98 for i in doc/cmd.txt; do
99 einfo "Converting "${i}" to UTF-8"
100 iconv -f LATIN1 -t UTF-8 "${i}" > "${i}~" && mv -f "${i}~" "${i}" || rm -f "${i}~"
101 done
102
103 if use doc; then
104 einfo "Updating doxygen config"
105 doxygen 2>&1 >/dev/null -u config/Doxyfile
106 fi
107
108 if use contrib; then
109 # create build environment for contrib
110 ln -snf ../../src contrib/organize/exiv2
111 sed -i -e 's:/usr/local/include/.*:/usr/include:g' \
112 -e 's:/usr/local/lib/lib:-l:g' -e 's:-gcc..-mt-._..\.a::g' \
113 contrib/organize/boost.mk
114 fi
115
116 # fix python shebang
117 python_convert_shebangs -r 2 doc/templates
118 }
119
120 src_configure() {
121 local myconf="$(use_enable nls) $(use_enable xmp)"
122 use zlib || myconf="${myconf} --without-zlib" # plain 'use_with' fails
123
124 # Bug #78720. amd64/gcc-3.4/-fvisibility* fail.
125 if [[ $(gcc-major-version) -lt 4 ]]; then
126 use amd64 && myconf="${myconf} --disable-visibility"
127 fi
128
129 econf ${myconf}
130 }
131
132 src_compile() {
133 emake || die "emake failed"
134
135 if use contrib; then
136 emake -C contrib/organize \
137 LDFLAGS="\$(BOOST_LIBS) -L../../src -lexiv2 ${LDFLAGS}" \
138 CPPFLAGS="${CPPFLAGS} -I\$(BOOST_INC_DIR) -I. -DEXV_HAVE_STDINT_H" \
139 || die "emake organize failed"
140 fi
141
142 if use doc; then
143 emake doc || die "emake doc failed"
144 fi
145 }
146
147 src_install() {
148 emake DESTDIR="${D}" install || die "emake install failed"
149
150 if use contrib; then
151 emake DESTDIR="${D}" -C contrib/organize install || die "emake install organize failed"
152 fi
153
154 dodoc README doc/{ChangeLog,cmd.txt}
155 use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt}
156 use doc && dohtml -r doc/html/.
157 if use examples; then
158 insinto /usr/share/doc/${PF}/examples
159 doins samples/*.cpp
160 fi
161 }
162
163 pkg_postinst() {
164 ewarn
165 ewarn "PLEASE PLEASE take note of this:"
166 ewarn "Please make *sure* to run revdep-rebuild now"
167 ewarn "Certain things on your system may have linked against a"
168 ewarn "different version of exiv2 -- those things need to be"
169 ewarn "recompiled. Sorry for the inconvenience!"
170 ewarn
171 }