see plug-ins/perl/Changes

This commit is contained in:
Marc Lehmann 1999-01-30 22:00:35 +00:00
parent 90fb8d336f
commit f9a2979b1a
6 changed files with 38 additions and 22 deletions

View File

@ -2,8 +2,11 @@ Revision history for Gimp-Perl extension.
- moved the xlfd_size function from Gimp::Fu into Gimp - moved the xlfd_size function from Gimp::Fu into Gimp
(and maybe later into Gimp::Util?) (and maybe later into Gimp::Util?)
- Functions in Gimp::Util are now treated in the same way - functions in Gimp::Util are now treated in the same way
as PDB functions (when the module is loaded) as PDB functions (when the module is loaded)
- improved handling of "make clean" to make it less perl-ish
and more gnu-ish
- enabled full testsuite (keep your fingers crossed)
1.051 Tue Jan 19 21:10:20 CET 1999 1.051 Tue Jan 19 21:10:20 CET 1999
- corrected a minor typoe found by Stefan Traby <stefan@sime.com> - corrected a minor typoe found by Stefan Traby <stefan@sime.com>

View File

@ -15,6 +15,13 @@ sub MY::const_loadlibs {
$self->SUPER::const_loadlibs(@_); $self->SUPER::const_loadlibs(@_);
} }
sub MY::postamble {
<<"EOF";
clean ::
test -f Makefile || mv -f Makefile.old Makefile
EOF
}
WriteMakefile( WriteMakefile(
'NAME' => 'Gimp::Lib', 'NAME' => 'Gimp::Lib',
'VERSION_FROM' => '../Gimp.pm', 'VERSION_FROM' => '../Gimp.pm',

View File

@ -22,6 +22,7 @@ etc/configure.in
etc/aclocal.m4 etc/aclocal.m4
etc/config.h.in etc/config.h.in
etc/config.pl.in etc/config.pl.in
etc/configure.frag
Gimp/Makefile.PL Gimp/Makefile.PL
Gimp/Lib.xs Gimp/Lib.xs
Gimp/Lib.pm Gimp/Lib.pm

View File

@ -25,9 +25,9 @@ gimp-1.1 ;)
If you decide to run these tests (please!), I'd be glad to hear If you decide to run these tests (please!), I'd be glad to hear
success stories (and of course any bug-reports ;) success stories (and of course any bug-reports ;)
Do you want me to make these tests [n]? "; Do you want me to make these tests [y]? ";
$EXTENSIVE_TESTS = (<STDIN> =~ /^[yYjJ]/) ? 1 : 0; $EXTENSIVE_TESTS = (<STDIN> !~ /^[nN]/) ? 1 : 0;
} }
print "\n"; print "\n";
@ -41,7 +41,6 @@ Do you want me to make these tests [n]? ";
$ENV{IN_GIMP}=0; $ENV{IN_GIMP}=0;
exit system("./etc/configure",@ARGV)>>8; exit system("./etc/configure",@ARGV)>>8;
} else { } else {
shift @ARGV;
do './config.pl'; do './config.pl';
} }
@ -53,19 +52,19 @@ $] >= 5.005 or print <<EOF;
WARNING: you are using a version of perl older than 5.005. While this WARNING: you are using a version of perl older than 5.005. While this
extension should run on older versions (and I try to keep source extension should run on older versions (and I try to keep source
compatibility), some people get spurious errors that go away after compatibility), some people get spurious errors that go away
upgrading to 5.005. Since 5.005 is much better and has many many after upgrading to 5.005. Since 5.005 is much better and has many
bugs fixed, an upgrade wpuld come in handy... many bugs fixed, an upgrade wpuld come in handy...
EOF EOF
$GTK or print <<EOF; $GTK or print <<EOF;
WARNING: unable to use the Perl-Gtk interface. Some features (like WARNING: unable to use the Perl-Gtk interface. Some features (like
Gimp::Fu) rely on this extension. You can try to build without it, Gimp::Fu) rely on this extension. You can try to build without
but it's better to install it (version 0.3 or higher is required, it, but it's better to install it (version 0.3 or higher is
you can get it from ftp://ftp.gimp.org/pub/gtk/perl/ or any required, you can get it from ftp://ftp.gimp.org/pub/gtk/perl/ or
CPAN mirror. any CPAN mirror.
EOF EOF
@ -74,8 +73,9 @@ $PDL or print <<EOF;
WARNING: unable to use PDL (the perl data language). This means that WARNING: unable to use PDL (the perl data language). This means that
Gimp::PDL is non-functional. Unless you plan to use Tile/PixelRgn Gimp::PDL is non-functional. Unless you plan to use Tile/PixelRgn
functions together with PDL, this is harmless. Gimp::PDL will be functions together with PDL, this is harmless. Gimp::PDL will be
installed, just in case you later install PDL. You can get PDL installed, just in case you later install PDL. The plug-ins using
from any CPAN mirror. PDL, however, will NOT BE INSTALLED. You can get PDL from any CPAN
mirror.
EOF EOF
@ -104,8 +104,8 @@ unless ($major > 0
|| ($major == 0 && $minor == 3 && $patch >= -1)) { || ($major == 0 && $minor == 3 && $patch >= -1)) {
print <<EOF; print <<EOF;
WARNING: version 0.3 of Gtk is _required_ for this module to build WARNING: version 0.3 of Gtk is _required_ for this module to
properly. You can get the newest version from build properly. You can get the newest version from
ftp://ftp.gimp.org/pub/gtk/perl/ or any CPAN mirror. Older ftp://ftp.gimp.org/pub/gtk/perl/ or any CPAN mirror. Older
versions may work, but I have warned you! versions may work, but I have warned you!
@ -116,11 +116,14 @@ sub MY::postamble {
(my $GIMPTOOL2 = $GIMPTOOL) =~ s/^\.\./..\/../; (my $GIMPTOOL2 = $GIMPTOOL) =~ s/^\.\./..\/../;
<<"EOF"; <<"EOF";
objclean :: clean
maintainer-clean :: realclean maintainer-clean :: realclean
objclean :: realclean
distclean :: realclean distclean :: realclean
check :: test check :: test
clean ::
test -f Makefile || mv -f Makefile.old Makefile
install :: install-plugins install :: install-plugins
install-plugins: install-plugins:
@ -131,14 +134,12 @@ install-plugins:
-cd examples && $GIMPTOOL2 --install-admin-bin PDB -cd examples && $GIMPTOOL2 --install-admin-bin PDB
-cd examples && $GIMPTOOL2 --install-admin-bin alpha2color.pl -cd examples && $GIMPTOOL2 --install-admin-bin alpha2color.pl
-cd examples && $GIMPTOOL2 --install-admin-bin tex-to-float -cd examples && $GIMPTOOL2 --install-admin-bin tex-to-float
-cd examples && $GIMPTOOL2 --install-admin-bin ditherize -cd examples && $GIMPTOOL2 --install-admin-bin ditherize.pl
-cd examples && $GIMPTOOL2 --install-admin-bin border.pl -cd examples && $GIMPTOOL2 --install-admin-bin border.pl
-cd examples && $GIMPTOOL2 --install-admin-bin view3d.pl -cd examples && $GIMPTOOL2 --install-admin-bin view3d.pl
EOF EOF
} }
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile( WriteMakefile(
'dist' => { 'dist' => {
'PREOP' => 'chmod -R u=rwX,go=rX . ;', 'PREOP' => 'chmod -R u=rwX,go=rX . ;',
@ -166,14 +167,14 @@ WriteMakefile(
'INC' => "$CPPFLAGS $CFLAGS $GIMP_INC_NOUI $DEFS", 'INC' => "$CPPFLAGS $CFLAGS $GIMP_INC_NOUI $DEFS",
'DEFINE' => ($IN_GIMP ? " -DIN_GIMP" : ""), 'DEFINE' => ($IN_GIMP ? " -DIN_GIMP" : ""),
'realclean' => { FILES => "config.status config.cache config.log config.pl config.h" }, 'realclean' => { FILES => "config.status config.cache config.log config.pl config.h" },
'clean' => { FILES => "Makefile.old config.pl" }, 'clean' => { FILES => "Makefile.old stamp-h" },
); );
$IN_GIMP or print <<EOF; $IN_GIMP or print <<EOF;
Hopefully, Gimp is now correctly configured. you can now enter "make", "make Hopefully, Gimp is now correctly configured. you can now enter "make",
test" and "make install". "make test" and "make install".
EOF EOF

View File

@ -10,6 +10,8 @@ make test TEST_VERBOSE=1
bugs bugs
* auto-edit shebang
* only install plug-ins that really work
[DONE] * gimptool 1.0 doesn't support -n or --noui [DONE] * gimptool 1.0 doesn't support -n or --noui
* perl_fu_webify in homepage-logo.pl * perl_fu_webify in homepage-logo.pl
[????] * save_image should be called for non-null return values [????] * save_image should be called for non-null return values

View File

@ -27,3 +27,5 @@ AC_SUBST(GIMP)
AC_SUBST(GIMPTOOL) AC_SUBST(GIMPTOOL)
AC_SUBST(GIMP_CFLAGS) AC_SUBST(GIMP_CFLAGS)
AC_SUBST(GIMP_LIBS) AC_SUBST(GIMP_LIBS)