1 |
commit: 8ffd8c6ce46c847ccac7f3d69def762dc42fde9e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 21:14:35 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 21:14:42 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=8ffd8c6c |
7 |
|
8 |
[eclass] Add an example. |
9 |
|
10 |
--- |
11 |
eclass/systemd.eclass | 15 +++++++++++++++ |
12 |
1 files changed, 15 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass |
15 |
index d392fc3..a14aa2c 100644 |
16 |
--- a/eclass/systemd.eclass |
17 |
+++ b/eclass/systemd.eclass |
18 |
@@ -9,6 +9,21 @@ |
19 |
# @DESCRIPTION: |
20 |
# This eclass provides a set of functions to install unit files for |
21 |
# sys-apps/systemd within ebuilds. |
22 |
+# @EXAMPLE: |
23 |
+# |
24 |
+# @CODE |
25 |
+# inherit autotools-utils systemd |
26 |
+# |
27 |
+# src_configure() { |
28 |
+# local myeconfargs=( |
29 |
+# --enable-foo |
30 |
+# --disable-bar |
31 |
+# ) |
32 |
+# |
33 |
+# systemd_to_myeconfargs |
34 |
+# autotools-utils_src_configure |
35 |
+# } |
36 |
+# @CODE |
37 |
|
38 |
inherit multilib |