Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/ming: ChangeLog ming-0.4.0_beta5.ebuild
Date: Wed, 25 Jun 2008 17:25:44
Message-Id: E1KBYkU-00080o-68@stork.gentoo.org
1 loki_val 08/06/25 17:25:38
2
3 Modified: ChangeLog
4 Added: ming-0.4.0_beta5.ebuild
5 Log:
6 Bump, solving 222321. This version radically improves Flash compilation. Dropped keywords for arm, mips, sh and s390 due to new swig dep, see bug 229423.
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.25.8 i686)
8
9 Revision Changes Path
10 1.36 media-libs/ming/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ChangeLog?rev=1.36&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ChangeLog?rev=1.36&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ChangeLog?r1=1.35&r2=1.36
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v
19 retrieving revision 1.35
20 retrieving revision 1.36
21 diff -u -r1.35 -r1.36
22 --- ChangeLog 9 Jun 2008 07:32:07 -0000 1.35
23 +++ ChangeLog 25 Jun 2008 17:25:37 -0000 1.36
24 @@ -1,6 +1,14 @@
25 # ChangeLog for media-libs/ming
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.35 2008/06/09 07:32:07 loki_val Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.36 2008/06/25 17:25:37 loki_val Exp $
29 +
30 +*ming-0.4.0_beta5 (25 Jun 2008)
31 +
32 + 25 Jun 2008; Peter Alfredsen <loki_val@g.o>
33 + +ming-0.4.0_beta5.ebuild:
34 + Bump, solving 222321. This version radically improves Flash compilation.
35 + Dropped keywords for arm, mips, sh and s390 due to new swig dep, see bug
36 + 229423.
37
38 *ming-0.3.0-r1 (09 Jun 2008)
39
40
41
42
43 1.1 media-libs/ming/ming-0.4.0_beta5.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ming-0.4.0_beta5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ming-0.4.0_beta5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ming-0.4.0_beta5.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.4.0_beta5.ebuild,v 1.1 2008/06/25 17:25:37 loki_val Exp $
53
54 EAPI=1
55
56 PHP_EXT_NAME=ming
57
58 inherit eutils multilib php-ext-source-r1 perl-module distutils python
59
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
61 DESCRIPTION="An Open Source library for Flash movie generation."
62 HOMEPAGE="http://ming.sourceforge.net/"
63 SRC_URI="mirror://sourceforge/ming/${P/_/.}.tar.bz2"
64 LICENSE="LGPL-2.1"
65 SLOT="0"
66 IUSE="+perl +python php"
67 RDEPEND="perl? ( dev-lang/perl )
68 python? ( virtual/python )
69 media-libs/freetype
70 media-libs/libpng
71 media-libs/giflib
72 sys-libs/zlib
73 !media-libs/libswf"
74 DEPEND="${DEPEND}
75 >=dev-lang/swig-1.3.35
76 sys-devel/flex"
77
78 S=${WORKDIR}/${P/_/.}
79
80 src_unpack() {
81 unpack ${A}
82 cd "${S}"
83
84 #We need to do this with Swig >=1.3.35, or the tests will
85 #fail for the python extension using gcc-4.3.
86 #probably some aliasing issue with gcc-4.3*
87
88 pushd py_ext &> /dev/null
89 swig -I.. -python ming.i
90 popd &> /dev/null
91
92 #Let's get rid of the TEXTRELS, link dynamic.
93 sed -i \
94 -e 's/libming.a/libming.so/' \
95 perl_ext/Makefile.PL
96 }
97
98 src_compile() {
99 econf $(use_enable perl) \
100 $(use_enable python) || die "econf failed"
101 emake -j1 DESTDIR="${D}" || die "emake failed"
102 if use php
103 then
104 cd "${S}"/php_ext
105 myconf="--disable-rpath
106 --disable-static
107 --with-ming"
108 php-ext-source-r1_src_compile
109 fi
110
111 }
112
113 src_test() {
114 make check || die "tests failed"
115 }
116
117 src_install() {
118 make DESTDIR="${D}" install
119
120 fixlocalpod
121
122 #Get rid of the precompiled stuff, we generate it later.
123 rm -f $(find "${D}" -name '*.pyc')
124
125 if use php
126 then
127 cd "${S}"/php_ext
128 php-ext-source-r1_src_install
129 fi
130 }
131
132 pkg_postinst() {
133 if use perl
134 then
135 perl-module_pkg_postinst
136 fi
137 if use python
138 then
139 ebegin "Compiling ming.py"
140 python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/ming.py || die "ming.py failed"
141 eend $?
142 ebegin "Compiling mingc.py"
143 python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/mingc.py || die "mingc.py failed"
144 eend $?
145 fi
146 }
147
148 pkg_prerm() {
149 if use perl
150 then
151 perl-module_pkg_prerm
152 fi
153 }
154
155 pkg_postrm() {
156 if use perl
157 then
158 perl-module_pkg_postrm
159 fi
160 if use python
161 then
162 distutils_pkg_postrm
163 fi
164 }
165
166
167
168 --
169 gentoo-commits@l.g.o mailing list