diff --git a/pisi/actionsapi/autotools.py b/pisi/actionsapi/autotools.py index 3b762d60..70142989 100644 --- a/pisi/actionsapi/autotools.py +++ b/pisi/actionsapi/autotools.py @@ -4,7 +4,7 @@ import os from pisi.context import const -def configure(parameters = None): +def configure(parameters = ''): ''' FIXME: Düzgün hale getirilecek ''' ''' {EXTRA} = '--with-nls --with-libusb --with-something-usefull ''' diff --git a/pisi/build.py b/pisi/build.py index 78fcb773..774c3e99 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -83,9 +83,8 @@ class PisiBuild: def goToWorkDir(self, globals): """Changes the current working directory to package_work_dir() for actions.py to do its work.""" - path = globals['WorkDir'] - if path: - path = self.ctx.pkg_work_dir() + "/" + path + if 'WorkDir' in globals: + path = self.ctx.pkg_work_dir() + "/" + globals['WorkDir'] else: path = self.ctx.pkg_work_dir() + "/" + \ self.spec.source.name + "-" + self.spec.source.version diff --git a/samples/startup-notification/actions.py b/samples/startup-notification/actions.py new file mode 100644 index 00000000..2bb8c37e --- /dev/null +++ b/samples/startup-notification/actions.py @@ -0,0 +1,13 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +from pisi.actionsapi import autotools + +def setup(): + autotools.configure() + +def build(): + autotools.make() + +def install(): + autotools.install() diff --git a/samples/startup-notification/startup-notification.spec b/samples/startup-notification/startup-notification.spec new file mode 100644 index 00000000..9dbde277 --- /dev/null +++ b/samples/startup-notification/startup-notification.spec @@ -0,0 +1,56 @@ + + + + + + + + startup-notification + http://www.freedesktop.org/software/startup-notification/ + + Kirmizi kafalar + hotmail@redhat.com + + LGPL-2, BSD + library:x11 + rpm:archive + Application startup notification and feedback library + + ftp://ftp.linux.org.tr/pub/mirrors/gentoo/distfiles/startup-notification-0.8.tar.bz2 + + + make + + + + 06/24/2005 + 0.8 + 2 + + + 06/10/2005 + 0.7 + 2 + + + + + + startup-notification + Application startup notification and feedback library + library files for startup-notification + + /usr/lib + /usr/share/doc + /usr/include + + + + 06/24/2005 + 0.8 + 2 + + + +