1 |
commit: 5a02e64e77d4ed9fa1ade8f8bacb8ec7588c4429 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 27 16:40:03 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 27 16:46:05 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a02e64e |
7 |
|
8 |
media-libs/ming: Bump to 0.4.7 |
9 |
|
10 |
Fixes giflib-5 support, #450610. Fixes linking to -lgif when building |
11 |
Python module. Ebuild bumped to EAPI=6, dropped autotools-utils. |
12 |
Upstream switched to snapshots, so added necessary eautoreconf |
13 |
and parallel make issue workaround. |
14 |
|
15 |
media-libs/ming/Manifest | 1 + |
16 |
media-libs/ming/ming-0.4.7.ebuild | 95 +++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 96 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/ming/Manifest b/media-libs/ming/Manifest |
20 |
index 68fd006..3331217 100644 |
21 |
--- a/media-libs/ming/Manifest |
22 |
+++ b/media-libs/ming/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST ming-0.4.4.tar.bz2 14001112 SHA256 40e09d781741ac961338ed8dec7ba2ed06217de9da44dd67af6b881b95d2af7e SHA512 a95cb843b4f88c767d489fc0d55793655fb578c47681131d335c47fbb7368f996ccc2092630cfc33de4487f840b4a4ba8db837bd7115ef9e4742ca9c7e2b7888 WHIRLPOOL b1a6d591f4d9312f564e9a9650df4db8f456d08161341dc7881620493513a69d17de7ee0058333447fb3b01c9be4b75da7b8cfc02123e3f6c2fe3f6b0aa068fd |
25 |
DIST ming-0.4.5.tar.bz2 14234048 SHA256 82da089bdfc3a7fcb732dc11c11a35003ee270d5102d4043d61ea69834239aeb SHA512 9e5a2fb558841e72a072e2c29a0871dc7056ab57f1e6feca864b9b0961841334c4d2c6bc731bc4e043eb96b63fb946738cb1b8b54ef45679fcbf9bcf82adea31 WHIRLPOOL 2315adb1ed2b8878843ce5eef54f7c4386a69c809820aa4d2040fe4d94c0fa367cc57966a78e327f6a578c99b3ed4b1fa5d352106df9283f3b2d7f87a1178203 |
26 |
+DIST ming-0_4_7.tar.gz 14903570 SHA256 118aa1338dd74b34dd2cd22bce286ca0571e8b9aa433999646d1c0157ea9a7dc SHA512 232cf45daabd7b60203c9382aa6568455a42ddcd1bd60eec9bfe3f5e80376fcc9ff6304efbafca1ac8a504e2e167bc394e4902e0d067303d9582551461e09d3c WHIRLPOOL 075794f170e7f529ba79a66af4504745da786d7cd73e9673ffd4c48e943fbc8bf1f952f1cc0b0b7b0ca1e26a3bdb255feeaaeb675032616d2060c40f19d4dbdd |
27 |
|
28 |
diff --git a/media-libs/ming/ming-0.4.7.ebuild b/media-libs/ming/ming-0.4.7.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..dbfad76 |
31 |
--- /dev/null |
32 |
+++ b/media-libs/ming/ming-0.4.7.ebuild |
33 |
@@ -0,0 +1,95 @@ |
34 |
+# Copyright 1999-2015 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 ) |
41 |
+PHP_EXT_NAME=ming |
42 |
+PHP_EXT_OPTIONAL_USE=php |
43 |
+AUTOTOOLS_AUTORECONF=yes |
44 |
+GENTOO_DEPEND_ON_PERL=no |
45 |
+inherit autotools distutils-r1 flag-o-matic multilib perl-module vcs-snapshot |
46 |
+ |
47 |
+DESCRIPTION="An Open Source library for Flash movie generation" |
48 |
+HOMEPAGE="http://ming.sourceforge.net/" |
49 |
+SRC_URI="https://github.com/libming/libming/archive/${P//./_}.tar.gz" |
50 |
+ |
51 |
+LICENSE="LGPL-2.1" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
54 |
+IUSE="+perl php +python static-libs" |
55 |
+ |
56 |
+RDEPEND="perl? ( dev-lang/perl:= ) |
57 |
+ python? ( ${PYTHON_DEPS} ) |
58 |
+ media-libs/freetype:= |
59 |
+ media-libs/libpng:0= |
60 |
+ media-libs/giflib:= |
61 |
+ sys-libs/zlib:= |
62 |
+ !media-libs/libswf" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ sys-devel/flex |
65 |
+ virtual/yacc" |
66 |
+PDEPEND="php? ( dev-php/ming-php )" |
67 |
+ |
68 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
69 |
+S=${WORKDIR}/${P//./_} |
70 |
+ |
71 |
+# Tests only work when the package is tested on a system |
72 |
+# which does not presently have any version of ming installed. |
73 |
+RESTRICT="test" |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ |
78 |
+ # Let's get rid of the TEXTRELS, link dynamic. Use gif. |
79 |
+ sed -i \ |
80 |
+ -e 's/libming.a/libming.so/' \ |
81 |
+ -e 's/lungif/lgif/' \ |
82 |
+ perl_ext/Makefile.PL |
83 |
+ |
84 |
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die |
85 |
+ |
86 |
+ eautoreconf |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ # build is sensitive to -O3 (bug #297437) |
91 |
+ replace-flags -O3 -O2 |
92 |
+ |
93 |
+ # build python via distutils calls, disable here |
94 |
+ # php is done in dev-php/ming-php |
95 |
+ local myconf=( |
96 |
+ --disable-python |
97 |
+ --disable-php |
98 |
+ $(use_enable static-libs static) |
99 |
+ $(use_enable perl) |
100 |
+ ) |
101 |
+ econf "${myconf[@]}" |
102 |
+} |
103 |
+ |
104 |
+run_distutils() { |
105 |
+ if use python; then |
106 |
+ pushd py_ext > /dev/null || die |
107 |
+ distutils-r1_"${@}" |
108 |
+ popd > /dev/null || die |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ # some parallel make issues on flex/bison |
114 |
+ emake -C src/actioncompiler -j1 |
115 |
+ emake |
116 |
+ |
117 |
+ run_distutils ${FUNCNAME} |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ run_distutils ${FUNCNAME} |
122 |
+ |
123 |
+ emake DESTDIR="${D}" INSTALLDIRS="vendor" install |
124 |
+ einstalldocs |
125 |
+ |
126 |
+ perl_delete_localpod |
127 |
+ find "${ED}"usr/lib* -name '*.la' -delete |
128 |
+} |