diff --git a/srcpkgs/vala/patches/fix-cross.patch b/srcpkgs/vala/patches/fix-cross.patch new file mode 100644 index 0000000000..f1c73c1ca3 --- /dev/null +++ b/srcpkgs/vala/patches/fix-cross.patch @@ -0,0 +1,23 @@ +--- configure.ac.orig 2017-10-06 09:45:08.321772985 +0200 ++++ configure.ac 2017-10-06 09:46:58.900866875 +0200 +@@ -104,16 +104,15 @@ cgraph_tmp_LIBADD="$LIBADD" + cgraph_tmp_CFLAGS="$CFLAGS" + LIBADD="$LIBADD $LIBGVC_LIBS" + CFLAGS="$CFLAGS $LIBGVC_CFLAGS" +-AC_RUN_IFELSE( ++AC_COMPILE_IFELSE( + [AC_LANG_SOURCE([ + #include + + int main(void) { +- #ifdef WITH_CGRAPH +- return 0; +- #else +- return -1; ++ #ifndef WITH_CGRAPH ++ #error + #endif ++ return 0; + } + ])], [ + AC_MSG_RESULT([yes]) diff --git a/srcpkgs/vala/template b/srcpkgs/vala/template index ff34bb811f..a01b3c7c9e 100644 --- a/srcpkgs/vala/template +++ b/srcpkgs/vala/template @@ -3,7 +3,7 @@ pkgname=vala version=0.38.1 revision=1 build_style=gnu-configure -hostmakedepends="pkg-config flex libxslt" +hostmakedepends="pkg-config flex libxslt automake libtool" makedepends="libglib-devel libfl-devel graphviz-devel" short_desc="Compiler for the GObject type system" maintainer="Enno Boland " @@ -12,6 +12,10 @@ license="LGPL-2.1" distfiles="${GNOME_SITE}/vala/${version%.*}/vala-${version}.tar.xz" checksum=1035344f3ba50a572894c0aed3f794dd0efb9f08fce1c1d0cc537936e9a05084 +pre_configure() { + autoreconf -fi +} + libvala_package() { short_desc+=" - shared library" pkg_install() {