blob: 38957ecddf920d464ad703c0e7cc27301074a4be (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/blogtk-1.1.ebuild,v 1.7 2009/01/29 21:51:23 eva Exp $
inherit eutils fdo-mime python
DESCRIPTION="GTK Blog - post entries to your blog"
HOMEPAGE="http://blogtk.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/BloGTK-${PV}.tar.bz2"
RESTRICT="mirror"
S="${WORKDIR}/BloGTK-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND=">=dev-python/pygtk-2.0.0
>=gnome-base/gconf-2.2.0
>=dev-python/gnome-python-2
dev-python/gnome-python-extras
amd64? ( >=dev-python/gnome-python-2.6.1 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/gettext"
DOCS="AUTHORS ChangeLog COPYING README INSTALL NEWS TODO"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-destdir.patch"
# Fix parallel make issues, bug #239777
epatch "${FILESDIR}/${P}-makefile.patch"
# Respect multilib
sed -i "s:lib/blogtk:$(get_libdir)/blogtk:g" Makefile || die "sed failed"
}
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/$(get_libdir)/blogtk
}
pkg_postrm() {
fdo-mime_desktop_database_update
python_mod_cleanup /usr/$(get_libdir)/blogtk
}
|