1 |
creffett 14/06/19 16:53:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bitpim-1.0.6-r2.ebuild |
5 |
Removed: bitpim-1.0.6-r1.ebuild |
6 |
Log: |
7 |
[QA] Revision bump. EAPI bump. Convert to distutils-r1. Respect CFLAGS, bug 443240. Respect LDFLAGS, bug 336233. Fix QA errors with .desktop files. Credit to iamnr3 for the latter three fixes. |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 28DB029C) |
10 |
|
11 |
Revision Changes Path |
12 |
1.37 app-mobilephone/bitpim/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/bitpim/ChangeLog?rev=1.37&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/bitpim/ChangeLog?rev=1.37&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/bitpim/ChangeLog?r1=1.36&r2=1.37 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/ChangeLog,v |
21 |
retrieving revision 1.36 |
22 |
retrieving revision 1.37 |
23 |
diff -u -r1.36 -r1.37 |
24 |
--- ChangeLog 9 Apr 2014 07:14:02 -0000 1.36 |
25 |
+++ ChangeLog 19 Jun 2014 16:53:51 -0000 1.37 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for app-mobilephone/bitpim |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/ChangeLog,v 1.36 2014/04/09 07:14:02 tomwij Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/ChangeLog,v 1.37 2014/06/19 16:53:51 creffett Exp $ |
31 |
+ |
32 |
+*bitpim-1.0.6-r2 (19 Jun 2014) |
33 |
+ |
34 |
+ 19 Jun 2014; Chris Reffett <creffett@g.o> +bitpim-1.0.6-r2.ebuild, |
35 |
+ -bitpim-1.0.6-r1.ebuild: |
36 |
+ [QA] Revision bump. EAPI bump. Convert to distutils-r1. Respect CFLAGS, bug |
37 |
+ 443240. Respect LDFLAGS, bug 336233. Fix QA errors with .desktop files. Credit |
38 |
+ to iamnr3 for the latter three fixes. |
39 |
|
40 |
09 Apr 2014; Tom Wijsman <TomWij@g.o> metadata.xml: |
41 |
[QA] Dissolve the mobile-phone herd to maintainer-needed because it is empty |
42 |
|
43 |
|
44 |
|
45 |
1.1 app-mobilephone/bitpim/bitpim-1.0.6-r2.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/bitpim/bitpim-1.0.6-r2.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/bitpim/bitpim-1.0.6-r2.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: bitpim-1.0.6-r2.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2014 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/bitpim/bitpim-1.0.6-r2.ebuild,v 1.1 2014/06/19 16:53:51 creffett Exp $ |
55 |
|
56 |
EAPI=5 |
57 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
58 |
|
59 |
inherit distutils-r1 eutils fdo-mime multilib |
60 |
|
61 |
DESCRIPTION="Program to view and manipulate data on LG VX4400/VX6000 and many Sanyo Sprint mobile phones" |
62 |
HOMEPAGE="http://www.bitpim.org/" |
63 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
# this needs fixing |
69 |
#KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
70 |
IUSE="crypt evo usb" |
71 |
|
72 |
COMMON_DEPEND="dev-python/apsw[${PYTHON_USEDEP}] |
73 |
dev-python/pyserial[${PYTHON_USEDEP}] |
74 |
dev-python/python-dsv |
75 |
dev-python/wxpython:2.8[${PYTHON_USEDEP}] |
76 |
crypt? ( |
77 |
>=dev-python/paramiko-1.7.1[${PYTHON_USEDEP}] |
78 |
dev-python/pycrypto[${PYTHON_USEDEP}] |
79 |
) |
80 |
usb? ( virtual/libusb:0 )" |
81 |
DEPEND="${COMMON_DEPEND} |
82 |
usb? ( dev-lang/swig )" |
83 |
RDEPEND="${COMMON_DEPEND} |
84 |
media-libs/netpbm |
85 |
virtual/ffmpeg" |
86 |
|
87 |
PATCHES=( "${FILESDIR}/${P}-gentoo.patch" "${FILESDIR}/${P}-ffmpeg_quality.patch" "${FILESDIR}/${P}-gcc43.patch" ) |
88 |
|
89 |
src_prepare() { |
90 |
distutils-r1_src_prepare |
91 |
python_setup |
92 |
sed -i -e "s/^PYTHONVER=.*/PYTHONVER=\$PYTHON/" \ |
93 |
src/native/usb/build.sh || die "sed failed" |
94 |
sed -i "s/\$(EXTRADEFINES)\ -O2/\$(CXXFLAGS) \$(LDFLAGS)/" \ |
95 |
src/native/av/bmp2avi/Makefile || die "sed failed" |
96 |
} |
97 |
|
98 |
src_compile() { |
99 |
# USB stuff |
100 |
if use usb; then |
101 |
cd "${S}/src/native/usb" |
102 |
sh ./build.sh || die "compilation of native/usb failed" |
103 |
fi |
104 |
|
105 |
# strings |
106 |
cd "${S}/src/native/strings" |
107 |
distutils-r1_src_compile |
108 |
|
109 |
# bmp2avi |
110 |
cd "${S}/src/native/av/bmp2avi" |
111 |
PLATFORM=linux emake CXX="$(tc-getCXX)" |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
|
116 |
# Install files into right place |
117 |
# |
118 |
# BitPim is a self-contained app, so jamming it into |
119 |
# Python's site-packages might not be worthwhile. We'll |
120 |
# Put it in its own home, and add the PYTHONPATH in the |
121 |
# wrapper executables below. |
122 |
local RLOC=/usr/$(get_libdir)/${P} |
123 |
|
124 |
# Main Python source |
125 |
insinto ${RLOC} |
126 |
doins src/*.py |
127 |
|
128 |
# Phone specifics |
129 |
insinto ${RLOC}/phones |
130 |
doins src/phones/*.py |
131 |
|
132 |
# Native products |
133 |
insinto ${RLOC}/native |
134 |
doins src/native/*.py |
135 |
insinto ${RLOC}/native/qtopiadesktop |
136 |
doins src/native/qtopiadesktop/*.py |
137 |
insinto ${RLOC}/native/outlook |
138 |
doins src/native/outlook/*.py |
139 |
insinto ${RLOC}/native/egroupware |
140 |
doins src/native/egroupware/*.py |
141 |
if use evo ; then |
142 |
insinto ${RLOC}/native/evolution |
143 |
doins src/native/evolution/*.py |
144 |
fi |
145 |
|
146 |
# strings |
147 |
cd "${S}/src/native/strings" |
148 |
distutils-r1_src_install |
149 |
|
150 |
cd "${S}" |
151 |
insinto $RLOC/native/strings |
152 |
doins src/native/strings/__init__.py src/native/strings/jarowpy.py |
153 |
|
154 |
# usb |
155 |
if use usb; then |
156 |
insinto ${RLOC}/native/usb |
157 |
doins src/native/usb/*.py |
158 |
doins src/native/usb/*.so |
159 |
fi |
160 |
|
161 |
# Helpers and resources |
162 |
dobin src/native/av/bmp2avi/bmp2avi |
163 |
insinto ${RLOC}/resources |
164 |
doins resources/* |
165 |
|
166 |
# Bitfling |
167 |
if use crypt; then |
168 |
FLINGDIR="${RLOC}/bitfling" |
169 |
insinto $FLINGDIR |
170 |
cd "${S}/src/bitfling" |
171 |
doins *.py |
172 |
cd "${S}" |
173 |
fi |
174 |
|
175 |
# Creating scripts |
176 |
echo '#!/bin/sh' > "${T}/bitpim" |
177 |
echo "exec $PYTHON ${RLOC}/bp.py \"\$@\"" >> "${T}/bitpim" |
178 |
dobin "${T}/bitpim" |
179 |
if use crypt; then |
180 |
echo '#!/bin/sh' > "${T}/bitfling" |
181 |
echo "exec $PYTHON ${RLOC}/bp.py \"\$@\" bitfling" >> "${T}/bitfling" |
182 |
dobin "${T}/bitfling" |
183 |
fi |
184 |
|
185 |
# Desktop file |
186 |
sed -i \ |
187 |
-e "s|%%INSTALLBINDIR%%|/usr/bin|" \ |
188 |
-e "s|%%INSTALLLIBDIR%%|${RLOC}|" \ |
189 |
-e "s|Terminal=0|Terminal=true|" \ |
190 |
-e "s|Application;Calendar;ContactManagement;Utility;|Calendar;ContactManagement;Utility;|" \ |
191 |
packaging/bitpim.desktop || die "sed failed" |
192 |
domenu packaging/bitpim.desktop |
193 |
} |
194 |
|
195 |
pkg_postinst() { |
196 |
fdo-mime_desktop_database_update |
197 |
} |
198 |
|
199 |
pkg_postrm() { |
200 |
fdo-mime_desktop_database_update |
201 |
} |