Re: [Gimp-developer] How to build a distribution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6 Oct 2002, Sven Neumann wrote:

> Hi,
>
> Shlomi Fish <shlomif@xxxxxxxxxxxxxxxxxxxxxxx> writes:
>
> > Apparently, "make dist" does not include the files under the
> > plug-ins/perl directory (except for the po files). (I'm talking
> > about gimp 1.2.3).
>
> no, unfortunately the gimp-perl build is pretty hackish and
> non-standard. The fact that 'make dist' doesn't work because of
> gimp-perl was one of the major reasons to disable gimp-perl in
> the HEAD branch. It won't be reenabled until this is fixed.
>

The reason I asked was because I had to pull a similar stunt for a game
I'm working on ( "I, Bex!"). What I eventually did was override the
distdir target in Makefile.PL:

#####################
use strict;

require ExtUtils::MakeMaker;
import ExtUtils::MakeMaker;

open I, "<../ver.txt";
my $version = <I>;
chomp($version);
close(I);

# It's a kludge, but it works.
sub MY::dist_dir
{
    my $self = shift;
    package MY;
    my $inherited = $self->SUPER::dist_dir(@_);
    $inherited =~ s/\$\(DISTVNAME\)/\$(distdir)/g;
    return $inherited;
}

WriteMakefile(
    'NAME' => 'Shlomif::Games::IBex',
    'DISTNAME' => 'IBex',
    'VERSION' => $version,
    'dist' =>
        {
            'PREOP'       => 'chmod -R u=rwX,go=rX . ;',
            'COMPRESS'    => 'gzip -9v',
            'SUFFIX'      => '.gz',
        },
    );


#####################

Hope it helps.

Regards,

	Shlomi Fish

> > What should I do to build a distribution, instead?
>
> do as Yosh and me do and add the perl stuff by hand. Or just use a
> released tarball.
>
>
> Salut, Sven
>



----------------------------------------------------------------------
Shlomi Fish        shlomif@xxxxxxxxxxxxxxxxx
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       shlomif@xxxxxxxxxxx

"Let's suppose you have a table with 2^n cups..."
"Wait a second - is n a natural number?"



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux