SUMMARY="RSS and ATOM feeds reader"
DESCRIPTION="FRiSS is a live RSS (and other protocols) reader, shown as a \
replicant on the desktop. The news items are clickable, and will open the \
relevant news items in your favorite browser.

Some features:

- For every window there can be one or more URL's to feed from.
- With buttons you can close the window, go to the next feed and refresh \
the current feed.
- If the number of items doesn't fit the replicant window, they can be \
scrolled at a user definable speed.
- It is possible to have more than one window open on your desktop.

Configurable are:

- URL's to feed from
- Which URL's go in which feed window
- Background color (transparent or a solid color)
- Browser to open links in
- Number of feeds to shown simultaneously
- Update rate
- Scroll items when they don't fit / scroll speed
- Autostart on boot"
HOMEPAGE="https://github.com/pulkomandy/fRiSS"
COPYRIGHT="2004 Andreas Herzig (N3S)
	2010-2014 Adrien Destugues (PulkoMandy)"
LICENSE="MIT"
REVISION="5"
srcGitRev="cb480c0d3d820ff361efd06250b924072eca9ece"
SOURCE_URI="https://github.com/pulkomandy/fRiSS/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="fa6dbcf15fdf4c766ebbbb5e97c0c64a7ed83a7a36a468dc666d0e9ab30de4ad"
SOURCE_DIR="fRiSS-$srcGitRev"

ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	friss = $portVersion
	app:fRiSS = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:jam
	"

defineDebugInfoPackage friss $appsDir/fRiSS/friss

BUILD()
{
	cd src
	if [ $buildArchitecture != "x86_gcc2" ] ; then
		sed -i 's/lstdc++.r4/lstdc++/' Jamfile
	fi
	jam
}

INSTALL()
{
	mkdir -p $appsDir/fRiSS
	cp -a src/friss $appsDir/fRiSS/
	cp -a bin/* $appsDir/fRiSS
	addAppDeskbarSymlink $appsDir/fRiSS/friss fRiSS
}
