Hello community,
here is the log from the commit of package yast2-perl-bindings
checked in at Wed Aug 15 20:41:24 CEST 2007.
--------
--- yast2-perl-bindings/yast2-perl-bindings.changes 2007-08-10 18:10:29.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-perl-bindings/yast2-perl-bindings.changes 2007-08-15 18:36:53.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Aug 15 18:36:43 CEST 2007 - mvidner@suse.cz
+
+- UI from Perl: added examples and helper functions (F#120292).
+- 2.15.3
+
+-------------------------------------------------------------------
Old:
----
yast2-perl-bindings-2.15.2.tar.bz2
New:
----
yast2-perl-bindings-2.15.3.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-perl-bindings.spec ++++++
--- /var/tmp/diff_new_pack.D31716/_old 2007-08-15 20:41:17.000000000 +0200
+++ /var/tmp/diff_new_pack.D31716/_new 2007-08-15 20:41:17.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-perl-bindings (Version 2.15.2)
+# spec file for package yast2-perl-bindings (Version 2.15.3)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-perl-bindings
-Version: 2.15.2
+Version: 2.15.3
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-perl-bindings-2.15.2.tar.bz2
+Source0: yast2-perl-bindings-2.15.3.tar.bz2
prefix: /usr
BuildRequires: blocxx-devel curl-devel gcc-c++ libxcrypt-devel libzypp-devel rpm-devel yast2-core-devel yast2-devtools
# libzypp-devel is missing .la requires
@@ -41,7 +41,7 @@
Martin Vidner
%prep
-%setup -n yast2-perl-bindings-2.15.2
+%setup -n yast2-perl-bindings-2.15.3
%build
%{prefix}/bin/y2tool y2autoconf
@@ -80,6 +80,9 @@
%doc %{prefix}/share/doc/packages/yast2-perl-bindings
%changelog
+* Wed Aug 15 2007 - mvidner@suse.cz
+- UI from Perl: added examples and helper functions (F#120292).
+- 2.15.3
* Fri Aug 10 2007 - mvidner@suse.cz
- Finished integrating Feature #120292, UI as a namespace callable
from yast2-*-bindings.
++++++ yast2-perl-bindings-2.15.2.tar.bz2 -> yast2-perl-bindings-2.15.3.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/configure new/yast2-perl-bindings-2.15.3/configure
--- old/yast2-perl-bindings-2.15.2/configure 2007-08-09 09:02:07.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/configure 2007-08-15 18:37:48.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.60 for yast2-perl-bindings 2.15.1.1.
+# Generated by GNU Autoconf 2.60 for yast2-perl-bindings 2.15.3.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -713,8 +713,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-perl-bindings'
PACKAGE_TARNAME='yast2-perl-bindings'
-PACKAGE_VERSION='2.15.1.1'
-PACKAGE_STRING='yast2-perl-bindings 2.15.1.1'
+PACKAGE_VERSION='2.15.3'
+PACKAGE_STRING='yast2-perl-bindings 2.15.3'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1426,7 +1426,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-perl-bindings 2.15.1.1 to adapt to many kinds of systems.
+\`configure' configures yast2-perl-bindings 2.15.3 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1497,7 +1497,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-perl-bindings 2.15.1.1:";;
+ short | recursive ) echo "Configuration of yast2-perl-bindings 2.15.3:";;
esac
cat <<\_ACEOF
@@ -1605,7 +1605,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-perl-bindings configure 2.15.1.1
+yast2-perl-bindings configure 2.15.3
generated by GNU Autoconf 2.60
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1619,7 +1619,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-perl-bindings $as_me 2.15.1.1, which was
+It was created by yast2-perl-bindings $as_me 2.15.3, which was
generated by GNU Autoconf 2.60. Invocation command line was
$ $0 $@
@@ -2420,7 +2420,7 @@
# Define the identity of the package.
PACKAGE='yast2-perl-bindings'
- VERSION='2.15.1.1'
+ VERSION='2.15.3'
cat >>confdefs.h <<_ACEOF
@@ -2647,7 +2647,7 @@
-VERSION="2.15.1.1"
+VERSION="2.15.3"
RPMNAME="yast2-perl-bindings"
MAINTAINER="Martin Vidner "
@@ -21556,7 +21556,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-perl-bindings $as_me 2.15.1.1, which was
+This file was extended by yast2-perl-bindings $as_me 2.15.3, which was
generated by GNU Autoconf 2.60. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21609,7 +21609,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-perl-bindings config.status 2.15.1.1
+yast2-perl-bindings config.status 2.15.3
configured by $0, generated by GNU Autoconf 2.60,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
@@ -22571,7 +22571,7 @@
$ac_cs_success || { (exit 1); exit 1; }
fi
-ac_config_files="$ac_config_files Makefile src/Makefile doc/modules/Makefile doc/Makefile testsuite/Makefile pluglib-bindings/stylesheets/Makefile pluglib-bindings/swig/blocxx/Makefile pluglib-bindings/swig/generic/Makefile pluglib-bindings/swig/stdc/Makefile pluglib-bindings/swig/stl/Makefile pluglib-bindings/swig/Makefile pluglib-bindings/Makefile"
+ac_config_files="$ac_config_files Makefile src/Makefile doc/modules/Makefile doc/examples/Makefile doc/Makefile testsuite/Makefile pluglib-bindings/stylesheets/Makefile pluglib-bindings/swig/blocxx/Makefile pluglib-bindings/swig/generic/Makefile pluglib-bindings/swig/stdc/Makefile pluglib-bindings/swig/stl/Makefile pluglib-bindings/swig/Makefile pluglib-bindings/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -22991,7 +22991,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-perl-bindings $as_me 2.15.1.1, which was
+This file was extended by yast2-perl-bindings $as_me 2.15.3, which was
generated by GNU Autoconf 2.60. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -23044,7 +23044,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-perl-bindings config.status 2.15.1.1
+yast2-perl-bindings config.status 2.15.3
configured by $0, generated by GNU Autoconf 2.60,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
@@ -23163,6 +23163,7 @@
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
"doc/modules/Makefile") CONFIG_FILES="$CONFIG_FILES doc/modules/Makefile" ;;
+ "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
"testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
"pluglib-bindings/stylesheets/Makefile") CONFIG_FILES="$CONFIG_FILES pluglib-bindings/stylesheets/Makefile" ;;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/configure.in new/yast2-perl-bindings-2.15.3/configure.in
--- old/yast2-perl-bindings-2.15.2/configure.in 2007-08-09 09:01:43.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/configure.in 2007-08-15 18:37:03.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-perl-bindings
dnl
-dnl -- This file is generated by y2autoconf 2.15.2 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.15.6 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-perl-bindings, 2.15.1.1, http://bugs.opensuse.org/, yast2-perl-bindings)
+AC_INIT(yast2-perl-bindings, 2.15.3, http://bugs.opensuse.org/, yast2-perl-bindings)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.15.1.1"
+VERSION="2.15.3"
RPMNAME="yast2-perl-bindings"
MAINTAINER="Martin Vidner "
@@ -187,6 +187,7 @@
AC_OUTPUT(src/YaPI.pm)
AC_CONFIG_FILES(Makefile src/Makefile
doc/modules/Makefile
+doc/examples/Makefile
doc/Makefile
testsuite/Makefile
pluglib-bindings/stylesheets/Makefile
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/doc/examples/helloui-old.pl new/yast2-perl-bindings-2.15.3/doc/examples/helloui-old.pl
--- old/yast2-perl-bindings-2.15.2/doc/examples/helloui-old.pl 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-perl-bindings-2.15.3/doc/examples/helloui-old.pl 2007-08-15 17:13:55.000000000 +0200
@@ -0,0 +1,15 @@
+#! /usr/bin/perl -w
+# this was the first example, seen on
+# http://mvidner.blogspot.com/2007/06/yast-user-interface-library-useable.html
+use YaST::YCP qw(:DATA);
+YaST::YCP::Import "UI";
+YaST::YCP::init_ui ($ARGV[0] || "qt");
+
+my $c = Term("VBox",
+ Term("Label", "Now we can call YaST UI from other languages!"),
+ Term("PushButton", "&So What?")
+ );
+
+UI->OpenDialog($c);
+UI->UserInput();
+UI->CloseDialog();
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/doc/examples/helloui.pl new/yast2-perl-bindings-2.15.3/doc/examples/helloui.pl
--- old/yast2-perl-bindings-2.15.2/doc/examples/helloui.pl 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-perl-bindings-2.15.3/doc/examples/helloui.pl 2007-08-14 17:38:08.000000000 +0200
@@ -0,0 +1,15 @@
+#! /usr/bin/perl -w
+use YaST::YCP qw(:DATA :UI);
+YaST::YCP::Import "UI";
+YaST::YCP::init_ui ($ARGV[0] || "qt");
+
+# http://forgeftp.novell.com/yast/doc/SL10.2/tdg/Book-UIReference.html
+
+my $c = VBox(
+ Label("Now we can call YaST UI from other languages!"),
+ PushButton("&So What?")
+ );
+
+UI->OpenDialog($c);
+UI->UserInput();
+UI->CloseDialog();
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/doc/examples/Makefile.am new/yast2-perl-bindings-2.15.3/doc/examples/Makefile.am
--- old/yast2-perl-bindings-2.15.2/doc/examples/Makefile.am 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-perl-bindings-2.15.3/doc/examples/Makefile.am 2007-08-15 17:06:42.000000000 +0200
@@ -0,0 +1,4 @@
+pldir = $(docdir)/examples
+pl_DATA = helloui.pl helloui-old.pl ui.pl
+
+EXTRA_DIST = $(pl_DATA)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/doc/examples/Makefile.in new/yast2-perl-bindings-2.15.3/doc/examples/Makefile.in
--- old/yast2-perl-bindings-2.15.2/doc/examples/Makefile.in 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-perl-bindings-2.15.3/doc/examples/Makefile.in 2007-08-15 18:37:57.000000000 +0200
@@ -0,0 +1,395 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+subdir = doc/examples
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(pldir)"
+plDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(pl_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AGENT_LIBADD = @AGENT_LIBADD@
+ALLOCA = @ALLOCA@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CREATE_PKGCONFIG_FALSE = @CREATE_PKGCONFIG_FALSE@
+CREATE_PKGCONFIG_NOARCH_FALSE = @CREATE_PKGCONFIG_NOARCH_FALSE@
+CREATE_PKGCONFIG_NOARCH_TRUE = @CREATE_PKGCONFIG_NOARCH_TRUE@
+CREATE_PKGCONFIG_TRUE = @CREATE_PKGCONFIG_TRUE@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINTAINER = @MAINTAINER@
+MAKEINFO = @MAKEINFO@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PERL = @PERL@
+PERL_CFLAGS = @PERL_CFLAGS@
+PERL_LDFLAGS = @PERL_LDFLAGS@
+PERL_VENDORARCH = @PERL_VENDORARCH@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+RPMNAME = @RPMNAME@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+STYLESHEET_CSS = @STYLESHEET_CSS@
+STYLESHEET_HTML = @STYLESHEET_HTML@
+STYLESHEET_PDF = @STYLESHEET_PDF@
+STYLESHEET_YCPDOC = @STYLESHEET_YCPDOC@
+STYLESHEET_YDOC = @STYLESHEET_YDOC@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+Y2DEVTOOLS_PREFIX = @Y2DEVTOOLS_PREFIX@
+YDOXYGEN = @YDOXYGEN@
+ZYPP_CFLAGS = @ZYPP_CFLAGS@
+ZYPP_LIBS = @ZYPP_LIBS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+agentdir = @agentdir@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+clientdir = @clientdir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+desktopdir = @desktopdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+execcompdir = @execcompdir@
+fillupdir = @fillupdir@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+imagedir = @imagedir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgconfigdatadir = @pkgconfigdatadir@
+pkgconfigdir = @pkgconfigdir@
+plugindir = @plugindir@
+potdir = @potdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+schemadir = @schemadir@
+scrconfdir = @scrconfdir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+themedir = @themedir@
+yast2dir = @yast2dir@
+yast2dir4perl = @yast2dir4perl@
+ybindir = @ybindir@
+ydatadir = @ydatadir@
+yncludedir = @yncludedir@
+ystartupdir = @ystartupdir@
+pldir = $(docdir)/examples
+pl_DATA = helloui.pl helloui-old.pl ui.pl
+EXTRA_DIST = $(pl_DATA)
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/examples/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu doc/examples/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+install-plDATA: $(pl_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(pldir)" || $(mkdir_p) "$(DESTDIR)$(pldir)"
+ @list='$(pl_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(plDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pldir)/$$f'"; \
+ $(plDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pldir)/$$f"; \
+ done
+
+uninstall-plDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pl_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(pldir)/$$f'"; \
+ rm -f "$(DESTDIR)$(pldir)/$$f"; \
+ done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(pldir)"; do \
+ test -z "$$dir" || $(mkdir_p) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-plDATA
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-plDATA
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ distclean distclean-generic distclean-libtool distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-exec install-exec-am \
+ install-info install-info-am install-man install-plDATA \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ uninstall uninstall-am uninstall-info-am uninstall-plDATA
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/doc/examples/ui.pl new/yast2-perl-bindings-2.15.3/doc/examples/ui.pl
--- old/yast2-perl-bindings-2.15.2/doc/examples/ui.pl 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-perl-bindings-2.15.3/doc/examples/ui.pl 2007-08-15 16:07:11.000000000 +0200
@@ -0,0 +1,66 @@
+#! /usr/bin/perl -w
+# Ported core/libyui/doc/examples/Label3.ycp
+# - remove backticks:
+# -- use helper functions instead of YCP terms
+# -- use strings instead of YCP symbols (except in Value)
+
+use YaST::YCP qw(:DATA :UI);
+YaST::YCP::Import "UI";
+YaST::YCP::init_ui ($ARGV[0] || "qt");
+
+# Build dialog with one label, 4 Beatles buttons and an OK button.
+UI->OpenDialog(
+ VBox(
+ Label("Select your favourite Beatle:"),
+ Label(id("beatle"), opt("outputField"), " "),
+ HBox(
+ PushButton(id("john"), "&John"),
+ PushButton(id("paul"), "&Paul"),
+ PushButton(id("george"), "&George"),
+ PushButton(id("ringo"), "&Ringo")),
+ PushButton(id("ok"), "&OK")
+ )
+ );
+
+# Wait for user input.
+my $button;
+# Input loop that only the OK button will leave.
+# The 4 Beatles buttons will just propose a name.
+do {
+ # UserInput gives us the id, which is a YaST::YCP::Symbol
+ $button = UI->UserInput()->value();
+
+ if ( $button eq "john" ) { UI->ChangeWidget(id("beatle"), Symbol("Value"), "John Lennon"); }
+ elsif ( $button eq "paul" ) { UI->ChangeWidget(id("beatle"), Symbol("Value"), "Paul McCartney"); }
+ elsif ( $button eq "george" ) { UI->ChangeWidget(id("beatle"), Symbol("Value"), "George Harrison"); }
+ elsif ( $button eq "ringo" ) { UI->ChangeWidget(id("beatle"), Symbol("Value"), "Ringo Starr" ); }
+
+ # Recalculate the layout - this is necessary since the label widget
+ # doesn't recompute its size upon changing its value.
+ UI->RecalcLayout();
+
+} until ( $button eq "ok" );
+
+
+# Retrieve the label's value.
+# Perl note: Symbol is necessary for now
+my $name = UI->QueryWidget(id("beatle"), Symbol("Value"));
+
+# Close the dialog.
+# Remember to read values from the dialog's widgets BEFORE closing it!
+UI->CloseDialog();
+
+# Pop up a new dialog to echo the input.
+UI->OpenDialog(
+ VBox(
+ VSpacing(),
+ HBox(
+ Label("You selected:"),
+ Label(opt("outputField"), $name),
+ HSpacing()
+ ),
+ PushButton(opt("default"), "&OK")
+ )
+ );
+UI->UserInput();
+UI->CloseDialog();
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/doc/Makefile.am new/yast2-perl-bindings-2.15.3/doc/Makefile.am
--- old/yast2-perl-bindings-2.15.2/doc/Makefile.am 2006-10-13 15:10:03.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/doc/Makefile.am 2007-08-15 17:05:52.000000000 +0200
@@ -2,9 +2,7 @@
# Makefile.am for perl-bindings/doc
#
-# see examples/Makefile.am for why it is disabled
-#UBDIRS = examples
-SUBDIRS = modules
+SUBDIRS = modules examples
htmldir = $(docdir)
txtdir = $(docdir)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/doc/Makefile.in new/yast2-perl-bindings-2.15.3/doc/Makefile.in
--- old/yast2-perl-bindings-2.15.2/doc/Makefile.in 2007-08-09 09:02:17.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/doc/Makefile.in 2007-08-15 18:37:56.000000000 +0200
@@ -223,10 +223,7 @@
ydatadir = @ydatadir@
yncludedir = @yncludedir@
ystartupdir = @ystartupdir@
-
-# see examples/Makefile.am for why it is disabled
-#UBDIRS = examples
-SUBDIRS = modules
+SUBDIRS = modules examples
txtdir = $(docdir)
ycpdir = $(docdir)
html_DATA = YaST__YCP.html YaPI.html
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/Makefile.am new/yast2-perl-bindings-2.15.3/Makefile.am
--- old/yast2-perl-bindings-2.15.2/Makefile.am 2007-08-09 09:01:43.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/Makefile.am 2007-08-15 18:37:03.000000000 +0200
@@ -210,8 +210,7 @@
# For po/ modules
checkpo:
- test ! -d $(srcdir)/po || $(MAKE) -C po checkpo
-# test ! -d $(srcdir)/po \
-# || { $(MAKE) -C po checkpo && $(MAKE) -C po make-pox; }
+ test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo
+# test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo make-pox
# Contents of ./SUBDIRS
SUBDIRS = src doc testsuite pluglib-bindings
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/Makefile.in new/yast2-perl-bindings-2.15.3/Makefile.in
--- old/yast2-perl-bindings-2.15.2/Makefile.in 2007-08-09 09:02:22.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/Makefile.in 2007-08-15 18:38:02.000000000 +0200
@@ -275,8 +275,7 @@
@CREATE_PKGCONFIG_NOARCH_TRUE@@CREATE_PKGCONFIG_TRUE@pkgconfigdata_DATA = $(RPMNAME).pc
@CREATE_PKGCONFIG_NOARCH_FALSE@@CREATE_PKGCONFIG_TRUE@pkgconfig_DATA = $(RPMNAME).pc
TAGVERSION = $(Y2TOOL) tagversion
-# test ! -d $(srcdir)/po \
-# || { $(MAKE) -C po checkpo && $(MAKE) -C po make-pox; }
+# test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo make-pox
# Contents of ./SUBDIRS
SUBDIRS = src doc testsuite pluglib-bindings
all: config.h
@@ -912,7 +911,7 @@
# For po/ modules
checkpo:
- test ! -d $(srcdir)/po || $(MAKE) -C po checkpo
+ test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/src/YCP.pm new/yast2-perl-bindings-2.15.3/src/YCP.pm
--- old/yast2-perl-bindings-2.15.2/src/YCP.pm 2006-10-13 15:12:51.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/src/YCP.pm 2007-08-15 18:36:56.000000000 +0200
@@ -1,6 +1,6 @@
#! /usr/bin/perl -w
# Martin Vidner
-# $Id: YCP.pm 33405 2006-10-13 13:12:42Z mvidner $
+# $Id: YCP.pm 40303 2007-08-15 16:36:55Z mvidner $
=head1 NAME
@@ -122,8 +122,20 @@
our @ISA = qw(Exporter);
my @e_data = qw(Boolean Byteblock Integer Float String Symbol Term);
my @e_logging = qw(y2debug y2milestone y2warning y2error y2security y2internal);
-our @EXPORT_OK = (@e_data, @e_logging, "sformat");
-our %EXPORT_TAGS = ( DATA => [@e_data], LOGGING => [@e_logging] );
+my @e_ui = qw(BarGraph Bottom CheckBox ColoredLabel ComboBox Date
+DownloadProgress DumbTab DummySpecialWidget Empty Frame HBox HCenter
+HMultiProgressMeter HSpacing HSquash HStretch HVCenter HVSquash
+HVStretch HWeight Heading IconButton Image IntField Label Left LogView
+MarginBox MenuButton MinHeight MinSize MinWidth MultiLineEdit
+MultiSelectionBox PackageSelector PatternSelector PartitionSplitter
+Password PkgSpecial ProgressBar PushButton RadioButton
+RadioButtonGroup ReplacePoint RichText Right SelectionBox Slider Table
+TextEntry Time Top Tree VBox VCenter VMultiProgressMeter VSpacing
+VSquash VStretch VWeight Wizard
+id opt
+);
+our @EXPORT_OK = (@e_data, @e_logging, @e_ui, "sformat");
+our %EXPORT_TAGS = ( DATA => [@e_data], LOGGING => [@e_logging], UI => [@e_ui] );
=head2 debug
@@ -291,6 +303,90 @@
return new YaST::YCP::Term (@_);
}
+# shortcuts for UI terms
+
+sub termize
+{
+ (undef, undef, undef, my $name) = caller(1);
+ return Term (substr ($name, 11), @_); # skip "YaST::YCP::"
+}
+
+# make symbols out of plain scalars(strings)
+sub symbolize
+{
+ return map { ref($_)? $_ : Symbol($_) } @_;
+}
+
+sub BarGraph (@) {return termize(@_);}
+sub Bottom (@) {return termize(@_);}
+sub CheckBox (@) {return termize(@_);}
+sub ColoredLabel (@) {return termize(@_);}
+sub ComboBox (@) {return termize(@_);}
+sub Date (@) {return termize(@_);}
+sub DownloadProgress (@) {return termize(@_);}
+sub DumbTab (@) {return termize(@_);}
+sub DummySpecialWidget (@) {return termize(@_);}
+sub Empty (@) {return termize(@_);}
+sub Frame (@) {return termize(@_);}
+sub HBox (@) {return termize(@_);}
+sub HCenter (@) {return termize(@_);}
+sub HMultiProgressMeter (@) {return termize(@_);}
+sub HSpacing (@) {return termize(@_);}
+sub HSquash (@) {return termize(@_);}
+sub HStretch (@) {return termize(@_);}
+sub HVCenter (@) {return termize(@_);}
+sub HVSquash (@) {return termize(@_);}
+sub HVStretch (@) {return termize(@_);}
+sub HWeight (@) {return termize(@_);}
+sub Heading (@) {return termize(@_);}
+sub IconButton (@) {return termize(@_);}
+sub Image (@) {return termize(@_);}
+sub IntField (@) {return termize(@_);}
+sub Label (@) {return termize(@_);}
+sub Left (@) {return termize(@_);}
+sub LogView (@) {return termize(@_);}
+sub MarginBox (@) {return termize(@_);}
+sub MenuButton (@) {return termize(@_);}
+sub MinHeight (@) {return termize(@_);}
+sub MinSize (@) {return termize(@_);}
+sub MinWidth (@) {return termize(@_);}
+sub MultiLineEdit (@) {return termize(@_);}
+sub MultiSelectionBox (@) {return termize(@_);}
+sub PackageSelector (@) {return termize(@_);}
+sub PatternSelector (@) {return termize(@_);}
+sub PartitionSplitter (@) {return termize(@_);}
+sub Password (@) {return termize(@_);}
+sub PkgSpecial (@) {return termize(@_);}
+sub ProgressBar (@) {return termize(@_);}
+sub PushButton (@) {return termize(@_);}
+sub RadioButton (@) {return termize(@_);}
+sub RadioButtonGroup (@) {return termize(@_);}
+sub ReplacePoint (@) {return termize(@_);}
+sub RichText (@) {return termize(@_);}
+sub Right (@) {return termize(@_);}
+sub SelectionBox (@) {return termize(@_);}
+sub Slider (@) {return termize(@_);}
+sub Table (@) {return termize(@_);}
+sub TextEntry (@) {return termize(@_);}
+sub Time (@) {return termize(@_);}
+sub Top (@) {return termize(@_);}
+sub Tree (@) {return termize(@_);}
+sub VBox (@) {return termize(@_);}
+sub VCenter (@) {return termize(@_);}
+sub VMultiProgressMeter (@) {return termize(@_);}
+sub VSpacing (@) {return termize(@_);}
+sub VSquash (@) {return termize(@_);}
+sub VStretch (@) {return termize(@_);}
+sub VWeight (@) {return termize(@_);}
+sub Wizard (@) {return termize(@_);}
+
+# make symbols from scalar arguments
+# so that id("ok") does the same as YCP `id(`ok)
+# and opt("notify", "immediate") the asme as YCP `opt(`notify, `immediate)
+sub id (@) {return termize(symbolize(@_));}
+sub opt (@) {return termize(symbolize(@_));}
+
+
# by defining AUTOLOAD in a separate package, undefined functions in
# the main one will be detected
package YaST::YCP::Autoload;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.15.2/VERSION new/yast2-perl-bindings-2.15.3/VERSION
--- old/yast2-perl-bindings-2.15.2/VERSION 2007-08-10 18:10:11.000000000 +0200
+++ new/yast2-perl-bindings-2.15.3/VERSION 2007-08-15 18:36:07.000000000 +0200
@@ -1 +1 @@
-2.15.2
+2.15.3
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org