1 |
mrness 09/06/20 21:39:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bitpim-1.0.6-r1.ebuild |
5 |
Removed: bitpim-1.0.6.ebuild |
6 |
Log: |
7 |
Migrate to EAPI 2. Update libusb dependency atom (#270039). |
8 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.28 app-mobilephone/bitpim/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/bitpim/ChangeLog?rev=1.28&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/bitpim/ChangeLog?rev=1.28&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/bitpim/ChangeLog?r1=1.27&r2=1.28 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/ChangeLog,v |
20 |
retrieving revision 1.27 |
21 |
retrieving revision 1.28 |
22 |
diff -u -r1.27 -r1.28 |
23 |
--- ChangeLog 2 Nov 2008 18:13:30 -0000 1.27 |
24 |
+++ ChangeLog 20 Jun 2009 21:39:29 -0000 1.28 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-mobilephone/bitpim |
27 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/ChangeLog,v 1.27 2008/11/02 18:13:30 mrness Exp $ |
29 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/ChangeLog,v 1.28 2009/06/20 21:39:29 mrness Exp $ |
31 |
+ |
32 |
+*bitpim-1.0.6-r1 (20 Jun 2009) |
33 |
+ |
34 |
+ 20 Jun 2009; Alin Năstac <mrness@g.o> -bitpim-1.0.6.ebuild, |
35 |
+ +bitpim-1.0.6-r1.ebuild: |
36 |
+ Migrate to EAPI 2. Update libusb dependency atom (#270039). |
37 |
|
38 |
*bitpim-1.0.6 (02 Nov 2008) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-mobilephone/bitpim/bitpim-1.0.6-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/bitpim/bitpim-1.0.6-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/bitpim/bitpim-1.0.6-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: bitpim-1.0.6-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/bitpim-1.0.6-r1.ebuild,v 1.1 2009/06/20 21:39:29 mrness Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
|
56 |
inherit distutils fdo-mime multilib |
57 |
|
58 |
DESCRIPTION="Program to view and manipulate data on LG VX4400/VX6000 and many Sanyo Sprint mobile phones" |
59 |
HOMEPAGE="http://www.bitpim.org/" |
60 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~x86" |
65 |
# this needs fixing |
66 |
#KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
67 |
IUSE="crypt evo usb" |
68 |
|
69 |
COMMON_DEPEND="=dev-python/wxpython-2.8* |
70 |
dev-python/python-dsv |
71 |
dev-python/pyserial |
72 |
dev-python/apsw |
73 |
crypt? ( >=dev-python/paramiko-1.7.1 |
74 |
dev-python/pycrypto ) |
75 |
usb? ( dev-libs/libusb:0 )" |
76 |
DEPEND="${COMMON_DEPEND} |
77 |
usb? ( dev-lang/swig )" |
78 |
RDEPEND="${COMMON_DEPEND} |
79 |
media-video/ffmpeg |
80 |
media-libs/netpbm |
81 |
>=dev-lang/python-2.5" |
82 |
|
83 |
src_prepare() { |
84 |
epatch "${FILESDIR}/${P}-gentoo.patch" |
85 |
epatch "${FILESDIR}/${P}-ffmpeg_quality.patch" |
86 |
epatch "${FILESDIR}/${P}-gcc43.patch" |
87 |
sed -i "s/python2.3/${python}/" "${S}/src/native/usb/build.sh" |
88 |
} |
89 |
|
90 |
src_compile() { |
91 |
# USB stuff |
92 |
if use usb; then |
93 |
cd "${S}/src/native/usb" |
94 |
sh ./build.sh || die "compilation of native/usb failed" |
95 |
fi |
96 |
|
97 |
# strings |
98 |
cd "${S}/src/native/strings" |
99 |
${python} setup.py build || die "compilation of native/strings failed" |
100 |
|
101 |
# bmp2avi |
102 |
cd "${S}/src/native/av/bmp2avi" |
103 |
PLATFORM=linux make || die "compilation of native/bmp2avi failed" |
104 |
} |
105 |
|
106 |
src_install() { |
107 |
|
108 |
# Install files into right place |
109 |
# |
110 |
# BitPim is a self-contained app, so jamming it into |
111 |
# Python's site-packages might not be worthwhile. We'll |
112 |
# Put it in its own home, and add the PYTHONPATH in the |
113 |
# wrapper executables below. |
114 |
distutils_python_version |
115 |
local RLOC=/usr/$(get_libdir)/${P} |
116 |
|
117 |
# Main Python source |
118 |
insinto ${RLOC} |
119 |
doins src/*.py |
120 |
|
121 |
# Phone specifics |
122 |
insinto ${RLOC}/phones |
123 |
doins src/phones/*.py |
124 |
|
125 |
# Native products |
126 |
insinto ${RLOC}/native |
127 |
doins src/native/*.py |
128 |
insinto ${RLOC}/native/qtopiadesktop |
129 |
doins src/native/qtopiadesktop/*.py |
130 |
insinto ${RLOC}/native/outlook |
131 |
doins src/native/outlook/*.py |
132 |
insinto ${RLOC}/native/egroupware |
133 |
doins src/native/egroupware/*.py |
134 |
if use evo ; then |
135 |
insinto ${RLOC}/native/evolution |
136 |
doins src/native/evolution/*.py |
137 |
fi |
138 |
|
139 |
# strings |
140 |
cd "${S}/src/native/strings" |
141 |
${python} setup.py install --root="${D}" --no-compile "$@" \ |
142 |
|| die "install of native/strings failed" |
143 |
|
144 |
cd "${S}" |
145 |
insinto $RLOC/native/strings |
146 |
doins src/native/strings/__init__.py src/native/strings/jarowpy.py |
147 |
|
148 |
# usb |
149 |
if use usb; then |
150 |
insinto ${RLOC}/native/usb |
151 |
doins src/native/usb/*.py |
152 |
doins src/native/usb/*.so |
153 |
fi |
154 |
|
155 |
# Helpers and resources |
156 |
dobin src/native/av/bmp2avi/bmp2avi |
157 |
insinto ${RLOC}/resources |
158 |
doins resources/* |
159 |
|
160 |
# Bitfling |
161 |
if use crypt; then |
162 |
FLINGDIR="${RLOC}/bitfling" |
163 |
insinto $FLINGDIR |
164 |
cd "${S}/src/bitfling" |
165 |
doins *.py |
166 |
cd "${S}" |
167 |
fi |
168 |
|
169 |
# Creating scripts |
170 |
echo '#!/bin/sh' > "${T}/bitpim" |
171 |
echo "exec ${python} ${RLOC}/bp.py \"\$@\"" >> "${T}/bitpim" |
172 |
dobin "${T}/bitpim" |
173 |
if use crypt; then |
174 |
echo '#!/bin/sh' > "${T}/bitfling" |
175 |
echo "exec ${python} ${RLOC}/bp.py \"\$@\" bitfling" >> "${T}/bitfling" |
176 |
dobin "${T}/bitfling" |
177 |
fi |
178 |
|
179 |
# Desktop file |
180 |
insinto /usr/share/applications |
181 |
sed -i -e "s|%%INSTALLBINDIR%%|/usr/bin|" -e "s|%%INSTALLLIBDIR%%|${RLOC}|" \ |
182 |
packaging/bitpim.desktop |
183 |
doins packaging/bitpim.desktop |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
# Optimize in installed directory |
188 |
python_mod_optimize /usr/$(get_libdir)/${P} |
189 |
fdo-mime_desktop_database_update |
190 |
} |
191 |
|
192 |
pkg_postrm() { |
193 |
python_mod_cleanup /usr/$(get_libdir)/${P} |
194 |
fdo-mime_desktop_database_update |
195 |
} |