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

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:
* 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).

# 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."

KEYWORDS="~amd64 ~x86"

RDEPEND="kde? ( kde-base/kdelibs:3.5 )


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

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

pkg_postrm() {
   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."


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