New package: valadoc-0.44.2

This commit is contained in:
Cameron Nemo 2019-04-02 21:38:10 -07:00 committed by Johannes
parent 7953e010b7
commit 1afb55b178
5 changed files with 90 additions and 0 deletions

View File

@ -2924,6 +2924,7 @@ libsysprof-ui-2.so sysprof-3.24.1_1
libmozjs-52.so mozjs52-52.3.0_1
libmozjs-52.so.0 mozjs52-52.3.0_1
libvala-0.44.so.0 libvala-0.44.0_1
libvaladoc-0.44.so.0 libvaladoc-0.44.2_1
libvalaccodegen.so libvala-0.44.0_1
libphodav-2.0.so.0 phodav-2.2_1
libgfshare.so.2 libgfshare-2.0.0_1

1
srcpkgs/libvaladoc Symbolic link
View File

@ -0,0 +1 @@
valadoc

1
srcpkgs/valadoc-devel Symbolic link
View File

@ -0,0 +1 @@
valadoc

View File

@ -0,0 +1,36 @@
This check is broken in cross, see https://gitlab.gnome.org/GNOME/vala/issues/775
We are sure that we have cgraph, so just hack around this for now.
diff --git configure.ac configure.ac
index 16ebd1f..df789b9 100644
--- configure.ac
+++ configure.ac
@@ -164,25 +164,8 @@ if test x$enable_valadoc = xyes; then
cgraph_tmp_CFLAGS="$CFLAGS"
LIBADD="$LIBADD $LIBGVC_LIBS"
CFLAGS="$CFLAGS $LIBGVC_CFLAGS"
- AC_RUN_IFELSE(
- [AC_LANG_SOURCE([
- #include <gvc.h>
- int main(void) {
- #ifdef WITH_CGRAPH
- return 0;
- #else
- return -1;
- #endif
- }
- ])], [
- AC_MSG_RESULT([yes])
- VALAFLAGS="$VALAFLAGS -D WITH_CGRAPH"
- have_cgraph=yes
- ], [
- AC_MSG_RESULT([no])
- have_cgraph=no
- ]
- )
+ VALAFLAGS="$VALAFLAGS -D WITH_CGRAPH"
+ have_cgraph=yes
LIBADD="$cgraph_tmp_LIBADD"
CFLAGS="$cgraph_tmp_CFLAGS"
fi

51
srcpkgs/valadoc/template Normal file
View File

@ -0,0 +1,51 @@
# Template file for 'valadoc'
pkgname=valadoc
# Should be kept in sync with 'vala' (shared distfiles)
version=0.44.2
revision=2
wrksrc="vala-${version}"
build_style=gnu-configure
hostmakedepends="flex libxslt pkg-config automake libtool vala"
makedepends="libfl-devel libglib-devel graphviz-devel vala-devel"
checkdepends="dbus libgirepository-devel"
short_desc="Vala Documentation Tool"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/Vala"
changelog="https://gitlab.gnome.org/GNOME/vala/raw/0.42/NEWS"
distfiles="${GNOME_SITE}/vala/${version%.*}/vala-${version}.tar.xz"
checksum=67d9bb4656d8fe04bcfc1ed7ff35d191df425923de46c921ae3c3d996eee8040
pre_configure() {
autoreconf -if
}
do_install() {
for subdir in libvaladoc valadoc; do
make -C "${subdir}" DESTDIR="$DESTDIR" ${make_install_args} \
install
done
vman doc/valadoc.1
}
libvaladoc_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/libvaladoc-*.so.*"
vmove usr/lib/valadoc
vmove usr/share/valadoc
}
}
valadoc-devel_package() {
depends="valadoc-${version}_${revision}
vala-devel-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include/valadoc-*"
vmove "usr/lib/libvaladoc-*.so"
vmove "usr/lib/pkgconfig/valadoc-*.pc"
vmove "usr/share/vala/vapi/valadoc-*.deps"
vmove "usr/share/vala/vapi/valadoc-*.vapi"
}
}