summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-01-17 15:48:22 +0000
committerPacho Ramos <pacho@gentoo.org>2013-01-17 15:48:22 +0000
commitaa86c8254e4bc0303bb6ef3cca002f47a7d1cfd9 (patch)
tree1daa8c5cec11a1e6646fa44c0ab235ded32cc12d /net-misc/blogtk
parentmigrate to distutils-r1 (diff)
downloadgentoo-2-aa86c8254e4bc0303bb6ef3cca002f47a7d1cfd9.tar.gz
gentoo-2-aa86c8254e4bc0303bb6ef3cca002f47a7d1cfd9.tar.bz2
gentoo-2-aa86c8254e4bc0303bb6ef3cca002f47a7d1cfd9.zip
Bump to eapi5, use python-single-r1.eclass and fix desktop file (#451588 by G.Wolfe Woodbury)
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-misc/blogtk')
-rw-r--r--net-misc/blogtk/ChangeLog11
-rw-r--r--net-misc/blogtk/blogtk-2.0-r1.ebuild60
2 files changed, 68 insertions, 3 deletions
diff --git a/net-misc/blogtk/ChangeLog b/net-misc/blogtk/ChangeLog
index 3da5a3cf9d95..d88b892a67cc 100644
--- a/net-misc/blogtk/ChangeLog
+++ b/net-misc/blogtk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/blogtk
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/ChangeLog,v 1.26 2012/06/08 12:56:10 pacho Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/ChangeLog,v 1.27 2013/01/17 15:48:22 pacho Exp $
+
+*blogtk-2.0-r1 (17 Jan 2013)
+
+ 17 Jan 2013; Pacho Ramos <pacho@gentoo.org> +blogtk-2.0-r1.ebuild:
+ Bump to eapi5, use python-single-r1.eclass and fix desktop file (#451588 by
+ G.Wolfe Woodbury)
08 Jun 2012; Pacho Ramos <pacho@gentoo.org> metadata.xml:
Drop maintainer from metadata as talked with him, bug #90641.
@@ -105,4 +111,3 @@
17 Feb 2004; Gustavo Felisberto <humpback@gentoo.org>; blogtk-0.8.ebuild:
Initial import. Thanks to Membris Khan <giingo@tiscali.es> on bug 39967.
-
diff --git a/net-misc/blogtk/blogtk-2.0-r1.ebuild b/net-misc/blogtk/blogtk-2.0-r1.ebuild
new file mode 100644
index 000000000000..1b7bc6074d9e
--- /dev/null
+++ b/net-misc/blogtk/blogtk-2.0-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/blogtk-2.0-r1.ebuild,v 1.1 2013/01/17 15:48:22 pacho Exp $
+
+EAPI="5"
+PYTHON_COMPAT=( python2_{6,7} )
+
+inherit eutils fdo-mime multilib python-single-r1
+
+DESCRIPTION="GTK Blog - post entries to your blog"
+HOMEPAGE="http://blogtk.sourceforge.net"
+SRC_URI="http://launchpad.net/${PN}/${PV}/${PV}/+download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RESTRICT="mirror"
+
+RDEPEND=">=dev-python/pygtk-2:2
+ >=dev-python/pygobject-2:2
+ >=gnome-base/gconf-2.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}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+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
+
+ # Fix desktop file
+ sed -i -e 's/.png//' data/blogtk.desktop || die
+ sed -i -e 's/Application;//' data/blogtk.desktop || die
+
+ python_fix_shebang .
+}
+
+src_compile() {
+ return
+}