GARNAME = kiwi
GARVERSION = 1.9.19
CATEGORIES = hacker-tools
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2

LIBDEPS = bindings/pygtk 

DESCRIPTION = kiwi
define BLURB
Kiwi is a framework composed of a set of modules, which eases Python
development using PyGTK. Kiwi makes graphical applications *much* faster
to code, with good architecture and more Python-like bindings; it also
offers extended widgets based upon the original PyGTK widgets.
endef

PYVER = $(shell $(PYTHON) -c "import sys; print sys.version[:3]")
BUILD_SCRIPTS = custom
INSTALL_SCRIPTS = custom

include ../category.mk

build-custom:
	cd $(WORKSRC) && PYTHONPATH=$(PYTHONPATH) $(PYTHON) setup.py build 
	@$(MAKECOOKIE)

install-custom:
	@cd $(WORKSRC) && PYTHONPATH=$(PYTHONPATH) $(PYTHON) setup.py install --prefix=$(main_prefix)
	@$(MAKECOOKIE)

uninstall:
	@echo "	uninstalling kiwi..."
	@cd $(bindir) && rm -f kiwi*
	@cd $(datadir) && rm -rf kiwi
	@cd $(datadir)/doc && rm -rf kiwi
	@cd $(libdir)/python${PYVER}/site-packages && rm -rf kiwi
	@rm -f $(libdir)/python${PYVER}/site-packages//gazpacho/widgets/kiwiwidgets.py
	@find $(datadir)/locale -mindepth 3 -name "kiwi*" -exec rm -f '{}' \;
	@rm -rf cookies/main.d/install*
