public inbox for gentoo-pms@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-pms] Small cleanup of ebuild-functions.tex
@ 2009-09-20 15:21 Patrick Lauer
  2009-09-20 15:37 ` Ciaran McCreesh
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Lauer @ 2009-09-20 15:21 UTC (permalink / raw
  To: gentoo-pms

[-- Attachment #1: Type: Text/Plain, Size: 547 bytes --]

Today on the menu: Making PMS describe the ebuild functions more precisely.

First change: the test phase is only run when enabled. Since PMS doesn't 
document FEATURES yet we can only say "if tests are enabled" instead of being 
more precise. Well, defining FEATURES shouldn't be too hard, but that's for 
another day.

Second change: The phase order for package updates and reinstalls is the same. 
This makes a whole chunk of the listing redundant, so we can collapse it.

3 lines added, 21 removed. Isn't decrufting great?

Have fun,

Patrick

[-- Attachment #2: pms-fix-ebuild-phases.patch --]
[-- Type: text/x-patch, Size: 2145 bytes --]

diff --git a/ebuild-functions.tex b/ebuild-functions.tex
index 11ff216..4e327d1 100644
--- a/ebuild-functions.tex
+++ b/ebuild-functions.tex
@@ -578,7 +578,7 @@ The call order for installing a package is:
 \item \t{src\_prepare} (only for EAPIs listed in table~\ref{tab:src-prepare-table})
 \item \t{src\_configure} (only for EAPIs listed in table~\ref{tab:src-configure-table})
 \item \t{src\_compile}
-\item \t{src\_test} (except if \t{RESTRICT=test})
+\item \t{src\_test} (iff tests are enabled, except if \t{RESTRICT=test})
 \item \t{src\_install}
 \item \t{pkg\_preinst}
 \item \t{pkg\_postinst}
@@ -591,7 +591,7 @@ The call order for uninstalling a package is:
 \item \t{pkg\_postrm}
 \end{compactitem}
 
-The call order for reinstalling a package is:
+The call order for reinstalling, upgrading or downgrading a package is:
 
 \begin{compactitem}
 \item \t{pkg\_pretend} (only for EAPIs listed in table~\ref{tab:pkg-pretend-table}), which is called
@@ -601,25 +601,7 @@ The call order for reinstalling a package is:
 \item \t{src\_prepare} (only for EAPIs listed in table~\ref{tab:src-prepare-table})
 \item \t{src\_configure} (only for EAPIs listed in table~\ref{tab:src-configure-table})
 \item \t{src\_compile}
-\item \t{src\_test} (except if \t{RESTRICT=test})
-\item \t{src\_install}
-\item \t{pkg\_preinst}
-\item \t{pkg\_prerm} for the package being replaced
-\item \t{pkg\_postrm} for the package being replaced
-\item \t{pkg\_postinst}
-\end{compactitem}
-
-The call order for upgrading or downgrading a package is:
-
-\begin{compactitem}
-\item \t{pkg\_pretend} (only for EAPIs listed in table~\ref{tab:pkg-pretend-table}), which is called
-    outside of the normal call order process.
-\item \t{pkg\_setup}
-\item \t{src\_unpack}
-\item \t{src\_prepare} (only for EAPIs listed in table~\ref{tab:src-prepare-table})
-\item \t{src\_configure} (only for EAPIs listed in table~\ref{tab:src-configure-table})
-\item \t{src\_compile}
-\item \t{src\_test} (except if \t{RESTRICT=test})
+\item \t{src\_test} (iff tests are enabled, except if \t{RESTRICT=test})
 \item \t{src\_install}
 \item \t{pkg\_preinst}
 \item \t{pkg\_postinst}

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-09-20 17:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-20 15:21 [gentoo-pms] Small cleanup of ebuild-functions.tex Patrick Lauer
2009-09-20 15:37 ` Ciaran McCreesh
2009-09-20 16:21   ` Patrick Lauer
2009-09-20 16:34     ` Ciaran McCreesh
2009-09-20 16:52       ` Patrick Lauer
2009-09-20 17:01         ` Ciaran McCreesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox