1# Licensed to the Apache Software Foundation (ASF) under one
2# or more contributor license agreements.  See the NOTICE file
3# distributed with this work for additional information
4# regarding copyright ownership.  The ASF licenses this file
5# to you under the Apache License, Version 2.0 (the
6# "License"); you may not use this file except in compliance
7# with the License.  You may obtain a copy of the License at
8#
9#   http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing,
12# software distributed under the License is distributed on an
13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14# KIND, either express or implied.  See the License for the
15# specific language governing permissions and limitations
16# under the License.
17
18use strict;
19use warnings;
20
21use 5.014000;
22
23use ExtUtils::MakeMaker 6.30;
24
25
26
27my %WriteMakefileArgs = (
28  "ABSTRACT" => "Perl interface to MXNet machine learning library",
29  "AUTHOR" => "Sergey Kolychev <sergeykolychev.github\@gmail.com>",
30  "BUILD_REQUIRES" => {},
31  "CONFIGURE_REQUIRES" => {
32    "ExtUtils::MakeMaker" => "6.30"
33  },
34  "DISTNAME" => "AI-MXNet",
35  "EXE_FILES" => [],
36  "LICENSE" => "apache_2_0",
37  "NAME" => "AI::MXNet",
38  "PREREQ_PM" => {
39    "AI::MXNetCAPI" => "1.5",
40    "AI::NNVMCAPI" => "1.3",
41    "Function::Parameters" => "1.0705",
42    "Hash::Ordered" => "0.012",
43    "Mouse" => "v2.1.0",
44    "PDL" => "2.007",
45    "PDL::CCS" => "1.23.4",
46    "GraphViz" => "2.14"
47  },
48  "TEST_REQUIRES" => {},
49  "VERSION" => "1.5",
50  "test" => {
51    "TESTS" => "t/*.t"
52  }
53);
54
55
56my %FallbackPrereqs = (
57  "AI::MXNetCAPI" => "1.33",
58  "AI::NNVMCAPI" => "1.3",
59  "Function::Parameters" => "1.0705",
60  "Hash::Ordered" => "0.012",
61  "Mouse" => "v2.1.0",
62  "PDL" => "2.007",
63  "PDL::CCS" => "1.23.4",
64  "GraphViz" => "2.14"
65);
66
67
68unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
69  delete $WriteMakefileArgs{TEST_REQUIRES};
70  delete $WriteMakefileArgs{BUILD_REQUIRES};
71  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
72}
73
74delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
75  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
76
77WriteMakefile(%WriteMakefileArgs);
78
79
80
81