develooper Front page | perl.p5ee | Postings from November 2001

Re: P5EEX: organizing the prototyping namespace

Thread Previous | Thread Next
From:
Stephen Adkins
Date:
November 9, 2001 17:17
Subject:
Re: P5EEX: organizing the prototyping namespace
Message ID:
3.0.6.32.20011109202428.008ce810@pop3.norton.antivirus
At 10:37 AM 11/10/2001 +1100, brian moseley wrote:
>On Fri, 9 Nov 2001, Gerald Richter wrote:
>
>> Maybe not so important, but I would like to name it
>> P5EEx::, because it shows that the 'x' is an qualifier
>> or attribute (not sure if this is the best english word)
>> of P5EE
>
>+1
>

Hi,

In the tradition of DBIx, P5EEx it is!

Stephen

P.S. Steve Pitchford suggested that I open up the prototype naming
     convention to include anything... colors, vegetables, animals, etc.

  "Whilst I whole heartedly agree with you on the reasons behind choosing
   colours, how would you feel about allowing any name..."

     I am inclined to say no.  I think I would much rather see a CVS
     archive with

        P5EE
        P5EEx-Red
        P5EEx-Green
        P5EEx-Blue
        P5EEx-Black
        P5EEx-White
        P5EEx-Orange
        P5EEx-Magenta

     than

        P5EE
        P5EEx-Red
        P5EEx-Christmas
        P5EEx-Horse
        P5EEx-Zucchini

     So if several people weigh in and support freedom of naming, I'll 
     open it up.  Otherwise, Steve, please pick a color/colour name.

P.P.S. Chris (Winters), do you want an area for prototyping?
     I'd like to see stuff from OpenInteract make it into P5EE
     in a big way. What color do you want?

P.P.P.S Gunther, do you want an area for prototyping?
     I'd like to see stuff from the Extropia toolkit make it into
     P5EE as well. What color do you want?

P.P.P.P.S. Others? What colors do you want?
     Greg McCarroll?
     Matt Sergeant?
     Gerald Richter?
     (It is perfectly fine to wait and team up with someone in their
     sandbox if you'd like.)

So far,    P5EEx::Blue    Stephen Adkins
           P5EEx::Black   Brian Moseley

My directory structure is beginning to look like this.

P5EEx-Blue
P5EEx-Blue/CHANGES
P5EEx-Blue/MANIFEST
P5EEx-Blue/examples
P5EEx-Blue/Makefile.PL
P5EEx-Blue/README
P5EEx-Blue/t
P5EEx-Blue/t/Config.t
P5EEx-Blue/bin
P5EEx-Blue/TODO
P5EEx-Blue/htdocs
P5EEx-Blue/cgi-bin
P5EEx-Blue/Makefile
P5EEx-Blue/P5EEx
P5EEx-Blue/P5EEx/Blue.pm
P5EEx-Blue/P5EEx/Blue
P5EEx-Blue/P5EEx/Blue/styleguide.pod
P5EEx-Blue/P5EEx/Blue/design.pod
P5EEx-Blue/P5EEx/Blue/Context.pm
P5EEx-Blue/P5EEx/Blue/Context
P5EEx-Blue/P5EEx/Blue/Context/CGI.pm
P5EEx-Blue/P5EEx/Blue/Config.pm
P5EEx-Blue/P5EEx/Blue/Config
P5EEx-Blue/P5EEx/Blue/Config/XML.pm
P5EEx-Blue/P5EEx/Blue/Utils
P5EEx-Blue/P5EEx/Blue/Utils/Date.pm
P5EEx-Blue/P5EEx/Blue/Utils/HTML.pm

and my Makefile.PL looks like this.
If anyone has any improvements to suggest, please let me know.

######################################################################
## File: $Id: Makefile.PL,v 1.1.1.1 2001/09/20 17:41:31 spadkins Exp $
######################################################################

use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

%opts = (
    'INSTALLDIRS' => 'perl',
    'NAME'        => 'P5EEx-Blue',
    'DISTNAME'    => 'P5EEx-Blue',
    'VERSION'     => '0.01',
    'PMLIBDIRS'   => [ 'P5EEx', ],
    'linkext'     => { LINKTYPE=>'' },   # no link needed
    'dist'        => {'COMPRESS'=>'gzip -9f', 'SUFFIX' => 'gz',
                      'ZIP'=>'/usr/bin/zip','ZIPFLAGS'=>'-rl'}
);

######################################################################
# PREFIX
######################################################################

# I like setting the PREFIX variable in the environment,
# so I write my Makefile.PL to use it as a valid alternative
# to specifying it on the command line with
# "perl Makefile.PL PREFIX=/usr/foo".

if ($ENV{PREFIX}) {
    $PREFIX = $ENV{PREFIX};
    $opts{PREFIX} = $PREFIX;
}
else {
    $PREFIX = "/usr/local";
}

######################################################################
# HTML FILES
######################################################################

if ($ENV{HTMLDIR}) {
    $HTMLDIR = $ENV{HTMLDIR};
}
else {
    $HTMLDIR = "$PREFIX/htdocs/api";
}
$opts{'INST_HTMLLIBDIR'} = 'htdocs';        # local build area
$opts{'INSTALLHTMLPRIVLIBDIR'} = "$HTMLDIR/$opts{NAME}";  # install area

######################################################################
# CGI SCRIPTS
######################################################################

if ($ENV{CGIDIR}) {
    $CGIDIR = $ENV{CGIDIR};
}
else {
    $CGIDIR = "$PREFIX/cgi-bin";
}
$opts{'INST_HTMLSCRIPTDIR'} = 'cgi-bin';        # local build area
$opts{'INSTALLHTMLSCRIPTDIR'} = "$CGIDIR/$opts{NAME}";  # install area

######################################################################
# TEMPLATES
######################################################################

if ($ENV{TEMPLATEDIR}) {
    $TEMPLATEDIR = $ENV{TEMPLATEDIR};
}
else {
    $TEMPLATEDIR = "$PREFIX/templates";
}
$opts{'INST_SCRIPT'} = 'templates';        # local build area
$opts{'INSTALLSCRIPT'} = "$TEMPLATEDIR/$opts{NAME}";  # install area

######################################################################
# MAKE THE MAKEFILE
######################################################################

WriteMakefile(%opts);





Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About