From 8a4ae08814823be994b752387aa5d33fba7797c8 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 24 Jun 2023 19:20:47 +0200 Subject: [PATCH] textproc/gdome2: Fix build with llvm16 - Add LICENSE GPLv2 LGPL21 - Pet portclippy - Refresh patches - Adopt port Sponsored by: The FreeBSD Foundation --- textproc/gdome2/Makefile | 28 ++++++++++++++----- ...h-libgdome_gdomecore_gdome-xml-documentt.c | 6 ++-- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/textproc/gdome2/Makefile b/textproc/gdome2/Makefile index 2b826a739911a..0f9c4a00c6984 100644 --- a/textproc/gdome2/Makefile +++ b/textproc/gdome2/Makefile @@ -1,26 +1,40 @@ PORTNAME= gdome2 PORTVERSION= 0.8.1 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= textproc MASTER_SITES= http://gdome2.cs.unibo.it/tarball/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bofh@FreeBSD.org COMMENT= Gnome DOM Engine WWW= http://gdome2.cs.unibo.it/ -USES= gnome libtool pathfix pkgconfig +LICENSE= GPLv2 LGPL21 +LICENSE_COMB= dual +LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING +LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING.LIB + +USES= gnome libtool localbase pathfix pkgconfig USE_GNOME= glib20 libxml2 +USE_LDCONFIG= yes + GNU_CONFIGURE= yes CONFIGURE_ENV= GLIB_CONFIG="${LOCALBASE}/bin/pkg-config glib-2.0" + +INSTALL_TARGET= install-strip + CFLAGS+= -fcommon -CPPFLAGS+= -I${LOCALBASE}/include + DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} -USE_LDCONFIG= yes -INSTALL_TARGET= install-strip + +PORTDOCS= * OPTIONS_DEFINE= DOCS -PORTDOCS= * +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif post-patch: @${FIND} ${WRKSRC} -type f -and \ diff --git a/textproc/gdome2/files/patch-libgdome_gdomecore_gdome-xml-documentt.c b/textproc/gdome2/files/patch-libgdome_gdomecore_gdome-xml-documentt.c index 5b94efe8ecca1..9a89320c80699 100644 --- a/textproc/gdome2/files/patch-libgdome_gdomecore_gdome-xml-documentt.c +++ b/textproc/gdome2/files/patch-libgdome_gdomecore_gdome-xml-documentt.c @@ -4,9 +4,9 @@ Patch by Harris Landgarten. The patch was submitted on bug 448236, following the announcement on https://mail.gnome.org/archives/xml/2012-August/msg00005.html ---- libgdome/gdomecore/gdome-xml-documentt.c.orig 2003-07-13 06:47:54.000000000 -0400 -+++ libgdome/gdomecore/gdome-xml-documentt.c 2012-12-23 08:57:23.000000000 -0500 -@@ -342,7 +342,11 @@ +--- libgdome/gdomecore/gdome-xml-documentt.c.orig 2003-07-13 10:47:54 UTC ++++ libgdome/gdomecore/gdome-xml-documentt.c +@@ -342,7 +342,11 @@ gdome_xml_dt_internalSubset (GdomeDocumentType *self, } xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL); xmlOutputBufferFlush(out_buff);