haiku-apps/Eventual: new recipe [GCI] (#2087)

This commit is contained in:
Bach Nguyen
2018-01-25 00:16:52 +00:00
committed by fbrosson
parent 49e952ec85
commit cc535e5143

View File

@@ -0,0 +1,65 @@
SUMMARY="A time management system"
DESCRIPTION="Eventual is a personal time management system for Haiku and is \
intended to be a full-featured organizer."
HOMEPAGE="https://sourceforge.net/projects/eventual/"
COPYRIGHT="2011 Alexey Burshtein
2001-2002 Kevin H. Patterson"
LICENSE="MIT
BSD (3-clause)"
REVISION="1"
srcGitRev="2fd70537847d3b9712e96ebbc4ff37d5e961b480"
SOURCE_URI="https://github.com/HaikuArchives/Eventual/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="229cd7fa206da0606d32fc0db1f44a5eee20f0e8428e3dec141e4aab272ead68"
SOURCE_FILENAME="Eventual-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="Eventual-$srcGitRev"
ARCHITECTURES="x86_gcc2 ?x86_64"
PROVIDES="
eventual = $portVersion
app:Eventual = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++
cmd:make
"
BUILD()
{
cd src
mkdir -p lib
for LIBDIR in Libraries/* ; do
make OBJ_DIR=objects -C $LIBDIR
NAME=lib${LIBDIR#Libraries/}.so
mv $LIBDIR/objects/$NAME lib
ln -s ../lib/$NAME EventEditor
ln -s ../lib/$NAME EventServer
ln -s ../lib/$NAME PreferencesPreflet
done
make OBJ_DIR=objects -C EventEditor
make OBJ_DIR=objects -C EventServer
make OBJ_DIR=objects -C PreferencesPreflet
}
INSTALL()
{
install -d $appsDir/Eventual/lib
install -t $appsDir/Eventual/lib src/lib/*
install -t $appsDir/Eventual \
"src/EventEditor/objects/Eventual Editor" \
"src/EventServer/objects/Eventual Server" \
"src/PreferencesPreflet/objects/Eventual Preferences"
install -d $dataDir/deskbar/menu/Applications/Eventual
addAppDeskbarSymlink "$appsDir/Eventual/Eventual Editor" Eventual
addAppDeskbarSymlink "$appsDir/Eventual/Eventual Server" Eventual
addAppDeskbarSymlink "$appsDir/Eventual/Eventual Preferences" Eventual
}