Changes between Version 18 and Version 19 of howto/cpan2port
- Timestamp:
- Feb 28, 2019, 5:43:59 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/cpan2port
v18 v19 57 57 [http://guide.macports.org/chunked/development.local-repositories.html] 58 58 59 If 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 59 61 === Step 5: '''Get cpan2port === 60 62 Install using macports (will automatically install prerequisite Perl modules: p5-list-moreutils, p5-cpan-meta, p5-module-depends, p5-cpan-meta-yaml): … … 74 76 === Step 6: '''Create the port file''' === 75 77 {{{ 76 $ cd ~ 77 $ mkdir ports 78 $ cd ~/ports 78 $ mkdir ~/macports 79 $ cd ~/macports 79 80 $ cpan2port -t Date::Parse 80 81 [...] … … 93 94 First you can review the portfile: 94 95 {{{ 95 $ cd perl/p5-timedate96 $ cd ~/macports/perl/p5-timedate 96 97 $ cat Portfile 98 }}} 99 {{{ 97 100 # -*- 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 98 101 # $Id$ … … 110 113 }}} 111 114 112 The build it: 115 Then 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 113 118 {{{ 114 119 $ port build … … 157 162 If you make changes to the Portfile, remember to re-build it: 158 163 {{{ 159 $ cd perl/p5-timedate164 $ cd ~/macports/perl/p5-timedate 160 165 $ port build 161 166 }}} 162 167 168 === Step 9: '''Update your PortIndex Files''' === 169 170 Before 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 }}} 163 176 ---- 164 177