[MacPorts] PortfileRecipes modified

MacPorts noreply at macports.org
Wed Jan 16 12:30:08 PST 2013


Page "PortfileRecipes" was changed by sean at macports.org
Diff URL: <https://trac.macports.org/wiki/PortfileRecipes?action=diff&version=42>
Revision 42
Comment: fetch: add example to download a raw script
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: PortfileRecipes
=========================================================================
--- PortfileRecipes (version: 41)
+++ PortfileRecipes (version: 42)
@@ -35,6 +35,23 @@
 
 {{{
 master_sites	${homepage}attachment/wiki/WikiStart/${distfiles}?format=raw&dummy=
+}}}
+
+== Fetching a file that is not in a tarball == #fetchnotarball
+
+Usually a port will be installing a package from a proper distribution source (e.g. tarball, zip, etc.). Following [http://comments.gmane.org/gmane.os.apple.macports.devel/21460 advice] given on the macports-dev mailing list,
+
+  If you eliminate the extract phase, there will be nothing in the workpath. You could technically install straight from distpath to destroot, but that's a little confusing. This would probably be better:
+
+{{{
+distfiles     name_of_script
+use_configure no
+
+extract {
+  file copy ${distpath}/${distfiles} ${workpath}
+}
+build   {}
+…
 }}}
 
 == Using glob results in "Cannot stat: <list of files>" == #glob
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/PortfileRecipes>
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone added your email address to be
notified of changes on 'PortfileRecipes' page.
If it was not you, please report to .


More information about the macports-changes mailing list