Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libpostproc: libpostproc-9999.ebuild libpostproc-10.20140517-r1.ebuild ChangeLog
Date: Sat, 07 Jun 2014 21:31:54
Message-Id: 20140607213150.A01252004E@flycatcher.gentoo.org
1 mgorny 14/06/07 21:31:50
2
3 Modified: libpostproc-9999.ebuild ChangeLog
4 Added: libpostproc-10.20140517-r1.ebuild
5 Log:
6 Enable multilib support, bug #489820.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.10 media-libs/libpostproc/libpostproc-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/libpostproc-9999.ebuild?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/libpostproc-9999.ebuild?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/libpostproc-9999.ebuild?r1=1.9&r2=1.10
16
17 Index: libpostproc-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/libpostproc/libpostproc-9999.ebuild,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- libpostproc-9999.ebuild 12 May 2014 17:03:20 -0000 1.9
24 +++ libpostproc-9999.ebuild 7 Jun 2014 21:31:50 -0000 1.10
25 @@ -1,8 +1,8 @@
26 # Copyright 1999-2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libpostproc/libpostproc-9999.ebuild,v 1.9 2014/05/12 17:03:20 lu_zero Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libpostproc/libpostproc-9999.ebuild,v 1.10 2014/06/07 21:31:50 mgorny Exp $
30
31 -EAPI="4"
32 +EAPI="5"
33
34 SCM=""
35 if [ "${PV#9999}" != "${PV}" ] ; then
36 @@ -10,7 +10,7 @@
37 EGIT_REPO_URI="git://github.com/lu-zero/postproc.git"
38 fi
39
40 -inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
41 +inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
42
43 DESCRIPTION="Video post processing library"
44 HOMEPAGE="https://github.com/lu-zero/postproc"
45 @@ -36,45 +36,46 @@
46 IUSE="${IUSE} ${i%:*}"
47 done
48
49 -DEPEND=">=virtual/ffmpeg-0.10.2-r2"
50 +DEPEND=">=virtual/ffmpeg-0.10.2-r2[${MULTILIB_USEDEP}]"
51 RDEPEND="${DEPEND}
52 !<media-video/libav-0.8.2-r2
53 !media-video/ffmpeg:0
54 + abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
55 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )
56 "
57
58 -src_configure() {
59 - local myconf="${EXTRA_LIBPOSTPROC_CONF}"
60 +multilib_src_configure() {
61 + local myconf=( ${EXTRA_LIBPOSTPROC_CONF} )
62 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
63 - [ "${i}" = "native" ] && i="host" # bug #273421
64 - myconf="${myconf} --cpu=${i}"
65 + [[ "${i}" = "native" ]] && i="host" # bug #273421
66 + myconf+=( --cpu=${i} )
67 break
68 done
69
70 if use pic ; then
71 - myconf="${myconf} --enable-pic"
72 + myconf+=( --enable-pic )
73 # disable asm code if PIC is required
74 # as the provided asm decidedly is not PIC for x86.
75 - use x86 && myconf="${myconf} --disable-asm"
76 + [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
77 fi
78
79 # cross compile support
80 if tc-is-cross-compiler ; then
81 - myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
82 + myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
83 case ${CHOST} in
84 *freebsd*)
85 - myconf="${myconf} --target-os=freebsd"
86 + myconf+=( --target-os=freebsd )
87 ;;
88 mingw32*)
89 - myconf="${myconf} --target-os=mingw32"
90 + myconf+=( --target-os=mingw32 )
91 ;;
92 *linux*)
93 - myconf="${myconf} --target-os=linux"
94 + myconf+=( --target-os=linux )
95 ;;
96 esac
97 fi
98
99 - cd "${S}"
100 - ./configure \
101 + "${S}"/configure \
102 --prefix="${EPREFIX}/usr" \
103 --libdir="${EPREFIX}/usr/$(get_libdir)" \
104 --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
105 @@ -84,5 +85,5 @@
106 --optflags="${CFLAGS}" \
107 --extra-cflags="${CFLAGS}" \
108 $(use_enable static-libs static) \
109 - ${myconf} || die
110 + "${myconf[@]}" || die
111 }
112
113
114
115 1.25 media-libs/libpostproc/ChangeLog
116
117 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/ChangeLog?rev=1.25&view=markup
118 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/ChangeLog?rev=1.25&content-type=text/plain
119 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/ChangeLog?r1=1.24&r2=1.25
120
121 Index: ChangeLog
122 ===================================================================
123 RCS file: /var/cvsroot/gentoo-x86/media-libs/libpostproc/ChangeLog,v
124 retrieving revision 1.24
125 retrieving revision 1.25
126 diff -u -r1.24 -r1.25
127 --- ChangeLog 17 May 2014 09:24:48 -0000 1.24
128 +++ ChangeLog 7 Jun 2014 21:31:50 -0000 1.25
129 @@ -1,6 +1,12 @@
130 # ChangeLog for media-libs/libpostproc
131 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
132 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libpostproc/ChangeLog,v 1.24 2014/05/17 09:24:48 lu_zero Exp $
133 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libpostproc/ChangeLog,v 1.25 2014/06/07 21:31:50 mgorny Exp $
134 +
135 +*libpostproc-10.20140517-r1 (07 Jun 2014)
136 +
137 + 07 Jun 2014; Michał Górny <mgorny@g.o>
138 + +libpostproc-10.20140517-r1.ebuild, libpostproc-9999.ebuild:
139 + Enable multilib support, bug #489820.
140
141 *libpostproc-10.20140517 (17 May 2014)
142
143
144
145
146 1.1 media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild
147
148 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild?rev=1.1&view=markup
149 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild?rev=1.1&content-type=text/plain
150
151 Index: libpostproc-10.20140517-r1.ebuild
152 ===================================================================
153 # Copyright 1999-2014 Gentoo Foundation
154 # Distributed under the terms of the GNU General Public License v2
155 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild,v 1.1 2014/06/07 21:31:50 mgorny Exp $
156
157 EAPI="5"
158
159 SCM=""
160 if [ "${PV#9999}" != "${PV}" ] ; then
161 SCM="git-2"
162 EGIT_REPO_URI="git://github.com/lu-zero/postproc.git"
163 fi
164
165 inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
166
167 DESCRIPTION="Video post processing library"
168 HOMEPAGE="https://github.com/lu-zero/postproc"
169 if [ "${PV#9999}" != "${PV}" ] ; then
170 SRC_URI=""
171 elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
172 SRC_URI="mirror://gentoo/${P}.tar.xz"
173 else # Release
174 SRC_URI="http://dev.gentoo.org/~lu_zero/distfiles/${P}.tar.xz"
175 fi
176
177 LICENSE="GPL-2"
178 SLOT="0"
179 if [ "${PV#9999}" = "${PV}" ] ; then
180 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
181 fi
182 IUSE="pic static-libs"
183
184 # String for CPU features in the useflag[:configure_option] form
185 # if :configure_option isn't set, it will use 'useflag' as configure option
186 CPU_FEATURES="3dnow:amd3dnow altivec mmx mmxext"
187 for i in ${CPU_FEATURES}; do
188 IUSE="${IUSE} ${i%:*}"
189 done
190
191 DEPEND=">=virtual/ffmpeg-0.10.2-r2[${MULTILIB_USEDEP}]"
192 RDEPEND="${DEPEND}
193 !<media-video/libav-0.8.2-r2
194 !media-video/ffmpeg:0
195 abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
196 !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )
197 "
198
199 multilib_src_configure() {
200 local myconf=( ${EXTRA_LIBPOSTPROC_CONF} )
201 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
202 [[ "${i}" = "native" ]] && i="host" # bug #273421
203 myconf+=( --cpu=${i} )
204 break
205 done
206
207 if use pic ; then
208 myconf+=( --enable-pic )
209 # disable asm code if PIC is required
210 # as the provided asm decidedly is not PIC for x86.
211 [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
212 fi
213
214 # cross compile support
215 if tc-is-cross-compiler ; then
216 myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
217 case ${CHOST} in
218 *freebsd*)
219 myconf+=( --target-os=freebsd )
220 ;;
221 mingw32*)
222 myconf+=( --target-os=mingw32 )
223 ;;
224 *linux*)
225 myconf+=( --target-os=linux )
226 ;;
227 esac
228 fi
229
230 "${S}"/configure \
231 --prefix="${EPREFIX}/usr" \
232 --libdir="${EPREFIX}/usr/$(get_libdir)" \
233 --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
234 --enable-shared \
235 --cc="$(tc-getCC)" \
236 --ar="$(tc-getAR)" \
237 --optflags="${CFLAGS}" \
238 --extra-cflags="${CFLAGS}" \
239 $(use_enable static-libs static) \
240 "${myconf[@]}" || die
241 }