[MacPorts] PortfileRecipes modified

MacPorts noreply at macports.org
Fri Jan 13 16:41:55 PST 2012


Changed page "PortfileRecipes" by ryandesign at macports.org from 66.69.204.66*
Page URL: <https://trac.macports.org/wiki/PortfileRecipes>
Diff URL: <https://trac.macports.org/wiki/PortfileRecipes?action=diff&version=34>
Revision 34
Comment: set docdir based on ${subport} not ${name}

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: PortfileRecipes
=========================================================================
--- PortfileRecipes (version: 33)
+++ PortfileRecipes (version: 34)
@@ -198,7 +198,7 @@
 
 {{{
 post-destroot {
-    set docdir ${destroot}${prefix}/share/doc/${name}
+    set docdir ${destroot}${prefix}/share/doc/${subport}
     xinstall -d ${docdir}
     xinstall -m 644 -W ${worksrcpath} \
         AUTHORS \
@@ -209,9 +209,9 @@
 }
 }}}
 
-This example is taken from [browser:trunk/dports/www/spawn-fcgi/Portfile spawn-fcgi].
-
 Note: Ensure you use the correct capitalization for each filename. For example, many projects typically use all-caps for most of the documentation files, except for ChangeLog, which is often written in camel-case. If you fail to use the correct capitalization, the port may still install on your system, but will fail for users with case-sensitive filesystems.
+
+Note: This recipe used to recommend using ${destroot}${prefix}/share/doc/${name}, which is fine if used in a standalone port, but this will cause conflicts if used in a port with subports, such as one using the unified python portgroup.
 
 == Removing -arch flags from *-config scripts, *.pc files, etc. == #archflags
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on PortfileRecipes. If it was not you, please
report to .


More information about the macports-changes mailing list