GARNAME = dogtail
GARVERSION = 0.6.1
CATEGORIES = hacker-tools
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz

MASTER_SITES = http://people.redhat.com/zcerza/dogtail/releases/

LIBDEPS = platform/at-spi #bindings/pyspi

DESCRIPTION = dogtail
define BLURB
dogtail is a GUI test tool and automation framework written in Python. 
It uses Accessibility (a11y) technologies to communicate with desktop applications. 
dogtail scripts are written in Python and executed like any other Python program.
endef

BUILD_SCRIPTS = custom
INSTALL_SCRIPTS = custom

CONFIGURE_ARGS = $(DIRPATHS)

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:
	cd $(bindir) && rm -f dogtail*
	cd $(datadir) && rm -rf dogtail
	cd $(libdir)/python2.4/site-packages && rm -rf dogtail
	rm -rf cookies/main.d/install*
