blob: 9e31f0ac9d5fc811505ff6d489ce7211d5546927 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/blogtk-2.0.ebuild,v 1.7 2012/02/05 01:51:23 floppym Exp $
EAPI="2"
PYTHON_DEPEND="2:2.6"
inherit eutils fdo-mime multilib python
DESCRIPTION="GTK Blog - post entries to your blog"
HOMEPAGE="http://blogtk.sourceforge.net"
SRC_URI="http://launchpad.net/${PN}/${PV}/${PV}/+download/${PF}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RESTRICT="mirror"
RDEPEND=">=dev-python/pygtk-2
>=dev-python/pygobject-2:2
>=gnome-base/gconf-2.2
>=gnome-base/libgnome-2
dev-python/gdata
dev-python/feedparser
dev-python/libgnome-python
dev-python/gtkspell-python
dev-python/pywebkitgtk
dev-python/pygtksourceview"
DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/gettext"
DOCS="AUTHORS ChangeLog COPYING README INSTALL NEWS TODO"
src_prepare() {
# Respect DESTDIR
epatch "${FILESDIR}/${P}-destdir.patch"
# Respect multilib
sed -i "s:lib/blogtk:$(get_libdir)/blogtk:g" Makefile || die "sed 1 failed"
sed -i "s:blogtk2', 'lib')):blogtk2', '$(get_libdir)')):g" bin/blogtk2 \
|| die "sed 2 failed"
if [ "$(get_libdir)" != "lib" ]; then
mv share/blogtk2/lib share/blogtk2/$(get_libdir) || die
fi
# Remove unwanted files
find -name "*~" -delete || die
find -name "*.pyc" -delete || die
}
src_compile() {
return
}
src_install() {
emake DESTDIR="${D}" install || die "Unable to compile blogtk"
}
pkg_postinst() {
fdo-mime_desktop_database_update
python_mod_optimize /usr/share/${PN}2/$(get_libdir)/${PN}2
}
pkg_postrm() {
fdo-mime_desktop_database_update
python_mod_cleanup /usr/share/${PN}2/$(get_libdir)/${PN}2
}
|