1 |
commit: 34b7e89302085c215bd19f307c4ea914287d3d9d |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 16 18:20:30 2017 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 16 18:24:59 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b7e893 |
7 |
|
8 |
media-libs/exempi: version bump 2.2.1 → 2.4.2 |
9 |
|
10 |
Bump to EAPI=6. Add missing dependency on autoconf-archive. Switch |
11 |
eutils to ltprune. Enable unittests. |
12 |
|
13 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
14 |
|
15 |
media-libs/exempi/Manifest | 1 + |
16 |
media-libs/exempi/exempi-2.4.2.ebuild | 52 ++++++++++++++++++++++++ |
17 |
media-libs/exempi/files/exempi-2.4.2-iconv.patch | 41 +++++++++++++++++++ |
18 |
3 files changed, 94 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/exempi/Manifest b/media-libs/exempi/Manifest |
21 |
index 97322306fcb..5fa206457af 100644 |
22 |
--- a/media-libs/exempi/Manifest |
23 |
+++ b/media-libs/exempi/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST exempi-2.2.1.tar.gz 3566843 SHA256 a99e1569047988200e4935cf4395667341a5bd8d6067847a08df4304546cc362 SHA512 f4b97ec7af89924755a0695464bad5081de6a5d6a6f28c06984c051d677f8771c39df12951761ecd28d6ff520ddec4e21179dcba8b58f0ef649bbdad1a53aa9c WHIRLPOOL 622d23cb519f2dda988b7d13dd26be55dd207bfe8ec2f2c0b8b568974571780b51b5284d871a310e461041f1054265efb199cf5c21fcf6eee6619cb85dc335e9 |
26 |
+DIST exempi-2.4.2.tar.gz 3911796 SHA256 2016738b16c371179f745a556dc8ccc95ba2323e933fa1b3f4cbbd469516e343 SHA512 47d0737a95dbd31c3c39ef9a9a8c00e87135c2eb909bea1d89fa8df31c0e73dadd7e9f9f0e6445d3b17457396e0c1381b93f5751494e1061822df47f7099b568 WHIRLPOOL 50bff108827ea794aacb1becee05b0864a694b6744be4471d9e16bccd5143d3957f8d5e41cd946df1e453a9c1abfeaa11cf170ddbd4db6e339b85d7e7bac1930 |
27 |
|
28 |
diff --git a/media-libs/exempi/exempi-2.4.2.ebuild b/media-libs/exempi/exempi-2.4.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..cbc59b14fc9 |
31 |
--- /dev/null |
32 |
+++ b/media-libs/exempi/exempi-2.4.2.ebuild |
33 |
@@ -0,0 +1,52 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+inherit autotools ltprune |
39 |
+ |
40 |
+DESCRIPTION="Exempi is a port of the Adobe XMP SDK to work on UNIX" |
41 |
+HOMEPAGE="https://libopenraw.freedesktop.org/wiki/Exempi" |
42 |
+SRC_URI="https://libopenraw.freedesktop.org/download/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="2/3" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
47 |
+IUSE="examples static-libs test" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-libs/expat-2:= |
51 |
+ virtual/libiconv |
52 |
+ sys-libs/zlib:= |
53 |
+" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ sys-devel/autoconf-archive |
56 |
+ sys-devel/gettext |
57 |
+ test? ( >=dev-libs/boost-1.48 ) |
58 |
+" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ eapply "${FILESDIR}"/${PN}-2.4.2-iconv.patch |
63 |
+ cp /usr/share/gettext/config.rpath . || die |
64 |
+ eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ # Valgrind detection is "disabled" due to bug #295875 |
69 |
+ econf \ |
70 |
+ $(use_enable static-libs static) \ |
71 |
+ $(use_enable test unittest) \ |
72 |
+ VALGRIND="" |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ default |
77 |
+ prune_libtool_files --all |
78 |
+ |
79 |
+ if use examples; then |
80 |
+ emake -C samples/source distclean |
81 |
+ rm -f samples/{,source,testfiles}/Makefile* |
82 |
+ insinto /usr/share/doc/${PF}/examples |
83 |
+ doins -r samples/* |
84 |
+ fi |
85 |
+} |
86 |
|
87 |
diff --git a/media-libs/exempi/files/exempi-2.4.2-iconv.patch b/media-libs/exempi/files/exempi-2.4.2-iconv.patch |
88 |
new file mode 100644 |
89 |
index 00000000000..9f9fc42e5bf |
90 |
--- /dev/null |
91 |
+++ b/media-libs/exempi/files/exempi-2.4.2-iconv.patch |
92 |
@@ -0,0 +1,41 @@ |
93 |
+From a2b822c85c52c96b04192a4923c9edbf9d144343 Mon Sep 17 00:00:00 2001 |
94 |
+From: Samuli Suominen <ssuominen@g.o> |
95 |
+Date: Sun, 16 Apr 2017 20:11:57 +0200 |
96 |
+Subject: [PATCH] Fix build on systems not using glibc's libiconv |
97 |
+ |
98 |
+Fixes: https://bugs.gentoo.org/show_bug.cgi?id=242812 |
99 |
+Signed-off-by: Gilles Dartiguelongue <eva@g.o> |
100 |
+ |
101 |
+--- |
102 |
+ XMPFiles/source/Makefile.am | 3 ++- |
103 |
+ configure.ac | 2 ++ |
104 |
+ 2 files changed, 4 insertions(+), 1 deletion(-) |
105 |
+ |
106 |
+diff --git a/XMPFiles/source/Makefile.am b/XMPFiles/source/Makefile.am |
107 |
+index 6d1a1d3..d1020d0 100644 |
108 |
+--- a/XMPFiles/source/Makefile.am |
109 |
++++ b/XMPFiles/source/Makefile.am |
110 |
+@@ -53,5 +53,6 @@ libXMPFiles_la_SOURCES = WXMPFiles.cpp XMPFiles.cpp \ |
111 |
+ libXMPFiles_la_LIBADD = ./FileHandlers/libxmpfilehandlers.la \ |
112 |
+ ./FormatSupport/libformatsupport.la \ |
113 |
+ ./PluginHandler/libpluginhandler.la \ |
114 |
+- ./NativeMetadataSupport/libnativemetadata.la |
115 |
++ ./NativeMetadataSupport/libnativemetadata.la \ |
116 |
++ @LTLIBICONV@ |
117 |
+ #libXMPFiles_la_LDFLAGS = -version-info @LIBXMPCORE_VERSION_INFO@ |
118 |
+diff --git a/configure.ac b/configure.ac |
119 |
+index a4ee14f..e1033c1 100644 |
120 |
+--- a/configure.ac |
121 |
++++ b/configure.ac |
122 |
+@@ -115,6 +115,8 @@ AC_CHECK_HEADER(iconv.h, , |
123 |
+ AC_CHECK_HEADER(zlib.h, , |
124 |
+ AC_MSG_ERROR([zlib headers missing])) |
125 |
+ |
126 |
++AM_ICONV_LINK |
127 |
++ |
128 |
+ dnl Blatently copied from iconv.m4 to remove the crack about libtool |
129 |
+ dnl But check for constness of the iconv parameters. |
130 |
+ AC_MSG_CHECKING([for iconv declaration]) |
131 |
+-- |
132 |
+2.12.2 |
133 |
+ |