Giter Site home page Giter Site logo

pakku-spec's Introduction

NAME

Pakku::Spec - Dependency Specification for Pakku Package Manager.

SYNOPSIS

use Pakku::Spec;

my $spec = Pakku::Spec.new: 'ModuleName:ver(0.0.1):auth<Camelia <[email protected]>>:api<>';

say $spec.spec;
# {api => , auth => Camelia <[email protected]>, from => raku, name => ModuleName, ver => 0.0.1}


$spec = Pakku::Spec.new: {:hints(${"by-kernel.name" => ${:linux(${:checksum(${"sha-256" => "E6836E32802555593AEDAFE1CC00752CBDA"}), :target("resources/libraries/"), :url("http://raku.org/")})}}), :name("archive:from<native>")};

say $spec.spec;
# {from => native, name => archive}

say $spec.hints;

# Pakku::Spec::Hints.new(url => "http://raku.org/", target => "resources/libraries/", checksum => Pakku::Spec::Hints::Checksum.new(type => "sha-256", hash => "E6836E32802555593AEDAFE1CC00752CBDA"), source => Pakku::Spec::Hints::Source)

DESCRIPTION

Pakku::Spec is a Dependency Specification used by Pakku.

Pakku::Spec parses the dependencies specified by Raku distributions as string like My::Dependency:ver<0.0.1+> or hash like { :name<MyLib>,:from<native> }. also parses the hints section if provided in a dependency to provide for example the correct name based on $*DISTRO or $*KERNEL

Pakku::Spec is mainly used by Pakku::Meta to parse the depends section in META6.json files.

INSTALLATION

pakku add Pakku::Spec

# or 

zef install Pakku::Spec

AUTHOR

Haytham Elganiny [email protected]

COPYRIGHT AND LICENSE

Copyright 2020 Haytham Elganiny

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

pakku-spec's People

Contributors

hythm7 avatar

Watchers

 avatar  avatar  avatar

pakku-spec's Issues

Please improve documentation

It's really difficult to know, by just looking at this README, what the distribution is about. Just a link to the Pakku repo or web site would help, for instance, but additionally, some simple use case would also be helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.