Hello community,
here is the log from the commit of package libyui-bindings for openSUSE:Factory
checked in at 2020-05-28 09:15:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-bindings (Old)
and /work/SRC/openSUSE:Factory/.libyui-bindings.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libyui-bindings"
Thu May 28 09:15:41 2020 rev:23 rq:809188 version:2.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-bindings/libyui-bindings.changes
2018-10-26 11:10:24.437708196 +0200
+++
/work/SRC/openSUSE:Factory/.libyui-bindings.new.3606/libyui-bindings.changes
2020-05-28 09:16:11.056803032 +0200
@@ -1,0 +2,19 @@
+Wed May 27 06:45:02 UTC 2020 - Josef Reidinger <[email protected]>
+
+- Fix ruby bindings when build as non-gem (bsc#1172158)
+- 2.0.2
+
+-------------------------------------------------------------------
+Tue May 26 19:03:46 UTC 2020 - [email protected]
+
+- Modify spec file to build python3 package
+- 2.0.1
+
+-------------------------------------------------------------------
+Fri Apr 14 12:03:51 CEST 2017 - [email protected]
+
+- Add option to enable MGA-Extensions
+- Patches from MGA (anaselli) to support external plugins
+- 2.0.0
+
+-------------------------------------------------------------------
Old:
----
libyui-bindings-1.1.2.tar.bz2
New:
----
libyui-bindings-2.0.2.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libyui-bindings.spec ++++++
--- /var/tmp/diff_new_pack.MdghbJ/_old 2020-05-28 09:16:11.972805193 +0200
+++ /var/tmp/diff_new_pack.MdghbJ/_new 2020-05-28 09:16:11.972805193 +0200
@@ -1,7 +1,7 @@
#
# spec file for package libyui-bindings
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
Name: libyui-bindings
-Version: 1.1.2
+Version: 2.0.2
Release: 0
Summary: Bindings for libyui
License: LGPL-2.1-only OR LGPL-3.0-only
@@ -29,7 +29,7 @@
BuildRequires: gcc-c++
BuildRequires: libyui-devel >= 2.21.5
BuildRequires: perl
-BuildRequires: python-devel
+BuildRequires: python3-devel
BuildRequires: ruby-devel
BuildRequires: swig
Source: %{name}-%{version}.tar.bz2
@@ -55,7 +55,7 @@
cmake -DYPREFIX=%{prefix} \
-DCMAKE_INSTALL_PREFIX=%{prefix} \
-DLIB=%{_lib} \
- -DPYTHON_SITEDIR=%{py_sitedir} \
+ -DPYTHON_SITEDIR=%{python_sitelib} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
@@ -87,14 +87,13 @@
- [email protected]
- [email protected]
-%package -n python-yui
-%py_requires
-Summary: Python bindings for libyui
+%package -n python3-yui
+Summary: Python 3 bindings for libyui
Group: Development/Languages/Python
-%description -n python-yui
-This package provides Python language bindings to access functions of
-yast2-libyui - An User Interface engine that provides the
+%description -n python3-yui
+This package provides Python 3 language bindings to access functions of
+libyui - An User Interface engine that provides the
abstraction from graphical user interfaces (Qt, Gtk) and text based
user interfaces (ncurses).
@@ -124,13 +123,15 @@
%files -n ruby-yui
%defattr(-,root,root,-)
%doc swig/ruby/examples/*.rb
+%{_libdir}/ruby/vendor_ruby/%{rb_ver}/yui.rb
+%{_libdir}/ruby/vendor_ruby/%{rb_ver}/yui
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/_yui.so
-%files -n python-yui
+%files -n python3-yui
%defattr(-,root,root,-)
%doc swig/python/examples/*.py
-%{py_sitedir}/_yui.so
-%{py_sitedir}/yui.py
+%{python_sitelib}/_yui.so
+%{python_sitelib}/yui.py
%files -n perl-yui
%defattr(-,root,root,-)
++++++ libyui-bindings-1.1.2.tar.bz2 -> libyui-bindings-2.0.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/CMakeLists.txt
new/libyui-bindings-2.0.2/CMakeLists.txt
--- old/libyui-bindings-1.1.2/CMakeLists.txt 2018-10-25 12:33:06.000000000
+0200
+++ new/libyui-bindings-2.0.2/CMakeLists.txt 2020-05-27 09:55:17.000000000
+0200
@@ -12,6 +12,7 @@
endif(COMMAND cmake_policy)
OPTION( BUILD_RUBY_GEM "Build Ruby GEM" YES )
+OPTION( WITH_MGA "Build with support for libyui-mga" NO )
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is
checked
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules ${CMAKE_MODULE_PATH})
@@ -28,7 +29,6 @@
SET( CMAKE_INSTALL_PREFIX "${YPREFIX}" )
SET( LIBYUI_INCLUDE_DIR "${YPREFIX}/include" )
-SET( LIBYUI_LIBRARY "yui" )
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Language Bindings for libyui")
SET(CPACK_PACKAGE_VENDOR "Novell Inc.")
@@ -76,19 +76,19 @@
#FIND_PACKAGE(SWIG REQUIRED)
MESSAGE(STATUS "Looking modules in ${CMAKE_MODULE_PATH}")
-FIND_PROGRAM(SWIG_EXECUTABLE
- NAMES swig-1.3 swig
- PATHS ${SWIG_DIR} ${SWIG_DIR}/.. ${SWIG_DIR}/../../bin /usr/bin
/usr/local/bin ${CMAKE_INSTALL_PREFIX}/bin
-)
-
-IF ( NOT SWIG_EXECUTABLE )
- MESSAGE( FATAL "SWIG not found." )
-ELSE ( NOT SWIG_EXECUTABLE )
- MESSAGE( STATUS "SWIG found at ${SWIG_EXECUTABLE}" )
-ENDIF ( NOT SWIG_EXECUTABLE )
+FIND_PACKAGE(SWIG REQUIRED)
FIND_PACKAGE(Libyui REQUIRED)
+SET( LIBYUI_LIBRARY yui )
+
+IF(WITH_MGA)
+FIND_PACKAGE(Libyui-mga REQUIRED)
+SET( LIBYUI_LIBRARY yui yui-mga )
+ADD_DEFINITIONS( -DWITH_MGA )
+SET( SWIG_FLAGS "-DWITH_MGA" )
+ENDIF(WITH_MGA)
+
ADD_SUBDIRECTORY(swig)
ADD_CUSTOM_TARGET( svncheck
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/Dockerfile
new/libyui-bindings-2.0.2/Dockerfile
--- old/libyui-bindings-1.1.2/Dockerfile 2018-10-25 12:33:06.000000000
+0200
+++ new/libyui-bindings-2.0.2/Dockerfile 2020-05-27 09:55:17.000000000
+0200
@@ -1,5 +1,5 @@
# Use the libyui/devel image as the base
-FROM libyui/devel
+FROM
registry.opensuse.org/devel/libraries/libyui/containers/libyui-devel:latest
RUN zypper --non-interactive in --no-recommends \
python-devel \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/VERSION.cmake
new/libyui-bindings-2.0.2/VERSION.cmake
--- old/libyui-bindings-1.1.2/VERSION.cmake 2018-10-25 12:33:06.000000000
+0200
+++ new/libyui-bindings-2.0.2/VERSION.cmake 2020-05-27 09:55:17.000000000
+0200
@@ -1,3 +1,3 @@
-SET(VERSION_MAJOR "1")
-SET(VERSION_MINOR "1")
+SET(VERSION_MAJOR "2")
+SET(VERSION_MINOR "0")
SET(VERSION_PATCH "2")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libyui-bindings-1.1.2/package/libyui-bindings.changes
new/libyui-bindings-2.0.2/package/libyui-bindings.changes
--- old/libyui-bindings-1.1.2/package/libyui-bindings.changes 2018-10-25
12:33:06.000000000 +0200
+++ new/libyui-bindings-2.0.2/package/libyui-bindings.changes 2020-05-27
09:55:17.000000000 +0200
@@ -1,4 +1,23 @@
-------------------------------------------------------------------
+Wed May 27 06:45:02 UTC 2020 - Josef Reidinger <[email protected]>
+
+- Fix ruby bindings when build as non-gem (bsc#1172158)
+- 2.0.2
+
+-------------------------------------------------------------------
+Tue May 26 19:03:46 UTC 2020 - [email protected]
+
+- Modify spec file to build python3 package
+- 2.0.1
+
+-------------------------------------------------------------------
+Fri Apr 14 12:03:51 CEST 2017 - [email protected]
+
+- Add option to enable MGA-Extensions
+- Patches from MGA (anaselli) to support external plugins
+- 2.0.0
+
+-------------------------------------------------------------------
Fri Apr 14 11:42:20 CEST 2017 - [email protected]
- Python3: YItem and YWidget pointers comparison does not work any more
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/package/libyui-bindings.spec
new/libyui-bindings-2.0.2/package/libyui-bindings.spec
--- old/libyui-bindings-1.1.2/package/libyui-bindings.spec 2018-10-25
12:33:06.000000000 +0200
+++ new/libyui-bindings-2.0.2/package/libyui-bindings.spec 2020-05-27
09:55:17.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package libyui-bindings
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,10 +18,10 @@
Name: libyui-bindings
-Version: 1.1.2
+Version: 2.0.2
Release: 0
Summary: Bindings for libyui
-License: LGPL-2.1 or LGPL-3.0
+License: LGPL-2.1-only OR LGPL-3.0-only
Group: Development/Sources
Url: https://github.com/libyui/libyui-bindings
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -29,7 +29,7 @@
BuildRequires: gcc-c++
BuildRequires: libyui-devel >= 2.21.5
BuildRequires: perl
-BuildRequires: python-devel
+BuildRequires: python3-devel
BuildRequires: ruby-devel
BuildRequires: swig
Source: %{name}-%{version}.tar.bz2
@@ -55,7 +55,7 @@
cmake -DYPREFIX=%{prefix} \
-DCMAKE_INSTALL_PREFIX=%{prefix} \
-DLIB=%{_lib} \
- -DPYTHON_SITEDIR=%{py_sitedir} \
+ -DPYTHON_SITEDIR=%{python_sitelib} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
@@ -87,14 +87,13 @@
- [email protected]
- [email protected]
-%package -n python-yui
-%py_requires
-Summary: Python bindings for libyui
+%package -n python3-yui
+Summary: Python 3 bindings for libyui
Group: Development/Languages/Python
-%description -n python-yui
-This package provides Python language bindings to access functions of
-yast2-libyui - An User Interface engine that provides the
+%description -n python3-yui
+This package provides Python 3 language bindings to access functions of
+libyui - An User Interface engine that provides the
abstraction from graphical user interfaces (Qt, Gtk) and text based
user interfaces (ncurses).
@@ -124,13 +123,15 @@
%files -n ruby-yui
%defattr(-,root,root,-)
%doc swig/ruby/examples/*.rb
+%{_libdir}/ruby/vendor_ruby/%{rb_ver}/yui.rb
+%{_libdir}/ruby/vendor_ruby/%{rb_ver}/yui
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/_yui.so
-%files -n python-yui
+%files -n python3-yui
%defattr(-,root,root,-)
%doc swig/python/examples/*.py
-%{py_sitedir}/_yui.so
-%{py_sitedir}/yui.py
+%{python_sitelib}/_yui.so
+%{python_sitelib}/yui.py
%files -n perl-yui
%defattr(-,root,root,-)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/swig/CMakeLists.txt
new/libyui-bindings-2.0.2/swig/CMakeLists.txt
--- old/libyui-bindings-1.1.2/swig/CMakeLists.txt 2018-10-25
12:33:06.000000000 +0200
+++ new/libyui-bindings-2.0.2/swig/CMakeLists.txt 2020-05-27
09:55:17.000000000 +0200
@@ -1,7 +1,3 @@
-FIND_PACKAGE(SWIG)
-
-MESSAGE(STATUS "Found SWIG version ${SWIG_VERSION}")
-
#
# Generic setting for all generated bindings
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/swig/mono/CMakeLists.txt
new/libyui-bindings-2.0.2/swig/mono/CMakeLists.txt
--- old/libyui-bindings-1.1.2/swig/mono/CMakeLists.txt 2018-10-25
12:33:06.000000000 +0200
+++ new/libyui-bindings-2.0.2/swig/mono/CMakeLists.txt 2020-05-27
09:55:17.000000000 +0200
@@ -18,7 +18,7 @@
ADD_CUSTOM_COMMAND (
OUTPUT ${SWIG_OUTPUT}
COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for CSharp
..."
- COMMAND ${SWIG_EXECUTABLE} -c++ -csharp -features autodoc -o ${SWIG_OUTPUT}
-I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
+ COMMAND ${SWIG_EXECUTABLE} -c++ -csharp -features autodoc ${SWIG_FLAGS} -o
${SWIG_OUTPUT} -I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
COMMAND ${CMAKE_COMMAND} -E echo "Done."
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/swig/perl/CMakeLists.txt
new/libyui-bindings-2.0.2/swig/perl/CMakeLists.txt
--- old/libyui-bindings-1.1.2/swig/perl/CMakeLists.txt 2018-10-25
12:33:06.000000000 +0200
+++ new/libyui-bindings-2.0.2/swig/perl/CMakeLists.txt 2020-05-27
09:55:17.000000000 +0200
@@ -34,7 +34,7 @@
ADD_CUSTOM_COMMAND (
OUTPUT ${SWIG_OUTPUT}
COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for Perl ..."
- COMMAND ${SWIG_EXECUTABLE} -c++ -perl -shadow -features autodoc -o
${SWIG_OUTPUT} -I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
+ COMMAND ${SWIG_EXECUTABLE} -c++ -perl -shadow -features autodoc
${SWIG_FLAGS} -o ${SWIG_OUTPUT} -I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
COMMAND ${CMAKE_COMMAND} -E echo "Done."
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/swig/python/CMakeLists.txt
new/libyui-bindings-2.0.2/swig/python/CMakeLists.txt
--- old/libyui-bindings-1.1.2/swig/python/CMakeLists.txt 2018-10-25
12:33:06.000000000 +0200
+++ new/libyui-bindings-2.0.2/swig/python/CMakeLists.txt 2020-05-27
09:55:17.000000000 +0200
@@ -27,7 +27,7 @@
ADD_CUSTOM_COMMAND (
OUTPUT ${SWIG_OUTPUT}
COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for Python
..."
- COMMAND ${SWIG_EXECUTABLE} -c++ -python -shadow -features autodoc -o
${SWIG_OUTPUT} -I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
+ COMMAND ${SWIG_EXECUTABLE} -c++ -python -shadow -features autodoc
${SWIG_FLAGS} -o ${SWIG_OUTPUT} -I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
COMMAND ${CMAKE_COMMAND} -E echo "Done."
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libyui-bindings-1.1.2/swig/python/examples/mga-dialogs.py
new/libyui-bindings-2.0.2/swig/python/examples/mga-dialogs.py
--- old/libyui-bindings-1.1.2/swig/python/examples/mga-dialogs.py
1970-01-01 01:00:00.000000000 +0100
+++ new/libyui-bindings-2.0.2/swig/python/examples/mga-dialogs.py
2020-05-27 09:55:17.000000000 +0200
@@ -0,0 +1,89 @@
+#!/usr/bin/env python
+# vim: set et ts=4 sw=4:
+#coding:utf-8
+#############################################################################
+#
+# mga-dialogs.py - Show mga msg dialog and about dialog.
+#
+# License: GPLv3
+# Author: Angelo Naselli <[email protected]>
+#############################################################################
+
+###########
+# imports #
+###########
+import sys
+sys.path.insert(0,'../../../build/swig/python')
+import os
+
+import yui
+
+log = yui.YUILog.instance()
+log.setLogFileName("/tmp/debug.log")
+log.enableDebugLogging( True )
+appl = yui.YUI.application()
+appl.setApplicationTitle("Show dialogs example")
+
+#################
+# class mainGui #
+#################
+class Info(object):
+ def __init__(self,title,richtext,text):
+ self.title=title
+ self.richtext=richtext
+ self.text=text
+
+class mainGui():
+ """
+ Main class
+ """
+
+ def __init__(self):
+ self.factory = yui.YUI.widgetFactory()
+ self.dialog = self.factory.createPopupDialog()
+ mainvbox = self.factory.createVBox(self.dialog)
+ frame = self.factory.createFrame(mainvbox,"Test frame")
+ HBox = self.factory.createHBox(frame)
+ self.aboutbutton = self.factory.createPushButton(HBox,"&About")
+ self.closebutton =
self.factory.createPushButton(self.factory.createRight(HBox), "&Close")
+
+
+ def ask_YesOrNo(self, info):
+ yui.YUI.widgetFactory
+ mgafactory =
yui.YMGAWidgetFactory.getYMGAWidgetFactory(yui.YExternalWidgets.externalWidgetFactory("mga"))
+ dlg = mgafactory.createDialogBox(yui.YMGAMessageBox.B_TWO)
+ dlg.setTitle(info.title)
+ dlg.setText(info.text, info.richtext)
+ dlg.setButtonLabel("Yes", yui.YMGAMessageBox.B_ONE)
+ dlg.setButtonLabel("No", yui.YMGAMessageBox.B_TWO)
+ dlg.setMinSize(50, 5);
+ return dlg.show() == yui.YMGAMessageBox.B_ONE
+
+ def aboutDialog(self):
+ yui.YUI.widgetFactory;
+ mgafactory =
yui.YMGAWidgetFactory.getYMGAWidgetFactory(yui.YExternalWidgets.externalWidgetFactory("mga"))
+ dlg = mgafactory.createAboutDialog("About dialog title example",
"1.0.0", "GPLv3",
+ "Angelo Naselli", "This beautiful test
example shows how it is easy to play with libyui bindings", "")
+ dlg.show();
+
+
+ def handleevent(self):
+ """
+ Event-handler for the 'widgets' demo
+ """
+ while True:
+ event = self.dialog.waitForEvent()
+ if event.eventType() == yui.YEvent.CancelEvent:
+ self.dialog.destroy()
+ break
+ if event.widget() == self.closebutton:
+ info = Info("Quit confirmation", 1, "Are you sure you want to
quit?")
+ if self.ask_YesOrNo(info):
+ self.dialog.destroy()
+ break
+ if event.widget() == self.aboutbutton:
+ self.aboutDialog()
+
+if __name__ == "__main__":
+ main_gui = mainGui()
+ main_gui.handleevent()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/swig/ruby/CMakeLists.txt
new/libyui-bindings-2.0.2/swig/ruby/CMakeLists.txt
--- old/libyui-bindings-1.1.2/swig/ruby/CMakeLists.txt 2018-10-25
12:33:06.000000000 +0200
+++ new/libyui-bindings-2.0.2/swig/ruby/CMakeLists.txt 2020-05-27
09:55:17.000000000 +0200
@@ -19,7 +19,7 @@
ADD_CUSTOM_COMMAND (
OUTPUT ${SWIG_OUTPUT}
COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for ruby..."
- COMMAND ${SWIG_EXECUTABLE} -c++ -ruby -autorename -o ${SWIG_OUTPUT}
-I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
+ COMMAND ${SWIG_EXECUTABLE} -c++ -ruby -autorename ${SWIG_FLAGS} -o
${SWIG_OUTPUT} -I${LIBYUI_INCLUDE_DIR} ${SWIG_INPUT}
COMMAND ${CMAKE_COMMAND} -E echo "Done."
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i
@@ -80,5 +80,11 @@
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/yui/*.rb.in
DEPENDS ${SWIG_OUTPUT}
)
-
+ELSE( BUILD_RUBY_GEM )
+# install ruby files to vendor dir
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/yui.rb DESTINATION
${RUBY_VENDORLIB_DIR} )
+FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/yui/*.rb")
+INSTALL(FILES ${files} DESTINATION ${RUBY_VENDORLIB_DIR}/yui)
+FILE(GLOB files_built "${CMAKE_CURRENT_BINARY_DIR}/yui/*.rb")
+INSTALL(FILES ${files_built} DESTINATION ${RUBY_VENDORLIB_DIR}/yui)
ENDIF( BUILD_RUBY_GEM )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libyui-bindings-1.1.2/swig/yui.i
new/libyui-bindings-2.0.2/swig/yui.i
--- old/libyui-bindings-1.1.2/swig/yui.i 2018-10-25 12:33:06.000000000
+0200
+++ new/libyui-bindings-2.0.2/swig/yui.i 2020-05-27 09:55:17.000000000
+0200
@@ -99,6 +99,13 @@
#include "yui/YUILoader.h"
+#if defined(WITH_MGA)
+#include "yui/mga/YMGA_CBTable.h"
+#include "yui/mga/YMGAMsgBox.h"
+#include "yui/mga/YMGAAboutDialog.h"
+#include "yui/mga/YMGAWidgetExtensionFactory.h"
+#endif
+
using namespace std;
extern void *start_ui_thread( void *ui_int );
@@ -161,7 +168,7 @@
*
*/
-
+
%apply SWIGTYPE *DISOWN { YItem *item_disown };
%apply SWIGTYPE *DISOWN { YEvent *event_disown };
%apply SWIGTYPE *DISOWN { YTableCell *cell_disown };
@@ -255,6 +262,13 @@
%include yui/YExternalWidgetFactory.h
%include yui/YExternalWidgets.h
+#if defined(WITH_MGA)
+%include yui/mga/YMGA_CBTable.h
+%include yui/mga/YMGAAboutDialog.h
+%include yui/mga/YMGAMsgBox.h
+%include yui/mga/YMGAWidgetExtensionFactory.h
+#endif
+
#if defined(SWIGRUBY)
%extend YEvent {
VALUE mywidget() { return INT2FIX( $self->widget() ); }