mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
Add recipe for Einsteinium
This commit is contained in:
77
haiku-apps/einsteinium/einsteinium-20141023.recipe
Normal file
77
haiku-apps/einsteinium/einsteinium-20141023.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="Monitor applications and system services"
|
||||
DESCRIPTION="
|
||||
Einsteinium provides smarter monitoring of applications and system services \
|
||||
for Haiku. It will restart applications and system services that quit or crash, \
|
||||
gather statistics on application usage and provide customizable ranked lists of \
|
||||
applications.
|
||||
"
|
||||
HOMEPAGE="https://sourceforge.net/projects/esforhaiku/"
|
||||
SRC_URI="svn://svn.code.sf.net/p/esforhaiku/code/trunk#r79"
|
||||
REVISION="1"
|
||||
LICENSE="BSD (3-clause)"
|
||||
COPYRIGHT="2010-2013 Brian Hill"
|
||||
|
||||
ARCHITECTURES="x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
einsteinium = $portVersion
|
||||
app:Einsteinium = $portVersion
|
||||
cmd:einsteinium_engine = $portVersion
|
||||
cmd:einsteinium_daemon = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libsqlite3
|
||||
lib:libxml2
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
makefile_engine
|
||||
devel:libsqlite3
|
||||
devel:libxml2
|
||||
cmd:mkdepend
|
||||
cmd:g++
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
cd src
|
||||
for f in Engine Daemon Preferences Launcher; do
|
||||
sed -e "s|/boot/develop|$(finddir B_SYSTEM_DEVELOP_DIRECTORY)|" \
|
||||
-e "s|/boot/common/include|$(finddir B_SYSTEM_HEADERS_DIRECTORY)|" -i $f/makefile
|
||||
done
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src
|
||||
for f in Engine Daemon; do
|
||||
pushd $f
|
||||
make $jobArgs OBJ_DIR=.
|
||||
popd
|
||||
done
|
||||
for f in Preferences Launcher; do
|
||||
pushd $f
|
||||
make $jobArgs
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
mkdir -p $appsDir
|
||||
mkdir -p $preferencesDir
|
||||
cd src
|
||||
|
||||
cp Engine/einsteinium_engine Daemon/einsteinium_daemon $binDir
|
||||
cp Preferences/Einsteinium_Preferences $preferencesDir/Einsteinium
|
||||
cp Launcher/Einsteinium_Launcher $appsDir/Einsteinium
|
||||
|
||||
addPreferencesDeskbarSymlink $preferencesDir/Einsteinium
|
||||
addAppDeskbarSymlink $appsDir/Einsteinium
|
||||
}
|
||||
Reference in New Issue
Block a user