1 |
trapni 08/05/05 09:38:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: capseo-0.3.0_pre200712251-r2.ebuild |
5 |
Log: |
6 |
fixes bug 200039. thanks to David Leverton |
7 |
(Portage version: 2.1.5_rc3) |
8 |
|
9 |
Revision Changes Path |
10 |
1.7 media-libs/capseo/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/capseo/ChangeLog?rev=1.7&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/capseo/ChangeLog?rev=1.7&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/capseo/ChangeLog?r1=1.6&r2=1.7 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/capseo/ChangeLog,v |
19 |
retrieving revision 1.6 |
20 |
retrieving revision 1.7 |
21 |
diff -u -r1.6 -r1.7 |
22 |
--- ChangeLog 2 May 2008 14:01:05 -0000 1.6 |
23 |
+++ ChangeLog 5 May 2008 09:38:58 -0000 1.7 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-libs/capseo |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/capseo/ChangeLog,v 1.6 2008/05/02 14:01:05 trapni Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/capseo/ChangeLog,v 1.7 2008/05/05 09:38:58 trapni Exp $ |
29 |
+ |
30 |
+*capseo-0.3.0_pre200712251-r2 (05 May 2008) |
31 |
+ |
32 |
+ 05 May 2008; Christian Parpart <trapni@g.o> |
33 |
+ +capseo-0.3.0_pre200712251-r2.ebuild: |
34 |
+ fixes bug 200039. thanks to David Leverton |
35 |
|
36 |
02 May 2008; Christian Parpart <trapni@g.o> |
37 |
capseo-0.3.0_pre200712251-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/capseo/capseo-0.3.0_pre200712251-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/capseo/capseo-0.3.0_pre200712251-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/capseo/capseo-0.3.0_pre200712251-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: capseo-0.3.0_pre200712251-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/capseo/capseo-0.3.0_pre200712251-r2.ebuild,v 1.1 2008/05/05 09:38:58 trapni Exp $ |
51 |
|
52 |
inherit flag-o-matic multilib |
53 |
|
54 |
DESCRIPTION="Capseo Video Codec Library" |
55 |
HOMEPAGE="http://rm-rf.in/captury/wiki/CapseoCodec" |
56 |
SRC_URI="http://upstream.rm-rf.in/captury/captury-${PV}.tar.bz2" |
57 |
LICENSE="GPL-2" |
58 |
SLOT="0" |
59 |
KEYWORDS="~amd64 ~x86" |
60 |
IUSE="debug theora" |
61 |
|
62 |
RDEPEND=">=media-libs/libtheora-1.0_alpha6-r1" |
63 |
|
64 |
DEPEND="${RDEPEND} |
65 |
x86? ( >=dev-lang/yasm-0.4.0 ) |
66 |
amd64? ( >=dev-lang/yasm-0.4.0 ) |
67 |
dev-util/pkgconfig" |
68 |
|
69 |
EMULTILIB_PKG="true" |
70 |
|
71 |
S="${WORKDIR}/captury-${PV}/${PN}" |
72 |
|
73 |
src_unpack() { |
74 |
unpack ${A} || die |
75 |
|
76 |
cd "${S}" |
77 |
einfo "pwd: $(pwd)" |
78 |
epatch "${FILESDIR}/no-cpsplay.diff" || die |
79 |
} |
80 |
|
81 |
src_compile() { |
82 |
if [[ -z ${OABI} ]] && has_multilib_profile; then |
83 |
use debug && append-flags -O0 -g3 |
84 |
use debug || append-flags -DNDEBUG=1 |
85 |
|
86 |
einfo "Building multilib ${PN} for ABIs: $(get_install_abis)" |
87 |
OABI=${ABI} |
88 |
for ABI in $(get_install_abis); do |
89 |
export ABI=${ABI} |
90 |
src_compile |
91 |
done |
92 |
ABI=${OABI} |
93 |
return |
94 |
fi |
95 |
|
96 |
cd "${S}" || die |
97 |
|
98 |
if [[ ! -f configure ]]; then |
99 |
./autogen.sh || die "autogen.sh failed" |
100 |
fi |
101 |
|
102 |
# obviousely in src_install() it is set to "default" on non-multilib hosts, |
103 |
# but isn't in src_compile() |
104 |
ABI=${ABI:-default} |
105 |
|
106 |
mkdir abi-${ABI} |
107 |
cd abi-${ABI} |
108 |
|
109 |
local myconf= |
110 |
case ${ABI} in |
111 |
amd64|x86) |
112 |
myconf="${myconf} --with-accel=${ABI}" |
113 |
;; |
114 |
esac |
115 |
|
116 |
if is_final_abi; then |
117 |
myconf="${myconf} $(use_enable theora)" |
118 |
else |
119 |
# drop unnecessary theora dependency for secondary ABIs (as theora is |
120 |
# only used for the cpsrecode tool anyway). |
121 |
# see bug 200093. |
122 |
myconf="${myconf} --disable-theora" |
123 |
fi |
124 |
|
125 |
../configure ${myconf} \ |
126 |
--prefix="/usr" \ |
127 |
--host="$(get_abi_CHOST ${ABI})" \ |
128 |
--libdir="/usr/$(get_libdir)" \ |
129 |
|| die "./configure for ABI ${ABI} failed" |
130 |
|
131 |
emake || die "make for ABI ${ABI} failed" |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
for ABI in $(get_install_abis); do |
136 |
make -C abi-${ABI} install DESTDIR="${D}" || die "make install for ABI ${ABI} failed." |
137 |
done |
138 |
|
139 |
rm "${D}/usr/bin/cpsplay" # currently unsupported |
140 |
|
141 |
dodoc AUTHORS ChangeLog* NEWS README* TODO |
142 |
} |
143 |
|
144 |
pkg_postinst() { |
145 |
einfo "Use the following command to re-encode your screen captures to a" |
146 |
einfo "file format current media players do understand:" |
147 |
einfo |
148 |
einfo " cpsrecode -i capture.cps -o - | mencoder - -o capture.avi \\" |
149 |
einfo " -ovc lavc -lavcopts vcodec=xvid:autoaspect=1" |
150 |
einfo |
151 |
einfo "or play in-place via mplayer:" |
152 |
einfo |
153 |
einfo " cpsrecode -i capture.cps -o - | mplayer -demuxer y4m -" |
154 |
einfo |
155 |
einfo "or if use-flag theora enabled, create your ogg/theora file inplace:" |
156 |
einfo |
157 |
einfo " cpsrecode -i capture.cps -o capture.ogg -c theora" |
158 |
echo |
159 |
} |
160 |
|
161 |
# vim:ai:noet:ts=4:nowrap |
162 |
|
163 |
|
164 |
|
165 |
-- |
166 |
gentoo-commits@l.g.o mailing list |