1 |
pacho 13/06/30 10:52:44 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gnome-games.eclass |
5 |
Log: |
6 |
Add eclass to be used by all now splitted gnome-games |
7 |
|
8 |
Revision Changes Path |
9 |
1.868 eclass/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.868&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.868&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.867&r2=1.868 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
18 |
retrieving revision 1.867 |
19 |
retrieving revision 1.868 |
20 |
diff -u -r1.867 -r1.868 |
21 |
--- ChangeLog 29 Jun 2013 08:17:06 -0000 1.867 |
22 |
+++ ChangeLog 30 Jun 2013 10:52:44 -0000 1.868 |
23 |
@@ -1,6 +1,9 @@ |
24 |
# ChangeLog for eclass directory |
25 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.867 2013/06/29 08:17:06 mgorny Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.868 2013/06/30 10:52:44 pacho Exp $ |
28 |
+ |
29 |
+ 30 Jun 2013; Pacho Ramos <pacho@g.o> +gnome-games.eclass: |
30 |
+ Add eclass to be used by all now splitted gnome-games |
31 |
|
32 |
29 Jun 2013; Michał Górny <mgorny@g.o> autotools-utils.eclass: |
33 |
Respect arguments when checking for test targets. This becomes helpful if one |
34 |
|
35 |
|
36 |
|
37 |
1.1 eclass/gnome-games.eclass |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome-games.eclass?rev=1.1&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome-games.eclass?rev=1.1&content-type=text/plain |
41 |
|
42 |
Index: gnome-games.eclass |
43 |
=================================================================== |
44 |
# Copyright 1999-2013 Gentoo Foundation |
45 |
# Distributed under the terms of the GNU General Public License v2 |
46 |
# $Header: /var/cvsroot/gentoo-x86/eclass/gnome-games.eclass,v 1.1 2013/06/30 10:52:44 pacho Exp $ |
47 |
|
48 |
# @ECLASS: gnome-games |
49 |
# @MAINTAINER: |
50 |
# Gnome team <gnome@g.o> |
51 |
# @AUTHOR: |
52 |
# Author: Pacho Ramos <pacho@g.o> |
53 |
# @BLURB: An eclass to build gnome-games. |
54 |
# @DESCRIPTION: |
55 |
# An eclass to build gnome-games using proper phases from gnome2 and |
56 |
# games eclasses. |
57 |
|
58 |
case "${EAPI:-0}" in |
59 |
0|1) |
60 |
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" |
61 |
;; |
62 |
2|3|4|5) |
63 |
;; |
64 |
*) |
65 |
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |
66 |
;; |
67 |
esac |
68 |
|
69 |
inherit autotools games gnome2 |
70 |
|
71 |
EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_compile src_install pkg_preinst pkg_postinst pkg_postrm |
72 |
|
73 |
if [[ ! ${_GNOME_GAMES} ]]; then |
74 |
|
75 |
DEPEND=">=dev-util/intltool-0.50.2-r1" |
76 |
RDEPEND="!gnome-extra/gnome-games" |
77 |
|
78 |
# @FUNCTION: gnome-games_pkg_setup |
79 |
# @DESCRIPTION: |
80 |
# Set proper phase defaults |
81 |
gnome-games_pkg_setup() { |
82 |
debug-print-function ${FUNCNAME} "${@}" |
83 |
games_pkg_setup |
84 |
} |
85 |
|
86 |
# @FUNCTION: gnome-games_src_prepare |
87 |
# @DESCRIPTION: |
88 |
# Set proper phase defaults |
89 |
gnome-games_src_prepare() { |
90 |
debug-print-function ${FUNCNAME} "${@}" |
91 |
|
92 |
# Fix intltoolize broken file: |
93 |
# https://bugs.launchpad.net/intltool/+bug/398571 |
94 |
intltoolize --force --copy --automake || die "intltoolize failed" |
95 |
eautoreconf |
96 |
|
97 |
gnome2_src_prepare |
98 |
} |
99 |
|
100 |
# @FUNCTION: gnome-games_src_configure |
101 |
# @DESCRIPTION: |
102 |
# Set proper phase defaults, relying on gnome2_src_configure |
103 |
# and passing extra arguments from egamesconf (games.eclass) |
104 |
gnome-games_src_configure() { |
105 |
debug-print-function ${FUNCNAME} "${@}" |
106 |
gnome2_src_configure \ |
107 |
--prefix="${GAMES_PREFIX}" \ |
108 |
--libdir="$(games_get_libdir)" \ |
109 |
--sysconfdir="${GAMES_SYSCONFDIR}" \ |
110 |
--localstatedir=/var \ |
111 |
--localedir=/usr/share/locale \ |
112 |
"$@" |
113 |
} |
114 |
|
115 |
# @FUNCTION: gnome-games_src_compile |
116 |
# @DESCRIPTION: |
117 |
# Set proper phase defaults |
118 |
gnome-games_src_compile() { |
119 |
debug-print-function ${FUNCNAME} "${@}" |
120 |
gnome2_src_compile |
121 |
} |
122 |
|
123 |
# @FUNCTION: gnome-games_src_install |
124 |
# @DESCRIPTION: |
125 |
# Set proper phase defaults |
126 |
gnome-games_src_install() { |
127 |
debug-print-function ${FUNCNAME} "${@}" |
128 |
gnome2_src_install |
129 |
prepgamesdirs |
130 |
} |
131 |
|
132 |
# @FUNCTION: gnome-games_pkg_preinst |
133 |
# @DESCRIPTION: |
134 |
# Set proper phase defaults |
135 |
gnome-games_pkg_preinst() { |
136 |
debug-print-function ${FUNCNAME} "${@}" |
137 |
gnome2_pkg_preinst |
138 |
games_pkg_preinst |
139 |
} |
140 |
|
141 |
# @FUNCTION: gnome-games_pkg_preinst |
142 |
# @DESCRIPTION: |
143 |
# Set proper phase defaults |
144 |
gnome-games_pkg_postinst() { |
145 |
debug-print-function ${FUNCNAME} "${@}" |
146 |
gnome2_pkg_postinst |
147 |
games_pkg_postinst |
148 |
} |
149 |
|
150 |
# @FUNCTION: gnome-games_pkg_postrm |
151 |
# @DESCRIPTION: |
152 |
# Set proper phase defaults |
153 |
gnome-games_pkg_postrm() { |
154 |
debug-print-function ${FUNCNAME} "${@}" |
155 |
gnome2_pkg_postrm |
156 |
} |
157 |
|
158 |
_GNOME_GAMES=1 |
159 |
fi |