Lines 4-11
Link Here
|
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
7 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
8 |
inherit eutils multilib toolchain-funcs python-single-r1 autotools-multilib |
8 |
inherit eutils multilib toolchain-funcs python-any-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 49-55
Link Here
|
49 |
if use doc; then |
49 |
if use doc; then |
50 |
einfo "Updating doxygen config" |
50 |
einfo "Updating doxygen config" |
51 |
doxygen 2>&1 >/dev/null -u config/Doxyfile |
51 |
doxygen 2>&1 >/dev/null -u config/Doxyfile |
52 |
python_convert_shebangs -r 2 doc/templates |
52 |
python-any-r1_pkg_setup |
|
|
53 |
epatch ${FILESDIR}/${P}-python3-ready.patch |
53 |
fi |
54 |
fi |
54 |
|
55 |
|
55 |
if use contrib; then |
56 |
if use contrib; then |
Lines 73-78
Link Here
|
73 |
$(use_enable nls) |
74 |
$(use_enable nls) |
74 |
$(use_enable xmp) |
75 |
$(use_enable xmp) |
75 |
$(use_enable static-libs static) |
76 |
$(use_enable static-libs static) |
|
|
77 |
--disable-dependency-tracking |
76 |
) |
78 |
) |
77 |
|
79 |
|
78 |
# plain 'use_with' fails |
80 |
# plain 'use_with' fails |
Lines 95-101
Link Here
|
95 |
CPPFLAGS="${CPPFLAGS} -I\$(BOOST_INC_DIR) -I. -DEXV_HAVE_STDINT_H" |
97 |
CPPFLAGS="${CPPFLAGS} -I\$(BOOST_INC_DIR) -I. -DEXV_HAVE_STDINT_H" |
96 |
fi |
98 |
fi |
97 |
|
99 |
|
98 |
use doc && multilib_for_best_abi emake doc |
100 |
if use doc; then |
|
|
101 |
emake_docs() { |
102 |
emake -C ${BUILD_DIR}/doc doc |
103 |
} |
104 |
multilib_for_best_abi emake_docs |
105 |
fi |
99 |
} |
106 |
} |
100 |
|
107 |
|
101 |
src_install() { |
108 |
src_install() { |
Lines 107-116
Link Here
|
107 |
fi |
114 |
fi |
108 |
|
115 |
|
109 |
use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} |
116 |
use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} |
110 |
use doc && multilib_for_best_abi dohtml -r doc/html/. |
117 |
if use doc; then |
|
|
118 |
install_docs() { |
119 |
dohtml -r ${BUILD_DIR}/doc/html/. |
120 |
} |
121 |
multilib_for_best_abi install_docs |
122 |
fi |
111 |
if use examples; then |
123 |
if use examples; then |
|
|
124 |
# Install examples only once! |
125 |
install_examples() { |
112 |
insinto /usr/share/doc/${PF}/examples |
126 |
insinto /usr/share/doc/${PF}/examples |
113 |
docompress -x /usr/share/doc/${PF}/examples |
127 |
docompress -x /usr/share/doc/${PF}/examples |
114 |
doins samples/*.cpp |
128 |
doins samples/*.cpp |
|
|
129 |
} |
130 |
multilib_for_best_abi install_examples |
115 |
fi |
131 |
fi |
116 |
} |
132 |
} |