pkgsrc-Bugs archive

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

pkg/44878: Submission to add an option to textproc/aiksaurus to enable the GUI interface (gaiksaurus)



>Number:         44878
>Category:       pkg
>Synopsis:       Submission to add an option to textproc/aiksaurus to enable 
>the GUI interface (gaiksaurus)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 19 02:15:00 +0000 2011
>Originator:     David H. Gutteridge
>Release:        Several
>Organization:
>Environment:
>Description:
I've been working (off and on) on adding support for more of the Abiword 
plug-ins than are currently enabled by default.  In order to use the Abiword 
thesaurus functionality, the GTK-dependent portion of aiksaurus (gaiksaurus) 
must be enabled.  (It's an interesting little application on its own, too, in 
how it displays results.)  I've attached patches to add an option to the 
existing package to make this happen.  (I've seen debate before on pkgsrc 
mailing lists over whether package options are a good or bad thing [as opposed 
to distinct packages], and I'm not sure how to force the GTK components to be 
included if this package is being compiled for Abiword, but this is a start, 
anyway...)
>How-To-Repeat:

>Fix:
Make file patch:

--- Makefile    2011-04-18 22:03:25.000000000 -0400
+++ Makefile.new        2011-04-18 22:02:53.000000000 -0400
@@ -15,7 +15,7 @@
 USE_LIBTOOL=   YES
 USE_LANGUAGES= c c++
 GNU_CONFIGURE= YES
-CONFIGURE_ARGS+=       --without-gtk
 PKGCONFIG_OVERRIDE=    base/aiksaurus-1.0.pc.in
 
+.include "options.mk"
 .include "../../mk/bsd.pkg.mk"

New options.mk file:

# $NetBSD: options.mk,v 1.10 2009/08/05 17:10:37 drochner Exp $

PKG_OPTIONS_VAR=        PKG_OPTIONS.aiksaurus
PKG_SUPPORTED_OPTIONS=  gtk
PKG_SUGGESTED_OPTIONS=  

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mgtk)
CONFIGURE_ARGS+=        --with-gtk
.include "../../x11/gtk2/buildlink3.mk"
PLIST_SRC=              ${PKGDIR}/PLIST ${PKGDIR}/PLIST.gtk
.else
CONFIGURE_ARGS+=        --without-gtk
.endif

New PLIST.gtk file:

bin/gaiksaurus
include/Aiksaurus/AiksaurusGTK-C.h
include/Aiksaurus/AiksaurusGTK.h
lib/libAiksaurusGTK-1.2.so.0.0.1
lib/libAiksaurusGTK.a
lib/libAiksaurusGTK.la
lib/pkgconfig/gaiksaurus-1.0.pc



Home | Main Index | Thread Index | Old Index