Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Webilder ebuild (or, please critique my ebuild)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Thu Oct 29, 2009 6:25 pm    Post subject: Webilder ebuild (or, please critique my ebuild) Reply with quote

I was reading a post from Planet Gnome and came across Webilder. Since I didn't see it in portage, I decided to create one. This the first ebuild that I've shared and intend to post it to bgo, but I'd like to get some criticism on it first. :)

In case anyone is curious what this program is:
Quote:
* download flickr photos that match tags (for example: beach,party)
* download photos from flickr users of your choice.
* download most interesting photos from flickr.
* download amazing daily proshots from Webshots (requires Webshots account).
* automatically download new photos for you.
* change your wallpaper every few minutes.
* import webshots collections (wbz or wbc formats).


Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit eutils python

DESCRIPTION="Delivers stunning wallpapers to your desktop, directly from Flickr and Webshots."
HOMEPAGE="http://www.webilder.org/"

SRC_URI="http://www.webilder.org/static/downloads/Webilder-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kde"

RDEPEND="kde? ( kde-base/kdelibs:3.5 )
   dev-python/pygtk
   dev-python/gnome-python
   dev-python/gnome-python-desktop
   gnome-base/libgnomeui
   dev-python/gnome-python-extras
   dev-python/imaging"

DEPEND="${RDEPEND}"

src_install() {
   cd ${WORKDIR}/Webilder-${PV}
   if use kde; then
      python setup.py install --with-kde --root=${D} || die "Install failed"
   else
      python setup.py install --root=${D} || die "Install failed"
   fi
}

pkg_postinst() {
   python_version
   python_mod_optimize "/usr/$(get_libdir)/python${PYVER}/site-packages/webilder"
}

pkg_postrm() {
   python_version
   python_mod_cleanup "/usr/$(get_libdir)/python${PYVER}/site-packages/webilder"
}

pkg_postinst() {
   elog "After installing Webilder, you should add it to your panel, so it can"
   elog "automatically download photos and change your wallpaper."
   elog "GNOME Users: Right-click on the GNOME panel, choose 'Add to panel',"
   elog "and select 'Webilder Webshots Applet'."
   elog "If it is not in the list - log off and log in again."
   
   if use kde; then
      elog "KDE Users: From the graphics menu, start KWebilder. Go to the"
      elog "preferences Window, to the Advanced Tab, and select KDE wallpapers"
      elog "settings."
   fi

}

_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum