pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/ocaml-lablgtk Detach the gnomecanvas option from l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c6f4d0b1b91
branches:  trunk
changeset: 367698:1c6f4d0b1b91
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Tue Sep 05 04:22:09 2017 +0000

description:
Detach the gnomecanvas option from libgnomeui and gnome-panel (which are
both very heavyweight) -- control these with the "gnome" option instead.

Everything's still enabled by default, so no version bump.

diffstat:

 x11/ocaml-lablgtk/PLIST.gnomecanvas |  12 +-----------
 x11/ocaml-lablgtk/PLIST.gnomepanel  |  11 +++++++++++
 x11/ocaml-lablgtk/options.mk        |  24 +++++++++++++++---------
 3 files changed, 27 insertions(+), 20 deletions(-)

diffs (92 lines):

diff -r 23090a02c950 -r 1c6f4d0b1b91 x11/ocaml-lablgtk/PLIST.gnomecanvas
--- a/x11/ocaml-lablgtk/PLIST.gnomecanvas       Mon Sep 04 21:13:22 2017 +0000
+++ b/x11/ocaml-lablgtk/PLIST.gnomecanvas       Tue Sep 05 04:22:09 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.gnomecanvas,v 1.2 2016/06/25 14:33:11 jaapb Exp $
+@comment $NetBSD: PLIST.gnomecanvas,v 1.3 2017/09/05 04:22:09 dholland Exp $
 ${OCAML_SITELIB}/lablgtk2/gnoCanvas.cmi
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/gnoCanvas.cmx
 ${OCAML_SITELIB}/lablgtk2/gnoCanvas.ml
@@ -9,15 +9,5 @@
 ${OCAML_SITELIB}/lablgtk2/lablgnomecanvas.cma
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablgnomecanvas.cmxa
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablgnomecanvas.cmxs
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablpanel.a
-${OCAML_SITELIB}/lablgtk2/lablpanel.cma
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablpanel.cmxa
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablpanel.cmxs
 ${OCAML_SITELIB}/lablgtk2/liblablgnomecanvas.a
-${OCAML_SITELIB}/lablgtk2/liblablpanel.a
-${OCAML_SITELIB}/lablgtk2/panel.cmi
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/panel.cmx
-${OCAML_SITELIB}/lablgtk2/panel.ml
-${OCAML_SITELIB}/lablgtk2/panel_tags.h
 ${PLIST.stubs}${OCAML_SITELIB}/lablgtk2/dlllablgnomecanvas.so
-${PLIST.stubs}${OCAML_SITELIB}/lablgtk2/dlllablpanel.so
diff -r 23090a02c950 -r 1c6f4d0b1b91 x11/ocaml-lablgtk/PLIST.gnomepanel
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ocaml-lablgtk/PLIST.gnomepanel        Tue Sep 05 04:22:09 2017 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST.gnomepanel,v 1.1 2017/09/05 04:22:09 dholland Exp $
+${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablpanel.a
+${OCAML_SITELIB}/lablgtk2/lablpanel.cma
+${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablpanel.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/lablpanel.cmxs
+${OCAML_SITELIB}/lablgtk2/liblablpanel.a
+${OCAML_SITELIB}/lablgtk2/panel.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/lablgtk2/panel.cmx
+${OCAML_SITELIB}/lablgtk2/panel.ml
+${OCAML_SITELIB}/lablgtk2/panel_tags.h
+${PLIST.stubs}${OCAML_SITELIB}/lablgtk2/dlllablpanel.so
diff -r 23090a02c950 -r 1c6f4d0b1b91 x11/ocaml-lablgtk/options.mk
--- a/x11/ocaml-lablgtk/options.mk      Mon Sep 04 21:13:22 2017 +0000
+++ b/x11/ocaml-lablgtk/options.mk      Tue Sep 05 04:22:09 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2014/10/10 08:37:49 jaapb Exp $
+# $NetBSD: options.mk,v 1.2 2017/09/05 04:22:09 dholland Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.lablgtk
-PKG_SUPPORTED_OPTIONS= glade gnomecanvas gtksourceview gtksourceview2 gtkspell svg
-PKG_SUGGESTED_OPTIONS= glade gnomecanvas gtksourceview gtksourceview2 gtkspell svg
+PKG_SUPPORTED_OPTIONS= glade gnomecanvas gtksourceview gtksourceview2 gtkspell svg gnome
+PKG_SUGGESTED_OPTIONS= glade gnomecanvas gtksourceview gtksourceview2 gtkspell svg gnome
 
 .include "../../mk/bsd.options.mk"
 
@@ -23,15 +23,25 @@
 .endif
 
 .if !empty(PKG_OPTIONS:Mgnomecanvas)
-.include "../../devel/libgnomeui/buildlink3.mk"
 .include "../../graphics/libgnomecanvas/buildlink3.mk"
-.include "../../x11/gnome-panel/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-gnomecanvas
 PLIST_SRC+=            PLIST.gnomecanvas
 .else
 CONFIGURE_ARGS+=       --without-gnomecanvas
 .endif
 
+# Note: it looks like it should work to split these, but I don't
+# want to build gnome-panel tonight to check.
+.if !empty(PKG_OPTIONS:Mgnome)
+.include "../../devel/libgnomeui/buildlink3.mk"
+.include "../../x11/gnome-panel/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-gnomeui --with-panel
+PLIST_SRC+=            PLIST.gnome
+PLIST_SRC+=            PLIST.gnomepanel
+.else
+CONFIGURE_ARGS+=       --without-gnomeui --without-panel
+.endif
+
 .if !empty(PKG_OPTIONS:Mgtksourceview)
 .include "../../x11/gtksourceview/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-gtksourceview
@@ -56,8 +66,4 @@
 CONFIGURE_ARGS+=       --without-rsvg
 .endif
 
-.if !empty(PKG_OPTIONS:Mgnomecanvas)
-PLIST_SRC+=            PLIST.gnome
-.endif
-
 PLIST_SRC+=    PLIST



Home | Main Index | Thread Index | Old Index