SUMMARY="Set of simple scripts for basic desktop integration"
DESCRIPTION="The xdg-utils package is a set of simple scripts \
that provide basic desktop integration functions for any Free Desktop, \
such as Linux.

They are intended to provide a set of defacto standards."
HOMEPAGE="https://www.freedesktop.org/wiki/Software/xdg-utils/"
COPYRIGHT="2006 Benedikt Meurer
2006 Bryce Harrington
2006 Jeremy White
2006 Kevin Krammer
2009-2010 Fathi Boudra
2009-2010 Rex Dieter
2009 Google Inc."
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://portland.freedesktop.org/download/xdg-utils-$portVersion.tar.gz"
CHECKSUM_SHA256="d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9"
SOURCE_DIR="xdg-utils-$portVersion"
PATCHES="xdg-utils-$portVersion.patchset"

ARCHITECTURES="any"

PROVIDES="
	xdg_utils = $portVersion
	cmd:xdg_desktop_icon = $portVersion
	cmd:xdg_desktop_menu = $portVersion
	cmd:xdg_email = $portVersion
	cmd:xdg_icon_resource = $portVersion
	cmd:xdg_mime = $portVersion
	cmd:xdg_open = $portVersion
	cmd:xdg_screensaver = $portVersion
	cmd:xdg_settings = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	docbook_xml_dtd
	docbook_xsl_stylesheets
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoreconf
	cmd:links
	cmd:make
	cmd:xmlto
	"

BUILD()
{
	# lynx fails (complains about cfg file)
	# and we only have links, not elinks
	# so we fake it
	mkdir -p /boot/home/config/non-packaged/bin
	rm -f /boot/home/config/non-packaged/bin/elinks
	ln -s /bin/links /boot/home/config/non-packaged/bin/elinks
	autoreconf
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	make test
}
