Changes between Version 18 and Version 19 of howto/cpan2port


Ignore:
Timestamp:
Feb 28, 2019, 5:43:59 PM (5 years ago)
Author:
hyperbole (hyperbole)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/cpan2port

    v18 v19  
    5757[http://guide.macports.org/chunked/development.local-repositories.html]
    5858
     59If you're new to creating ports reading the guide will help you enter your ~/macports directory in /opt/local/etc/macports/source.conf so port can find your personal ports directory when you do 'port search', or 'port install'.
     60
    5961=== Step 5: '''Get cpan2port ===
    6062Install using macports (will automatically install prerequisite Perl modules: p5-list-moreutils, p5-cpan-meta, p5-module-depends, p5-cpan-meta-yaml):
     
    7476=== Step 6: '''Create the port file''' ===
    7577{{{
    76 $ cd ~
    77 $ mkdir ports
    78 $ cd ~/ports
     78$ mkdir ~/macports
     79$ cd ~/macports
    7980$ cpan2port -t Date::Parse
    8081[...]
     
    9394First you can review the portfile:
    9495{{{
    95 $ cd perl/p5-timedate
     96$ cd ~/macports/perl/p5-timedate
    9697$ cat Portfile
     98}}}
     99{{{
    97100# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf8:ft=tcl:et:sw=4:ts=4:sts=4
    98101# $Id$
     
    110113}}}
    111114
    112 The build it:
     115Then build it:
     116   # Note: make sure you're in the Portfile directory for the port you want to build. In our case ~/macports/perl/p5-timedate.
     117
    113118{{{
    114119$ port build
     
    157162If you make changes to the Portfile, remember to re-build it:
    158163{{{
    159 $ cd perl/p5-timedate
     164$ cd ~/macports/perl/p5-timedate
    160165$ port build
    161166}}}
    162167
     168=== Step 9: '''Update your PortIndex Files''' ===
     169
     170Before you can install your new port, you will need to create/update the PortIndex files in your macports directory.
     171
     172{{{
     173$ cd ~/macports
     174$ portindex
     175}}}
    163176----
    164177