pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/55455: No gir file in gtkspell3



>Number:         55455
>Category:       pkg
>Synopsis:       No gir file in gtkspell3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 03 19:10:00 +0000 2020
>Originator:     Ondřej Tůma
>Release:        current 2020-07-03
>Organization:
>Environment:
NetBSD localhost 8.1 NetBSD 8.1 (GENERIC) #0: Fri May 31 08:43:59 UTC 2019  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
gtkspell3 package does not have gobject itrospection files, so it could not be used in python for example.

I send a patch which i crate with inspiration in gtksourceview package. Now, package contains gir file by default and it could be used in other programming language.
>How-To-Repeat:

>Fix:
? work
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/gtkspell3/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile    20 Mar 2020 11:58:26 -0000      1.10
+++ Makefile    3 Jul 2020 19:00:10 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.10 2020/03/20 11:58:26 nia Exp $
 
 DISTNAME=      gtkspell3-3.0.10
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    textproc devel
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=gtkspell/}
 EXTRACT_SUFX=  .tar.xz
@@ -17,6 +17,21 @@
 PKGCONFIG_OVERRIDE=    gtkspell-3.0.pc.in
 CONFIGURE_ARGS+=       --disable-gtk-doc
 
+PKG_OPTIONS_VAR=       PKG_OPTIONS.gtkspell3
+PKG_SUPPORTED_OPTIONS= introspection
+PKG_SUGGESTED_OPTIONS= introspection
+PLIST_VARS+=           introspection
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mintrospection)
+PLIST.introspection=   yes
+BUILDLINK_API_DEPENDS.gobject-introspection+=  gobject-introspection>=1.42.0
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --enable-introspection=no
+.endif
+
 .include "../../textproc/enchant2/buildlink3.mk"
 .include "../../x11/gtk3/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/gtkspell3/PLIST,v
retrieving revision 1.2
diff -u -r1.2 PLIST
--- PLIST       13 Nov 2018 13:33:29 -0000      1.2
+++ PLIST       3 Jul 2020 19:00:10 -0000
@@ -1,7 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2018/11/13 13:33:29 bsiegert Exp $
+@comment $NetBSD$
 include/gtkspell-3.0/gtkspell/gtkspell.h
+lib/girepository-1.0/GtkSpell-3.0.typelib
 lib/libgtkspell3-3.la
 lib/pkgconfig/gtkspell3-3.0.pc
+share/gir-1.0/GtkSpell-3.0.gir
 share/gtk-doc/html/gtkspell3/annotation-glossary.html
 share/gtk-doc/html/gtkspell3/api-index-full.html
 share/gtk-doc/html/gtkspell3/ch02.html


Home | Main Index | Thread Index | Old Index