mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
97 lines
2.5 KiB
Bash
97 lines
2.5 KiB
Bash
SUMMARY="An object-oriented programming language that uses the GObject system"
|
|
DESCRIPTION="Vala is a new programming language that aims to bring modern \
|
|
programming language features to GNOME developers without imposing any \
|
|
additional runtime requirements and without using a different ABI \
|
|
compared to applications and libraries written in C."
|
|
HOMEPAGE="https://wiki.gnome.org/Projects/Vala"
|
|
COPYRIGHT="2006-2016 Jürg Billeter
|
|
2006-2016 Raffaele Sandrini"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.gnome.org/sources/vala/${portVersion%.*}/vala-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="e9f23ce711c1a72ce664d10946fbc5953f01b0b7f2a3562e7a01e362d86de059"
|
|
SOURCE_DIR="vala-$portVersion"
|
|
PATCHES="vala-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
vala$secondaryArchSuffix = $portVersion
|
|
cmd:vala$secondaryArchSuffix
|
|
cmd:valac$secondaryArchSuffix
|
|
cmd:vapicheck$secondaryArchSuffix
|
|
cmd:vapigen$secondaryArchSuffix
|
|
cmd:vala_gen_introspect$secondaryArchSuffix
|
|
cmd:vala_${portVersion%.*}$secondaryArchSuffix
|
|
cmd:vala_gen_introspect_${portVersion%.*}$secondaryArchSuffix
|
|
cmd:valac_${portVersion%.*}$secondaryArchSuffix
|
|
cmd:vapicheck_${portVersion%.*}$secondaryArchSuffix
|
|
cmd:vapigen_${portVersion%.*}$secondaryArchSuffix
|
|
lib:libvala_${portVersion%.*}$secondaryArchSuffix
|
|
"
|
|
PROVIDES_common="
|
|
vala${secondaryArchSuffix}_common = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
glib2${secondaryArchSuffix} >= 2.32.0
|
|
vala${secondaryArchSuffix}_common == $portVersion
|
|
lib:libffi$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
REQUIRES_common="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
glib2${secondaryArchSuffix}_devel >= 2.32.0
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:awk
|
|
cmd:bison
|
|
cmd:cmp
|
|
cmd:diff
|
|
cmd:flex
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool library files
|
|
rm $libDir/lib*.la
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries common \
|
|
$dataDir/aclocal/vapigen.m4 \
|
|
$dataDir/aclocal/vala.m4 \
|
|
$dataDir/vala/Makefile.vapigen
|
|
|
|
# Avoid having an empty data/aclocal/ in vala$secondaryArchSuffix
|
|
rmdir $dataDir/aclocal
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
sed -i -e 's/-lm/-lroot/g' $sourceDir/tests/testrunner.sh
|
|
make check
|
|
}
|