diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-04 22:28:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-04 22:28:33 +0100 |
commit | a978c074e4272bb901fbe4a10de0a7b2af574f17 (patch) | |
tree | 8c764c1cc0576389ce22abd317bceba71ea5732d /dev-lang/vala/files/0.40-Allow-disabling-the-build-of-valadoc.patch | |
parent | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (diff) |
gentoo resync : 04.05.2021
Diffstat (limited to 'dev-lang/vala/files/0.40-Allow-disabling-the-build-of-valadoc.patch')
-rw-r--r-- | dev-lang/vala/files/0.40-Allow-disabling-the-build-of-valadoc.patch | 184 |
1 files changed, 0 insertions, 184 deletions
diff --git a/dev-lang/vala/files/0.40-Allow-disabling-the-build-of-valadoc.patch b/dev-lang/vala/files/0.40-Allow-disabling-the-build-of-valadoc.patch deleted file mode 100644 index 55bcb7d63b05..000000000000 --- a/dev-lang/vala/files/0.40-Allow-disabling-the-build-of-valadoc.patch +++ /dev/null @@ -1,184 +0,0 @@ -From 1dae711f17473e12c822a657ffca02abee27b3a2 Mon Sep 17 00:00:00 2001 -From: Rico Tzschichholz <ricotz@ubuntu.com> -Date: Sun, 27 Aug 2017 16:03:03 +0200 -Subject: [PATCH] build: Allow disabling the build of valadoc - -Allow disabling build of valadoc with configure option --disable-valadoc - -Fixes https://gitlab.gnome.org/GNOME/vala/issues/596 ---- - Makefile.am | 10 +++++++++ - configure.ac | 59 ++++++++++++++++++++++++++----------------------- - doc/Makefile.am | 17 +++++++++++++- - 3 files changed, 57 insertions(+), 29 deletions(-) - -diff --git a/Makefile.am b/Makefile.am -index 88bef90ed..e4d46741f 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -13,9 +13,19 @@ SUBDIRS = \ - doc \ - gobject-introspection \ - vapigen \ -+ $(NULL) -+ -+if ENABLE_VALADOC -+SUBDIRS += \ - libvaladoc \ - valadoc \ - $(NULL) -+endif -+ -+DISTCHECK_CONFIGURE_FLAGS = \ -+ --enable-valadoc \ -+ --enable-unversioned \ -+ $(NULL) - - if ENABLE_UNVERSIONED - aclocaldir = $(datadir)/aclocal -diff --git a/configure.ac b/configure.ac -index 88ca0f94b..9d1c97417 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -119,35 +119,38 @@ PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GLIB_REQUIRED) - AC_SUBST(GMODULE_CFLAGS) - AC_SUBST(GMODULE_LIBS) - --PKG_CHECK_MODULES(LIBGVC, libgvc >= $LIBGVC_REQUIRED) --AC_MSG_CHECKING([for CGRAPH]) --cgraph_tmp_LIBADD="$LIBADD" --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 -- ] --) --LIBADD="$cgraph_tmp_LIBADD" --CFLAGS="$cgraph_tmp_CFLAGS" -+AC_ARG_ENABLE(valadoc, AS_HELP_STRING([--disable-valadoc], [Disable valadoc]), enable_valadoc=$enableval, enable_valadoc=yes) -+if test x$enable_valadoc = xyes; then -+ PKG_CHECK_MODULES(LIBGVC, libgvc >= $LIBGVC_REQUIRED) -+ AC_MSG_CHECKING([for CGRAPH]) -+ cgraph_tmp_LIBADD="$LIBADD" -+ 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 -+ ] -+ ) -+ LIBADD="$cgraph_tmp_LIBADD" -+ CFLAGS="$cgraph_tmp_CFLAGS" -+fi - AM_CONDITIONAL(HAVE_CGRAPH, test "$have_cgraph" = "yes") -+AM_CONDITIONAL(ENABLE_VALADOC, test x$enable_valadoc = xyes) - - AC_PATH_PROG([XSLTPROC], [xsltproc], :) - AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :) -diff --git a/doc/Makefile.am b/doc/Makefile.am -index 758ad733a..b79f229c4 100644 ---- a/doc/Makefile.am -+++ b/doc/Makefile.am -@@ -6,11 +6,16 @@ SUBDIRS = \ - - dist_man_MANS = \ - valac.1 \ -- valadoc.1 \ - vala-gen-introspect.1 \ - vapigen.1 \ - $(NULL) - -+if ENABLE_VALADOC -+dist_man_MANS += \ -+ valadoc.1 \ -+ $(NULL) -+endif -+ - EXTRA_DIST = \ - valac.h2m \ - valadoc.h2m \ -@@ -19,7 +24,11 @@ EXTRA_DIST = \ - $(NULL) - - if HAVE_HELP2MAN -+if ENABLE_VALADOC - manpages: valac.1 valadoc.1 vala-gen-introspect.1 vapigen.1 -+else -+manpages: valac.1 vala-gen-introspect.1 vapigen.1 -+endif - @rm $^ - $(MAKE) $(AM_MAKEFLAGS) $^ - -@@ -28,11 +37,13 @@ valac.1: - --include $(srcdir)/valac.h2m \ - --libtool --no-info \ - --output=$@ -+if ENABLE_VALADOC - valadoc.1: - $(HELP2MAN) $(top_builddir)/valadoc/valadoc \ - --include $(srcdir)/valadoc.h2m \ - --libtool --no-info \ - --output=$@ -+endif - vala-gen-introspect.1: - $(HELP2MAN) $(top_builddir)/gobject-introspection/gen-introspect \ - --include $(srcdir)/vala-gen-introspect.h2m \ -@@ -49,12 +60,15 @@ endif - if ENABLE_UNVERSIONED - install-data-hook: - cd $(DESTDIR)$(man1dir) && $(LN_S) -f valac@PACKAGE_SUFFIX@.1 valac.1 -+if ENABLE_VALADOC - cd $(DESTDIR)$(man1dir) && $(LN_S) -f valadoc@PACKAGE_SUFFIX@.1 valadoc.1 -+endif - cd $(DESTDIR)$(man1dir) && $(LN_S) -f vala-gen-introspect@PACKAGE_SUFFIX@.1 vala-gen-introspect.1 - cd $(DESTDIR)$(man1dir) && $(LN_S) -f vapigen@PACKAGE_SUFFIX@.1 vapigen.1 - endif - - -+if ENABLE_VALADOC - COMMON_VALADOCFLAGS = \ - --force \ - --verbose \ -@@ -130,6 +144,7 @@ internal-apis/valadoc: $(valadoc_VALASOURCES) internal-apis/codegen - @touch $@ - - internal-api-docs: internal-apis/gee internal-apis/vala internal-apis/ccode internal-apis/codegen internal-apis/valadoc -+endif - - clean-local: - rm -rf $(builddir)/internal-apis --- -2.20.1 - |