Gentoo Archives: gentoo-commits

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