mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
* Create recipe for calcurse A few things of note: * The default terminal font, Noto Mono, does not support the box drawing characters that calcurse relies on. Changing the font to Noto Sans Mono fixes this issue. * calcurse's default date format (format.dayheading) uses the %-d format sequence, which Haiku's version of `date' does not support. This can easily be fixed by changing it to %d in calcurse's config. * The checks for lm and pthread are patched out in configure.ac, as these libraries are contained within libroot in Haiku.
70 lines
1.7 KiB
Bash
70 lines
1.7 KiB
Bash
SUMMARY="A calendar and scheduling application for the command line"
|
|
DESCRIPTION="calcurse is a calendar and scheduling application for the \
|
|
command line. It helps keep track of events, appointments and everyday tasks. \
|
|
A configurable notification system reminds user of upcoming deadlines, the \
|
|
curses based interface can be customized to suit user needs and a very \
|
|
powerful set of command line options can be used to filter and format \
|
|
appointments, making it suitable for use in scripts."
|
|
HOMEPAGE="http://calcurse.org/"
|
|
COPYRIGHT="2005-2017 calcurse Development Team"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="http://calcurse.org/files/calcurse-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="31ecc3dc09e1e561502b4c94f965ed6b167c03e9418438c4a7ad5bad2c785f9a"
|
|
PATCHES="calcurse-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
if [ "$targetArchitecture" != x86_gcc2 ]
|
|
then
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
else
|
|
commandBinDir=$prefix/bin
|
|
commandSuffix=
|
|
fi
|
|
|
|
PROVIDES="
|
|
calcurse$secondaryArchSuffix = $portVersion
|
|
cmd:calcurse$commandSuffix
|
|
cmd:calcurse_caldav$commandSuffix
|
|
cmd:calcurse_upgrade$commandSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libncursesw$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libncursesw$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autopoint
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
# define _BSD_SOURCE for /boot/system/develop/headers/bsd/paths.h
|
|
CFLAGS="-D_BSD_SOURCE" runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|