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