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.6.50.ebuild calibre-0.6.47.ebuild calibre-0.6.45.ebuild calibre-0.6.44.ebuild
Date: Fri, 30 Apr 2010 22:37:03
Message-Id: 20100430223656.A99E22C04C@corvid.gentoo.org
1 zmedico 10/04/30 22:36:56
2
3 Modified: ChangeLog
4 Added: calibre-0.6.50.ebuild
5 Removed: calibre-0.6.47.ebuild calibre-0.6.45.ebuild
6 calibre-0.6.44.ebuild
7 Log:
8 30 Apr 2010; Zac Medico <zmedico@g.o> +calibre-0.6.50.ebuild:
9 0.6.50 version bump.
10
11 30 Apr 2010; Zac Medico <zmedico@g.o> -calibre-0.6.44.ebuild,
12 -calibre-0.6.45.ebuild, -calibre-0.6.47.ebuild:
13 Remove old versions.
14 (Portage version: 2.2_rc67_p98/cvs/Linux i686)
15
16 Revision Changes Path
17 1.85 app-text/calibre/ChangeLog
18
19 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.85&view=markup
20 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.85&content-type=text/plain
21 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?r1=1.84&r2=1.85
22
23 Index: ChangeLog
24 ===================================================================
25 RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v
26 retrieving revision 1.84
27 retrieving revision 1.85
28 diff -u -r1.84 -r1.85
29 --- ChangeLog 26 Apr 2010 06:06:21 -0000 1.84
30 +++ ChangeLog 30 Apr 2010 22:36:56 -0000 1.85
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.84 2010/04/26 06:06:21 zmedico Exp $
35 +# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.85 2010/04/30 22:36:56 zmedico Exp $
36 +
37 +*calibre-0.6.50 (30 Apr 2010)
38 +
39 + 30 Apr 2010; Zac Medico <zmedico@g.o> +calibre-0.6.50.ebuild:
40 + 0.6.50 version bump.
41 +
42 + 30 Apr 2010; Zac Medico <zmedico@g.o> -calibre-0.6.44.ebuild,
43 + -calibre-0.6.45.ebuild, -calibre-0.6.47.ebuild:
44 + Remove old versions.
45
46 *calibre-0.6.49 (26 Apr 2010)
47
48
49
50
51 1.1 app-text/calibre/calibre-0.6.50.ebuild
52
53 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.50.ebuild?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.50.ebuild?rev=1.1&content-type=text/plain
55
56 Index: calibre-0.6.50.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.6.50.ebuild,v 1.1 2010/04/30 22:36:56 zmedico Exp $
61
62 EAPI=2
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=">=dev-python/cssutils-0.9.7_alpha2
81 >=dev-python/setuptools-0.6_rc5
82 >=dev-python/imaging-1.1.6
83 >=dev-libs/chmlib-0.40
84 virtual/libusb:0
85 >=dev-python/PyQt4-4.5[X,svg,webkit]
86 >=dev-python/mechanize-0.1.11
87 || ( >=media-gfx/imagemagick-6.3.5 media-gfx/graphicsmagick[imagemagick] )
88 >=x11-misc/xdg-utils-1.0.2
89 >=dev-python/dbus-python-0.82.2
90 >=dev-python/lxml-2.1.5
91 >=dev-python/python-dateutil-1.4.1
92 >=dev-python/beautifulsoup-3.0.5
93 >=dev-python/dnspython-1.6.0
94 >=app-text/poppler-0.12.3-r3[qt4,xpdf-headers]
95 >=sys-apps/help2man-1.36.4
96 app-text/podofo"
97
98 RDEPEND="$SHARED_DEPEND
99 >=dev-python/reportlab-2.1"
100
101 DEPEND="$SHARED_DEPEND
102 dev-python/setuptools
103 >=gnome-base/librsvg-2.0.0
104 >=x11-misc/xdg-utils-1.0.2-r2
105 sys-apps/help2man"
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 -e "s:old_udev = '/etc:old_udev = '${D}etc:" \
120 -i src/calibre/linux.py || die "sed'ing in the IMAGE path failed"
121
122 # Disable unnecessary privilege dropping for bug #287067.
123 sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
124 -i setup/install.py || die "sed'ing in the IMAGE path failed"
125
126 distutils_src_prepare
127 }
128
129 src_install() {
130
131 # Bypass kbuildsycoca and update-mime-database in order to
132 # avoid sandbox violations if xdg-mime tries to call them.
133 cat - > "${T}/kbuildsycoca" <<-EOF
134 #!$BASH
135 exit 0
136 EOF
137
138 cp "${T}"/{kbuildsycoca,update-mime-database}
139 chmod +x "${T}"/{kbuildsycoca,update-mime-database}
140
141 # --bindir and --sharedir don't seem to work.
142 # Pass them in anyway so we'll know when they are fixed.
143 # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
144 # violation with kbuildsycoca as in bug #287067, comment #13.
145 export -n DISPLAY
146
147 # Bug #295672 - Aavoid sandbox violation in ~/.config by forcing
148 # variables to point to our fake temporary $HOME.
149 export XDG_CONFIG_HOME="$HOME/.config"
150 export CALIBRE_CONFIG_DIRECTORY="$XDG_CONFIG_HOME/calibre"
151 mkdir -p "$XDG_CONFIG_HOME" "$CALIBRE_CONFIG_DIRECTORY"
152
153 PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
154 distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share"
155
156 grep -rlZ "${D}" "${D}" | xargs -0 sed -e "s:${D}:/:g" -i ||
157 die "failed to fix harcoded \$D in paths"
158
159 # Python modules are no longer installed in
160 # site-packages, so remove empty dirs.
161 find "${D}$(python_get_libdir)" -type d -empty -delete
162
163 # This code may fail if behavior of --root, --bindir or
164 # --sharedir changes in the future.
165 dodir /usr/lib
166 mv "${D}lib/calibre" "${D}usr/lib/" ||
167 die "failed to move lib dir"
168 find "${D}"lib -type d -empty -delete
169
170 dodir /usr/bin
171 mv "${D}bin/"* "${D}usr/bin/" ||
172 die "failed to move bin dir"
173 find "${D}"bin -type d -empty -delete
174
175 dodir /usr/share
176 mv "${D}share/"* "${D}usr/share/" ||
177 die "failed to move share dir"
178 find "${D}"share -type d -empty -delete
179
180 # The menu entries end up here due to '--mode user' being added to
181 # xdg-* options in src_prepare.
182 dodir /usr/share/mime/packages
183 chmod -fR a+rX,u+w,g-w,o-w "$HOME"/.local
184 mv "$HOME"/.local/share/mime/packages/* "$D"usr/share/mime/packages/ ||
185 die "failed to register mime types"
186 dodir /usr/share/icons
187 mv "$HOME"/.local/share/icons/* "$D"usr/share/icons/ ||
188 die "failed to install icon files"
189 domenu "$HOME"/.local/share/applications/*.desktop ||
190 die "failed to install .desktop menu files"
191
192 dobashcompletion "$D"etc/bash_completion.d/calibre
193 rm -r "${D}"etc/bash_completion.d
194 find "${D}"etc -type d -empty -delete
195
196 python_convert_shebangs -r 2 "$D"
197 }
198
199 pkg_postinst() {
200 fdo-mime_desktop_database_update
201 fdo-mime_mime_database_update
202 distutils_pkg_postinst
203 bash-completion_pkg_postinst
204 }