File: Makefile.PL

package info (click to toggle)
libgo-perl 0.15-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,108 kB
  • sloc: perl: 13,147; sh: 21; makefile: 7
file content (165 lines) | stat: -rw-r--r-- 5,220 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# $id$

use ExtUtils::MakeMaker;
require 5.6.0;
#use Config;

if (system("which xsltproc > /dev/null")) {
    print <<MSG;

NOTICE: ** You do not have xsltproc **

This tool is not required for go-perl, but it is useful for for
certain kinds of format conversion (eg converting to OWL format). You
will also need this tool if you are installing go-db-perl

You can safely ignore this notification message; Even if you do intend
to use go-db-perl later, you can install xsltproc at a later date

xsltproc is available as part of libxslt. See http://xmlsoft.org/XSLT/
for details

MSG
      
}

$p = "XML::Parser::PerlSAX";
if (!eval "require $p") {
    print <<MSG;

NOTICE: ** You do not have XML::Parser::PerlSAX installed **

This module is not required for go-perl, but it is required if you
wish to parse Obo-XML files. It is also required by the go-db-perl
library for loading the GO Database.

If you do not intend to use either Obo-XML or go-db-perl, then you may
continue. Even if you do care about these, you may continue and
install XML::Parser::PerlSAX at some future time.

MSG
      
}

my $seq_ok = 1;
$p = "Bio::Seq";
if (!eval "require $p") {
    $seq_ok = 0;
    print <<MSG;

NOTICE: ** You do not have BioPerl installed **
MSG

}
$p = "Digest::MD5";
if (!eval "require $p") {
    $seq_ok = 0;
    print <<MSG;

NOTICE: ** You do not have Digest::MD5 installed **
MSG

}

if (!$seq_ok) {

    print <<MSG;

BioPerl and Digest::MD5 are required if you wish to install
AmiGO. They are also required for some applications involving
sequences.

If you don't care about these, then you can ignore this message. If
you do care about these, you can still ignore this message for now and
install both BioPerl and Digest::MD5 later on

MSG
      
}


WriteMakefile(
	      'NAME'         => "GO",
	      'DISTNAME'         => "go-perl",
	      'ABSTRACT'     => 'GO Perl',
	      'AUTHOR'       => 'Chris Mungall <cjm@fruitfly.org>',
	      'VERSION_FROM' => "go-perl.pod",
	      'PREREQ_PM'    => {
				 'Data::Stag'         => "0.07",
                                 'Data::Dumper'           => 0,
				},
#               PL_FILES	=> { 'doc/makedoc.PL' => ['bioscripts.pod','biodatabases.pod','biodesign.pod','bioperl.pod'] },
	      'EXE_FILES'    => [
                                 qw(
                                    scripts/go-apply-xslt
                                    scripts/go-dag-summary.pl
                                    scripts/go-show-assocs-by-node.pl
                                    scripts/go-show-paths-to-root.pl
                                    scripts/go-filter-subset.pl
                                    scripts/go-export-graph.pl
                                    scripts/go-export-prolog.pl
                                    scripts/go2chadoxml
                                    scripts/go2error_report
                                    scripts/go2fmt.pl
                                    scripts/go2godb_prestore
                                    scripts/go2obo
                                    scripts/go2obo_html
                                    scripts/go2obo_text
                                    scripts/go2obo_xml
                                    scripts/go2owl
                                    scripts/go2pathlist
                                    scripts/go2prolog
                                    scripts/go2rdf
                                    scripts/go2rdfxml
                                    scripts/go2summary
                                    scripts/go2sxpr
                                    scripts/go2tbl
                                    scripts/go2text_html
                                    scripts/go2xml
                                    scripts/map2slim
                                   )
				],
	      'dist'         => { 
				 'SUFFIX'       => ".gz",
				 'DIST_DEFAULT' => 'all tardist',
				 'COMPRESS'     => "gzip -9f" 
				},
	      clean => {
			FILES => 'go-perl-$(VERSION).tar.gz',
		       },
	     );

sub MY::postamble {
  qq{

pod :: \
	go-perl-make-pod-html.pl < MANIFEST

pod.tar.gz :: pod\
	tar cvf pod.tar pod && gzip pod.tar

# INSTALL .xsl FILES AS PERL MODULES
# this is only required by the go-perl developer to make
# a go-perl dist that includes the XSLs

# directory for source XSLs; this only makes sense if go-perl
# is a subdir of go-dev
#XSL_SRC_DIR = ../xml/xsl
XSL_SRC_DIR = xsl

# xsls which go-perl can use
XSL = chadoxml_to_oboxml oboxml_filter oboxml_to_chadoxml oboxml_to_dig oboxml_to_godb_prestore oboxml_to_obotext oboxml_to_owl oboxml_to_simple_owl oboxml_to_racer owl_to_oboxml oboxml_to_summary_table ipr_to_oboxml oboxml_to_obd_prestore text_html

XSL_FILES = \$(patsubst %,\$(XSL_SRC_DIR)/%.xsl,\$(XSL))

# this dir should always be made before a distribution; the end-user
# installer never needs to build this, their distribution will come
# with these files. When a 'make install' is performed, the xsls will
# go in the location where perl modules usually go.
# we re-run 'make' at the end of this to rebuild TO_INST_PM in Makefile
GO/xsl :: \$(XSL_FILES)
	(test -d GO/xsl || mkdir GO/xsl) && cp \$(XSL_FILES) GO/xsl && make

  };  
}