# $id$ use ExtUtils::MakeMaker; require 5.6.0; #use Config; if (system("which xsltproc > /dev/null")) { print < "GO", 'DISTNAME' => "go-perl", 'ABSTRACT' => 'GO Perl', 'AUTHOR' => 'Chris Mungall ', '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 # 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 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 }; }