1 |
commit: fb6a9afe1a59aa13302044fe68f3c391d4368cee |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 23 18:48:37 2012 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 27 19:21:56 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=fb6a9afe |
7 |
|
8 |
Add descriptions to standard phase functions. |
9 |
|
10 |
--- |
11 |
eclass/intel-sdp.eclass | 24 ++++++++++++++++++++++++ |
12 |
1 files changed, 24 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass |
15 |
index b982601..14dba83 100644 |
16 |
--- a/eclass/intel-sdp.eclass |
17 |
+++ b/eclass/intel-sdp.eclass |
18 |
@@ -133,6 +133,14 @@ intel-sdp_pkg_pretend() { |
19 |
# |
20 |
# e.g. amd64-multilib -> INTEL_ARCH="intel64 ia32" |
21 |
|
22 |
+# @ ECLASS-FUNCTION: intel-sdp_pkg_setup |
23 |
+# @DESCRIPTION: |
24 |
+# The setup finction serves two purposes: |
25 |
+# |
26 |
+# * Check that the user has a (valid) license file before going on. |
27 |
+# |
28 |
+# * Setting up and sorting some internal variables |
29 |
+ |
30 |
intel-sdp_pkg_setup() { |
31 |
local _warn=1 _dirs i _ret arch a p |
32 |
_dirs=( |
33 |
@@ -177,6 +185,10 @@ intel-sdp_pkg_setup() { |
34 |
esac |
35 |
} |
36 |
|
37 |
+# @ ECLASS-FUNCTION: intel-sdp_src_unpack |
38 |
+# @DESCRIPTION: |
39 |
+# Unpacking necessary rpms from tarball, extract them and rearrange the output. |
40 |
+ |
41 |
intel-sdp_src_unpack() { |
42 |
local l r t rpmdir |
43 |
debug-print "INTEL_RPMS_DIRS are \"${INTEL_RPMS_DIRS}\"" |
44 |
@@ -224,6 +236,10 @@ intel_link_eclipse_plugins() { |
45 |
popd > /dev/null |
46 |
} |
47 |
|
48 |
+# @ ECLASS-FUNCTION: intel-sdp_src_install |
49 |
+# @DESCRIPTION: |
50 |
+# Install everything |
51 |
+ |
52 |
intel-sdp_src_install() { |
53 |
if ! use doc && [[ -d "${INTEL_SDP_DIR}"/Documentation ]]; then |
54 |
ebegin "Cleaning out documentation" |
55 |
@@ -419,6 +435,10 @@ run-test() { |
56 |
# Full path to intel registry db |
57 |
INTEL_SDP_DB="${EROOT%/}"/opt/intel/intel-sdp-products.db |
58 |
|
59 |
+# @ECLASS-FUNCTION |
60 |
+# @DESCRIPTION: |
61 |
+# Add things to intel database |
62 |
+ |
63 |
intel-sdp_pkg_postinst() { |
64 |
# add product registry to intel "database" |
65 |
local l r |
66 |
@@ -430,6 +450,10 @@ intel-sdp_pkg_postinst() { |
67 |
run-test |
68 |
} |
69 |
|
70 |
+# @ECLASS-FUNCTION |
71 |
+# @DESCRIPTION: |
72 |
+# Sanitize intel database |
73 |
+ |
74 |
intel-sdp_pkg_postrm() { |
75 |
# remove from intel "database" |
76 |
if [[ -e ${INTEL_SDP_DB} ]]; then |