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_rc2.ebuild ming-0.4.0_rc1.ebuild
Date: Wed, 15 Oct 2008 12:34:19
Message-Id: E1Kq5Zu-00049Y-WE@stork.gentoo.org
1 loki_val 08/10/15 12:34:14
2
3 Modified: ChangeLog
4 Added: ming-0.4.0_rc2.ebuild
5 Removed: ming-0.4.0_rc1.ebuild
6 Log:
7 Bump. Has a fix for bug 230507.
8 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-rc8 x86_64)
9
10 Revision Changes Path
11 1.49 media-libs/ming/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ChangeLog?rev=1.49&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ChangeLog?rev=1.49&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ChangeLog?r1=1.48&r2=1.49
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v
20 retrieving revision 1.48
21 retrieving revision 1.49
22 diff -u -r1.48 -r1.49
23 --- ChangeLog 9 Aug 2008 16:47:42 -0000 1.48
24 +++ ChangeLog 15 Oct 2008 12:34:14 -0000 1.49
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-libs/ming
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.48 2008/08/09 16:47:42 coldwind Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.49 2008/10/15 12:34:14 loki_val Exp $
30 +
31 +*ming-0.4.0_rc2 (15 Oct 2008)
32 +
33 + 15 Oct 2008; Peter Alfredsen <loki_val@g.o> -ming-0.4.0_rc1.ebuild,
34 + +ming-0.4.0_rc2.ebuild:
35 + Bump. Has a fix for bug 230507.
36
37 09 Aug 2008; Santiago M. Mola <coldwind@g.o> ming-0.3.0-r1.ebuild:
38 amd64 stable wrt bug #222319
39
40
41
42 1.1 media-libs/ming/ming-0.4.0_rc2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ming-0.4.0_rc2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/ming/ming-0.4.0_rc2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ming-0.4.0_rc2.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.4.0_rc2.ebuild,v 1.1 2008/10/15 12:34:14 loki_val Exp $
52
53 EAPI=1
54
55 PHP_EXT_NAME=ming
56
57 inherit eutils autotools multilib php-ext-source-r1 perl-module distutils python
58
59 MY_PV=0.4.2
60 MY_P=${PN}-${MY_PV}
61
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
63 DESCRIPTION="An Open Source library for Flash movie generation."
64 HOMEPAGE="http://ming.sourceforge.net/"
65 SRC_URI="mirror://sourceforge/ming/${MY_P}.tar.bz2"
66 LICENSE="LGPL-2.1"
67 SLOT="0"
68 IUSE="+perl +python php"
69 RDEPEND="perl? ( dev-lang/perl )
70 python? ( virtual/python )
71 media-libs/freetype
72 media-libs/libpng
73 media-libs/giflib
74 sys-libs/zlib
75 !media-libs/libswf"
76 DEPEND="${DEPEND}
77 sys-devel/flex"
78
79 S=${WORKDIR}/${MY_P/_/.}
80
81 #Tests only work when the package is tested on a system
82 #which does not presently have any version of ming installed.
83
84 RESTRICT="test"
85
86 src_unpack() {
87 unpack ${A}
88 cd "${S}"
89
90 #Let's get rid of the TEXTRELS, link dynamic. Use gif.
91 sed -i \
92 -e 's/libming.a/libming.so/' \
93 -e 's/lungif/lgif/' \
94 perl_ext/Makefile.PL
95 sed -i \
96 -e 's/ungif/gif/' \
97 py_ext/setup.py.in
98
99 rm macros/libtool.m4
100 eautoreconf
101 }
102
103 src_compile() {
104 econf $(use_enable perl) \
105 $(use_enable python) || die "econf failed"
106 emake -j1 DESTDIR="${D}" || die "emake failed"
107 if use php
108 then
109 cd "${S}"/php_ext
110 myconf="--disable-rpath
111 --disable-static
112 --with-ming"
113 php-ext-source-r1_src_compile
114 fi
115
116 }
117
118 src_test() {
119 make check || die "tests failed"
120 }
121
122 src_install() {
123 make DESTDIR="${D}" install
124
125 fixlocalpod
126
127 #Get rid of the precompiled stuff, we generate it later.
128 rm -f $(find "${D}" -name '*.pyc')
129
130 if use php
131 then
132 cd "${S}"/php_ext
133 php-ext-source-r1_src_install
134 fi
135 }
136
137 pkg_postinst() {
138 if use perl
139 then
140 perl-module_pkg_postinst
141 fi
142 if use python
143 then
144 python_version
145 ebegin "Compiling ming.py"
146 python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/ming.py
147 eend $?
148
149 ebegin "Compiling mingc.py"
150 python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/mingc.py || die "mingc.py failed"
151 eend $?
152 fi
153 }
154
155 pkg_prerm() {
156 if use perl
157 then
158 perl-module_pkg_prerm
159 fi
160 }
161
162 pkg_postrm() {
163 if use perl
164 then
165 perl-module_pkg_postrm
166 fi
167 if use python
168 then
169 distutils_pkg_postrm
170 fi
171 }