pkgsrc/x11/py-gtk2/Makefile

90 lines
3.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.133 2022/11/23 16:19:11 adam Exp $
DISTNAME= pygtk-2.24.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/pygtk/gtk2/}
PKGREVISION= 40
CATEGORIES= x11 python
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/pygtk/2.24/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
2009-04-11 23:47:39 +02:00
HOMEPAGE= http://www.pygtk.org/
COMMENT= Python bindings for GTK+2
2010-01-30 17:27:59 +01:00
LICENSE= gnu-lgpl-v2.1
CONFLICTS= ${PYPKGPREFIX}-gtk<0.6.10
2016-08-26 19:14:57 +02:00
# IOError: [Errno 2] No such file or directory: 'gtk-types.defs'
MAKE_JOBS_SAFE= no
USE_LIBTOOL= YES
PKGCONFIG_OVERRIDE+= pygtk-2.0.pc.in
GNU_CONFIGURE= YES
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
USE_TOOLS+= gmake pkg-config
PY_PATCHPLIST= YES
PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 2.24.0
REPLACE_PYTHON+= examples/atk/atk-demo.py
REPLACE_PYTHON+= examples/glade/autoconnect.py
REPLACE_PYTHON+= examples/glade/glade-demo.py
REPLACE_PYTHON+= examples/gtk/customtreemodel.py
REPLACE_PYTHON+= examples/ide/browse.py
REPLACE_PYTHON+= examples/ide/edit.py
REPLACE_PYTHON+= examples/ide/gtkcons.py
REPLACE_PYTHON+= examples/ide/gtkdb.py
REPLACE_PYTHON+= examples/ide/gtkprof.py
REPLACE_PYTHON+= examples/ide/pyide.py
REPLACE_PYTHON+= examples/pango/extentdemo.py
REPLACE_PYTHON+= examples/pango/pangocairo-simple.py
REPLACE_PYTHON+= examples/pango/utf8-demo.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/appwindow.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/buttonbox.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/changedisplay.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/colorsel.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/dialogs.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/dnd.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/editable_cells.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/entry_completion.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/expander.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/hypertext.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/images.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/infobar.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/list_store.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/menu.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/panes.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/pixbufs.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/sizegroup.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/statusicon.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/stock_browser.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/textscroll.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/textview.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/tooltip.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/tree_store.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/treemodel.py
REPLACE_PYTHON+= examples/pygtk-demo/demos/ui_manager.py
REPLACE_PYTHON+= examples/pygtk-demo/pygtk-demo.py
REPLACE_PYTHON+= examples/simple/dnd.py
REPLACE_PYTHON+= examples/simple/hello.py
REPLACE_PYTHON+= examples/simple/scribble.py
REPLACE_PYTHON+= examples/simple/simple.py
REPLACE_PYTHON+= examples/simple/tooltip.py
REPLACE_PYTHON+= setup.py
REPLACE_PYTHON+= tests/runtests.py
.include "options.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
2008-12-02 20:04:05 +01:00
.include "../../devel/libglade/buildlink3.mk"
.include "../../graphics/py-cairo/buildlink3.mk"
Update to 2.16.0: pygtk-2.16.0 23-Aug-2009 - Allow to use automake 1.11 (Paolo Borelli) - Remove compiler warnings (Gian) - Add gtk.gdk.CURRENT_TIME constant (Paul) - Fix gtk.IMContext().set_client_window() (Gian) - Some docs fix (John Finlay) - Fixed invocation of FileChooserDialog in print demo (Pietro Battiston) - Some autotools tweaks (Gian) - Fix arg parsing format typo for gtk_toggle_button_new (John Finlay) - Update some docs to the new 2.16 API (Gian) pygtk-2.15.2 20-Jun-2009 - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message (Paul) - Allow pango.Context creation (Paul, #550855) - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward compatibility accepting also chars (Paul, #586094) - Protect window obj from GC in gtk.window_get_toplevels (Gustavo, #574259) - Plug huge number of memory leaks in Pango wrappers (Paul) - Add gtk.gdk.WINDOWING constant (Paul, #555112) - Wrap gdk_pixbuf_apply_embedded_orientation (Chris Wilson) - Modernize constructors of seven more types (Paul) - Don't free a string we don't own (Paul, #585458) - Some docs tweaking (Gian) pygtk-2.15.1 25-May-2009 - (Add HSV support to gtk.gdk.Color objects) - Add floating-point support to gtk.gdk.Color (Paul) - Retire hand-written ChangeLog; autocreate from Git history (Paul) - Fix conditional in docs/Makefile.am (Frederic Peters) - Document that gtk.gdk.GC coordinates are not related to allocation (Paul) - Make pygtk_boxed_unref_shared() also handle Py_None (Paul) - Make gtk.MenuItem.set_submenu accept None (Paul) - Don't run 'fixxref.py' if documentation is not built (Bj - Apply libtool 2.2 compatibility patch (Gian) - Plug reference leak on main signal watch source (Paul) - Add extra warning against accidental misuse of tree model columns (Paul) - Wrap gtk.Border attributes and constructor (Mariano Su - Make gtk.gdk.Event.time accept 'long' in assignments (Paul) - Wrap gtk.RcStyle attributes (Paul) pygtk-2.15.0 01-May-2009 - Update pygtk to use numpy instead of Numeric (Josselin Mouette, Brian Cameron, #397544) - Update the address of the FSF (Tobias Mueller, #577154) - Wrap gtk_builder_add_objects_from_string and gtk_builder_add_objects_from_file. - Add GTK+ 2.16 API (Gian) - wrap gtk.IconView.convert_widget_to_bin_window_coords (Gian) - add gtk.gdk.Window.redirect_to_drawable (Gian) - add GtkNumberUpLayout enum (Gian) - some method argument fixes (Gian) - add gtk.PrintSettings.[get|set]_number_up_layout (Gian) - Some demo fixes (Gian, Andi Albrecht) - Add various deprecation warnings (Gian Mario)
2009-09-10 21:03:48 +02:00
BUILDLINK_API_DEPENDS.pygobject+= ${PYPKGPREFIX}-gobject>=2.15.3
.include "../../devel/py-gobject/buildlink3.mk"
Update to 2.16.0: pygtk-2.16.0 23-Aug-2009 - Allow to use automake 1.11 (Paolo Borelli) - Remove compiler warnings (Gian) - Add gtk.gdk.CURRENT_TIME constant (Paul) - Fix gtk.IMContext().set_client_window() (Gian) - Some docs fix (John Finlay) - Fixed invocation of FileChooserDialog in print demo (Pietro Battiston) - Some autotools tweaks (Gian) - Fix arg parsing format typo for gtk_toggle_button_new (John Finlay) - Update some docs to the new 2.16 API (Gian) pygtk-2.15.2 20-Jun-2009 - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message (Paul) - Allow pango.Context creation (Paul, #550855) - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward compatibility accepting also chars (Paul, #586094) - Protect window obj from GC in gtk.window_get_toplevels (Gustavo, #574259) - Plug huge number of memory leaks in Pango wrappers (Paul) - Add gtk.gdk.WINDOWING constant (Paul, #555112) - Wrap gdk_pixbuf_apply_embedded_orientation (Chris Wilson) - Modernize constructors of seven more types (Paul) - Don't free a string we don't own (Paul, #585458) - Some docs tweaking (Gian) pygtk-2.15.1 25-May-2009 - (Add HSV support to gtk.gdk.Color objects) - Add floating-point support to gtk.gdk.Color (Paul) - Retire hand-written ChangeLog; autocreate from Git history (Paul) - Fix conditional in docs/Makefile.am (Frederic Peters) - Document that gtk.gdk.GC coordinates are not related to allocation (Paul) - Make pygtk_boxed_unref_shared() also handle Py_None (Paul) - Make gtk.MenuItem.set_submenu accept None (Paul) - Don't run 'fixxref.py' if documentation is not built (Bj - Apply libtool 2.2 compatibility patch (Gian) - Plug reference leak on main signal watch source (Paul) - Add extra warning against accidental misuse of tree model columns (Paul) - Wrap gtk.Border attributes and constructor (Mariano Su - Make gtk.gdk.Event.time accept 'long' in assignments (Paul) - Wrap gtk.RcStyle attributes (Paul) pygtk-2.15.0 01-May-2009 - Update pygtk to use numpy instead of Numeric (Josselin Mouette, Brian Cameron, #397544) - Update the address of the FSF (Tobias Mueller, #577154) - Wrap gtk_builder_add_objects_from_string and gtk_builder_add_objects_from_file. - Add GTK+ 2.16 API (Gian) - wrap gtk.IconView.convert_widget_to_bin_window_coords (Gian) - add gtk.gdk.Window.redirect_to_drawable (Gian) - add GtkNumberUpLayout enum (Gian) - some method argument fixes (Gian) - add gtk.PrintSettings.[get|set]_number_up_layout (Gian) - Some demo fixes (Gian, Andi Albrecht) - Add various deprecation warnings (Gian Mario)
2009-09-10 21:03:48 +02:00
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.16.0
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"