Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/calibre: ChangeLog calibre-0.7.20.ebuild calibre-0.7.17.ebuild calibre-0.7.16.ebuild
Date: Tue, 28 Sep 2010 20:17:05
Message-Id: 20100928201500.CC3DE20051@flycatcher.gentoo.org
1 zmedico 10/09/28 20:15:00
2
3 Modified: ChangeLog
4 Added: calibre-0.7.20.ebuild
5 Removed: calibre-0.7.17.ebuild calibre-0.7.16.ebuild
6 Log:
7 28 Sep 2010; Zac Medico <zmedico@g.o> +calibre-0.7.20.ebuild:
8 0.7.20 version bump.
9
10 28 Sep 2010; Zac Medico <zmedico@g.o> -calibre-0.7.16.ebuild,
11 -calibre-0.7.17.ebuild:
12 Remove old versions.
13
14 (Portage version: 2.2_rc88_p32/cvs/Linux i686)
15
16 Revision Changes Path
17 1.103 app-text/calibre/ChangeLog
18
19 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.103&view=markup
20 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.103&content-type=text/plain
21 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?r1=1.102&r2=1.103
22
23 Index: ChangeLog
24 ===================================================================
25 RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v
26 retrieving revision 1.102
27 retrieving revision 1.103
28 diff -u -r1.102 -r1.103
29 --- ChangeLog 15 Sep 2010 01:24:47 -0000 1.102
30 +++ ChangeLog 28 Sep 2010 20:15:00 -0000 1.103
31 @@ -1,6 +1,15 @@
32 # ChangeLog for app-text/calibre
33 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
34 -# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.102 2010/09/15 01:24:47 zmedico Exp $
35 +# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.103 2010/09/28 20:15:00 zmedico Exp $
36 +
37 +*calibre-0.7.20 (28 Sep 2010)
38 +
39 + 28 Sep 2010; Zac Medico <zmedico@g.o> +calibre-0.7.20.ebuild:
40 + 0.7.20 version bump.
41 +
42 + 28 Sep 2010; Zac Medico <zmedico@g.o> -calibre-0.7.16.ebuild,
43 + -calibre-0.7.17.ebuild:
44 + Remove old versions.
45
46 *calibre-0.7.18 (15 Sep 2010)
47
48
49
50
51 1.1 app-text/calibre/calibre-0.7.20.ebuild
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.7.20.ebuild?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.7.20.ebuild?rev=1.1&content-type=text/plain
55
56 Index: calibre-0.7.20.ebuild
57 ===================================================================
58 # Copyright 1999-2010 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 # $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.7.20.ebuild,v 1.1 2010/09/28 20:15:00 zmedico Exp $
61
62 EAPI=3
63 PYTHON_DEPEND=2:2.6
64 PYTHON_USE_WITH=sqlite
65
66 inherit python distutils eutils fdo-mime bash-completion
67
68 DESCRIPTION="Ebook management application."
69 HOMEPAGE="http://calibre-ebook.com/"
70 SRC_URI="http://calibre-ebook.com/downloads/$P.tar.gz"
71
72 LICENSE="GPL-2"
73
74 KEYWORDS="~amd64 ~x86"
75
76 SLOT="0"
77
78 IUSE=""
79
80 SHARED_DEPEND="
81 >=app-text/podofo-0.8.2
82 >=app-text/poppler-0.12.3-r3[qt4,xpdf-headers]
83 >=dev-libs/chmlib-0.40
84 >=dev-python/beautifulsoup-3.0.5
85 >=dev-python/dnspython-1.6.0
86 >=dev-python/cssutils-0.9.7_alpha3
87 >=dev-python/dbus-python-0.82.2
88 >=dev-python/imaging-1.1.6
89 >=dev-python/lxml-2.2.1
90 >=dev-python/mechanize-0.1.11
91 >=dev-python/python-dateutil-1.4.1
92 >=dev-python/PyQt4-4.7[X,svg,webkit]
93 || ( >=media-gfx/imagemagick-6.5.9 media-gfx/graphicsmagick[imagemagick] )
94 >=media-libs/libwmf-0.2.8
95 >=sys-apps/help2man-1.36.4
96 virtual/libusb:0
97 >=x11-misc/xdg-utils-1.0.2"
98
99 RDEPEND="$SHARED_DEPEND
100 >=dev-python/reportlab-2.1"
101
102 DEPEND="$SHARED_DEPEND
103 >=dev-python/setuptools-0.6_rc5
104 >=gnome-base/librsvg-2.0.0
105 >=x11-misc/xdg-utils-1.0.2-r2"
106
107 S=$WORKDIR/$PN
108
109 pkg_setup() {
110 python_set_active_version 2
111 }
112
113 src_prepare() {
114 # Avoid sandbox violation in /usr/share/gnome/apps when linux.py
115 # calls xdg-* (bug #258938).
116 sed -e "s:'xdg-desktop-menu', 'install':'xdg-desktop-menu', 'install', '--mode', 'user':" \
117 -e "s:xdg-icon-resource install:xdg-icon-resource install --mode user:" \
118 -e "s:xdg-mime install:xdg-mime install --mode user:" \
119 -i src/calibre/linux.py || die "sed'ing in the IMAGE path failed"
120
121 # Disable unnecessary privilege dropping for bug #287067.
122 sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
123 -i setup/install.py || die "sed'ing in the IMAGE path failed"
124
125 distutils_src_prepare
126 }
127
128 src_install() {
129
130 # Bypass kbuildsycoca and update-mime-database in order to
131 # avoid sandbox violations if xdg-mime tries to call them.
132 cat - > "${T}/kbuildsycoca" <<-EOF
133 #!$BASH
134 exit 0
135 EOF
136
137 cp "${T}"/{kbuildsycoca,update-mime-database}
138 chmod +x "${T}"/{kbuildsycoca,update-mime-database}
139
140 # --bindir and --sharedir don't seem to work.
141 # Pass them in anyway so we'll know when they are fixed.
142 # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
143 # violation with kbuildsycoca as in bug #287067, comment #13.
144 export -n DISPLAY
145
146 # Bug #295672 - Avoid sandbox violation in ~/.config by forcing
147 # variables to point to our fake temporary $HOME.
148 export HOME="$T/fake_homedir"
149 export XDG_CONFIG_HOME="$HOME/.config"
150 export XDG_DATA_HOME="$HOME/.local/share"
151 export CALIBRE_CONFIG_DIRECTORY="$XDG_CONFIG_HOME/calibre"
152 mkdir -p "$XDG_CONFIG_HOME" "$CALIBRE_CONFIG_DIRECTORY"
153
154 # Bug #334243 - respect LDFLAGS when building calibre-mount-helper
155 export OVERRIDE_CFLAGS="$CFLAGS $LDFLAGS"
156
157 PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
158 distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share"
159
160 grep -rlZ "${D}" "${D}" | xargs -0 sed -e "s:${D}:/:g" -i ||
161 die "failed to fix harcoded \$D in paths"
162
163 # Python modules are no longer installed in
164 # site-packages, so remove empty dirs.
165 find "${D}$(python_get_libdir)" -type d -empty -delete
166
167 # This code may fail if behavior of --root, --bindir or
168 # --sharedir changes in the future.
169 dodir /usr/lib
170 mv "${D}lib/calibre" "${D}usr/lib/" ||
171 die "failed to move lib dir"
172 find "${D}"lib -type d -empty -delete
173
174 dodir /usr/bin
175 mv "${D}bin/"* "${D}usr/bin/" ||
176 die "failed to move bin dir"
177 find "${D}"bin -type d -empty -delete
178
179 dodir /usr/share
180 mv "${D}share/"* "${D}usr/share/" ||
181 die "failed to move share dir"
182 find "${D}"share -type d -empty -delete
183
184 # The menu entries end up here due to '--mode user' being added to
185 # xdg-* options in src_prepare.
186 dodir /usr/share/mime/packages
187 chmod -fR a+rX,u+w,g-w,o-w "$HOME"/.local
188 mv "$HOME"/.local/share/mime/packages/* "$D"usr/share/mime/packages/ ||
189 die "failed to register mime types"
190 dodir /usr/share/icons
191 mv "$HOME"/.local/share/icons/* "$D"usr/share/icons/ ||
192 die "failed to install icon files"
193 domenu "$HOME"/.local/share/applications/*.desktop ||
194 die "failed to install .desktop menu files"
195
196 dobashcompletion "$D"etc/bash_completion.d/calibre
197 rm -r "${D}"etc/bash_completion.d
198 find "${D}"etc -type d -empty -delete
199
200 python_convert_shebangs -r 2 "$D"
201 }
202
203 pkg_postinst() {
204 fdo-mime_desktop_database_update
205 fdo-mime_mime_database_update
206 distutils_pkg_postinst
207 bash-completion_pkg_postinst
208 }