Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/ming: ming-0.4.5.ebuild ChangeLog
Date: Wed, 27 Aug 2014 19:59:39
Message-Id: 20140827195935.6ED1D4164@oystercatcher.gentoo.org
1 axs 14/08/27 19:59:35
2
3 Modified: ChangeLog
4 Added: ming-0.4.5.ebuild
5 Log:
6 version bump, bumped EAPI to 5, migrated ebuild to distutils-r1
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
9
10 Revision Changes Path
11 1.105 media-libs/ming/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ChangeLog?rev=1.105&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ChangeLog?rev=1.105&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ChangeLog?r1=1.104&r2=1.105
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v
20 retrieving revision 1.104
21 retrieving revision 1.105
22 diff -u -r1.104 -r1.105
23 --- ChangeLog 10 Aug 2014 21:10:58 -0000 1.104
24 +++ ChangeLog 27 Aug 2014 19:59:35 -0000 1.105
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/ming
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.104 2014/08/10 21:10:58 slyfox Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.105 2014/08/27 19:59:35 axs Exp $
30 +
31 +*ming-0.4.5 (27 Aug 2014)
32 +
33 + 27 Aug 2014; Ian Stakenvicius (_AxS_) <axs@g.o> +ming-0.4.5.ebuild:
34 + version bump, bumped EAPI to 5, migrated ebuild to distutils-r1
35
36 10 Aug 2014; Sergei Trofimovich <slyfox@g.o> ming-0.4.4.ebuild:
37 QA: drop trailing '.' from DESCRIPTION
38
39
40
41 1.1 media-libs/ming/ming-0.4.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ming-0.4.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/ming-0.4.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ming-0.4.5.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.4.5.ebuild,v 1.1 2014/08/27 19:59:35 axs Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python2_7 )
55 PHP_EXT_NAME=ming
56 PHP_EXT_OPTIONAL_USE=php
57 AUTOTOOLS_AUTORECONF=yes
58 GENTOO_DEPEND_ON_PERL=no
59 inherit autotools-utils flag-o-matic multilib php-ext-source-r2 perl-module distutils-r1
60
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
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
68 IUSE="+perl +python php static-libs"
69
70 RDEPEND="perl? ( dev-lang/perl:= )
71 python? ( ${PYTHON_DEPS} )
72 media-libs/freetype
73 media-libs/libpng:=
74 media-libs/giflib
75 sys-libs/zlib
76 !media-libs/libswf"
77 DEPEND="${RDEPEND}
78 sys-devel/flex
79 virtual/yacc"
80
81 S=${WORKDIR}/${P/_/.}
82
83 # Tests only work when the package is tested on a system
84 # which does not presently have any version of ming installed.
85 RESTRICT="test"
86
87 src_prepare() {
88 # Let's get rid of the TEXTRELS, link dynamic. Use gif.
89 sed -i \
90 -e 's/libming.a/libming.so/' \
91 -e 's/lungif/lgif/' \
92 perl_ext/Makefile.PL
93 sed -i \
94 -e 's/ungif/gif/' \
95 py_ext/setup.py.in
96
97 if use php; then
98 cd "${S}/php_ext"
99 php-ext-source-r2_phpize
100 cd "${S}"
101 fi
102
103 sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die
104
105 autotools-utils_src_prepare
106 }
107
108 src_configure() {
109 # build is sensitive to -O3 (bug #297437)
110 replace-flags -O3 -O2
111
112 # build python via distutils calls, disable here
113 local myeconfargs=(
114 --disable-python
115 $(use_enable static-libs static)
116 $(use_enable perl)
117 )
118 autotools-utils_src_configure
119 }
120
121 run_distutils() {
122 if use python; then
123 pushd "${BUILD_DIR}"/py_ext > /dev/null || die
124 distutils-r1_"${@}"
125 popd > /dev/null || die
126 fi
127 }
128
129 src_compile() {
130 autotools-utils_src_compile
131
132 run_distutils ${FUNCNAME}
133
134 if use php; then
135 cd "${S}"/php_ext
136 myconf="--disable-rpath
137 --disable-static
138 --with-ming"
139 php-ext-source-r2_src_compile
140 fi
141 }
142
143 src_install() {
144 run_distutils ${FUNCNAME}
145
146 autotools-utils_src_install INSTALLDIRS="vendor"
147
148 fixlocalpod
149
150 if use php; then
151 cd "${S}"/php_ext
152 php-ext-source-r2_src_install
153 fi
154 }
155
156 pkg_postinst() {
157 use perl && perl-module_pkg_postinst
158 }
159
160 pkg_prerm() {
161 use perl && perl-module_pkg_prerm
162 }
163
164 pkg_postrm() {
165 use perl && perl-module_pkg_postrm
166 }