Index: Glade/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Glade/Makefile.PL,v retrieving revision 1.18 diff -u -r1.18 Makefile.PL --- Glade/Makefile.PL 30 Mar 2004 04:56:47 -0000 1.18 +++ Glade/Makefile.PL 18 Nov 2004 03:12:23 -0000 @@ -75,6 +75,6 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } - Index: Glib/MakeHelper.pm =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/MakeHelper.pm,v retrieving revision 1.33 diff -u -r1.33 MakeHelper.pm --- Glib/MakeHelper.pm 19 Sep 2004 21:34:55 -0000 1.33 +++ Glib/MakeHelper.pm 18 Nov 2004 03:12:24 -0000 @@ -4,7 +4,7 @@ package Glib::MakeHelper; -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 NAME @@ -494,6 +494,32 @@ "; } +sub postamble_installs +{ + shift; # package name + + # this installation stuff doesn't make sense on windows, where + # we don't really have a /usr. also, nmake barfs on $+. + return '' if ($^O eq 'MSWin32'); + + my $text = ''; + foreach (@_) + { + $text .= " +# the tmp-$_ stuff is just so that only the pl files get installed +# the README isn't always there, but it doesn't seem to hurt +install-$_: $_ + \ \$(MKPATH) tmp-\$+/ + \ \$(CP) \$+/*.* README tmp-\$+/ + \ \$(MOD_INSTALL) ./tmp-\$+/ \\ + \$(PREFIX)/share/doc/perl-\$(DISTNAME)/\$+ + \ \$(RM_RF) tmp-\$+/ +"; + } + + return $text; +} + package MY; =back Index: Gnome2/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2/Makefile.PL,v retrieving revision 1.38 diff -u -r1.38 Makefile.PL --- Gnome2/Makefile.PL 23 Aug 2004 19:09:38 -0000 1.38 +++ Gnome2/Makefile.PL 18 Nov 2004 03:12:24 -0000 @@ -134,7 +134,8 @@ 'PERL_GNOME_CANVAS' => $build_reqs{'perl-Gnome2-Canvas'}, 'PERL_GNOME_VFS' => $build_reqs{'perl-Gnome2-VFS'}, ) - . " + . Glib::MakeHelper->postamble_installs (qw/examples/) + . " \$(INST_LIB)/\$(FULLEXT)/enums.pod : \$(BLIB_DONE) maps podifyenums.pl \$(PERLRUNINST) -M\$(NAME) podifyenums.pl \$(NAME) maps > \$@ "; Index: Gnome2-Dia/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Dia/Makefile.PL,v retrieving revision 1.1 diff -u -r1.1 Makefile.PL --- Gnome2-Dia/Makefile.PL 14 Sep 2004 17:54:16 -0000 1.1 +++ Gnome2-Dia/Makefile.PL 18 Nov 2004 03:12:24 -0000 @@ -87,5 +87,6 @@ . Glib::MakeHelper->postamble_docs_full ( DEPENDS => $diacanvas, COPYRIGHT_FROM => 'copyright.pod', - DOCTYPES => 'diacanvas.doctypes'); + DOCTYPES => 'diacanvas.doctypes') + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: Gnome2-GConf/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-GConf/Makefile.PL,v retrieving revision 1.13 diff -u -r1.13 Makefile.PL --- Gnome2-GConf/Makefile.PL 9 Apr 2004 01:44:34 -0000 1.13 +++ Gnome2-GConf/Makefile.PL 18 Nov 2004 03:12:24 -0000 @@ -108,5 +108,6 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: Gnome2-PanelApplet/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-PanelApplet/Makefile.PL,v retrieving revision 1.1 diff -u -r1.1 Makefile.PL --- Gnome2-PanelApplet/Makefile.PL 30 Jan 2004 21:15:48 -0000 1.1 +++ Gnome2-PanelApplet/Makefile.PL 18 Nov 2004 03:12:24 -0000 @@ -141,6 +141,8 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } + package MAIN; Index: Gnome2-VFS/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-VFS/Makefile.PL,v retrieving revision 1.24 diff -u -r1.24 Makefile.PL --- Gnome2-VFS/Makefile.PL 15 Aug 2004 22:05:02 -0000 1.24 +++ Gnome2-VFS/Makefile.PL 18 Nov 2004 03:12:25 -0000 @@ -153,5 +153,6 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: GnomePrint2/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/GnomePrint2/Makefile.PL,v retrieving revision 1.28 diff -u -r1.28 Makefile.PL --- GnomePrint2/Makefile.PL 4 Jul 2004 20:38:32 -0000 1.28 +++ GnomePrint2/Makefile.PL 18 Nov 2004 03:12:25 -0000 @@ -108,5 +108,6 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: Gtk2/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/Makefile.PL,v retrieving revision 1.95 diff -u -r1.95 Makefile.PL --- Gtk2/Makefile.PL 1 Nov 2004 20:41:14 -0000 1.95 +++ Gtk2/Makefile.PL 18 Nov 2004 03:12:25 -0000 @@ -261,6 +261,7 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, ) + . Glib::MakeHelper->postamble_installs (qw/examples gtk-demo/) . " # rebuild the makefile if the file lists change Makefile : ".join(" ", @xs_lists)." @@ -274,21 +275,6 @@ build/FAQ.pod: tools/fetch_faq.pl $^X \$< "; - - # this installation stuff doesn't make sense on windows, where - # we don't really have a /usr. also, nmake barfs on $+. - unless ($^O eq 'MSWin32') { - $text .= " -# the tmp-xxx stuff is just so that only the pl files get installed -install-\%: % - \ \$(MKPATH) tmp-\$+/ - \ \$(CP) \$+/*.* tmp-\$+/ - \ \$(MOD_INSTALL) ./tmp-\$+/ \\ - \$(PREFIX)/share/doc/perl-\$(DISTNAME)/\$+ - \ \$(RM_RF) tmp-\$+/ -"; - } - return $text; } Index: Gtk2-GLExt/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2-GLExt/Makefile.PL,v retrieving revision 1.7 diff -u -r1.7 Makefile.PL --- Gtk2-GLExt/Makefile.PL 29 Oct 2004 00:18:43 -0000 1.7 +++ Gtk2-GLExt/Makefile.PL 18 Nov 2004 03:12:25 -0000 @@ -92,5 +92,6 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: Gtk2-Html2/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2-Html2/Makefile.PL,v retrieving revision 1.5 diff -u -r1.5 Makefile.PL --- Gtk2-Html2/Makefile.PL 7 May 2004 02:51:58 -0000 1.5 +++ Gtk2-Html2/Makefile.PL 18 Nov 2004 03:12:25 -0000 @@ -95,5 +95,6 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: Gtk2-MozEmbed/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2-MozEmbed/Makefile.PL,v retrieving revision 1.4 diff -u -r1.4 Makefile.PL --- Gtk2-MozEmbed/Makefile.PL 27 Aug 2004 21:02:13 -0000 1.4 +++ Gtk2-MozEmbed/Makefile.PL 18 Nov 2004 03:12:25 -0000 @@ -81,5 +81,6 @@ return Glib::MakeHelper->postamble_clean () . Glib::MakeHelper->postamble_docs_full ( DEPENDS => $mozembed, - COPYRIGHT_FROM => 'copyright.pod'); + COPYRIGHT_FROM => 'copyright.pod') + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: Gtk2-SourceView/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2-SourceView/Makefile.PL,v retrieving revision 1.2 diff -u -r1.2 Makefile.PL --- Gtk2-SourceView/Makefile.PL 14 Mar 2004 23:02:26 -0000 1.2 +++ Gtk2-SourceView/Makefile.PL 18 Nov 2004 03:12:26 -0000 @@ -103,5 +103,6 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } Index: Gtk2-TrayIcon/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2-TrayIcon/Makefile.PL,v retrieving revision 1.5 diff -u -r1.5 Makefile.PL --- Gtk2-TrayIcon/Makefile.PL 26 Feb 2004 22:38:15 -0000 1.5 +++ Gtk2-TrayIcon/Makefile.PL 18 Nov 2004 03:12:26 -0000 @@ -85,7 +85,8 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } package MAIN; # gcc -I. `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -DEGG_COMPILATION -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -g -O2 -Wall --shared eggtrayicon.c -o eggtrayicon.o Index: Gtk2-TrayManager/Makefile.PL =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2-TrayManager/Makefile.PL,v retrieving revision 1.2 diff -u -r1.2 Makefile.PL --- Gtk2-TrayManager/Makefile.PL 13 Sep 2004 21:20:41 -0000 1.2 +++ Gtk2-TrayManager/Makefile.PL 18 Nov 2004 03:12:26 -0000 @@ -102,6 +102,7 @@ $build_reqs{'perl-ExtUtils-PkgConfig'}, 'PERL_GLIB' => $build_reqs{'perl-Glib'}, 'PERL_GTK' => $build_reqs{'perl-Gtk2'}, - ); + ) + . Glib::MakeHelper->postamble_installs (qw/examples/); } package MAIN;