1 |
commit: f3dea0c8f0d0398ceee5b92886d8d2b356a8b336 |
2 |
Author: Michael Palimaka <kensington <AT> astralcloak <DOT> net> |
3 |
AuthorDate: Wed Apr 4 18:21:47 2012 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> astralcloak <DOT> net> |
5 |
CommitDate: Wed Apr 4 18:21:47 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=f3dea0c8 |
7 |
|
8 |
[qt4-edge.eclass] Remove deprecated, unused eclass. |
9 |
|
10 |
--- |
11 |
eclass/qt4-edge.eclass | 127 ------------------------------------------------ |
12 |
1 files changed, 0 insertions(+), 127 deletions(-) |
13 |
|
14 |
diff --git a/eclass/qt4-edge.eclass b/eclass/qt4-edge.eclass |
15 |
deleted file mode 100644 |
16 |
index eb591bc..0000000 |
17 |
--- a/eclass/qt4-edge.eclass |
18 |
+++ /dev/null |
19 |
@@ -1,127 +0,0 @@ |
20 |
-# Copyright 1999-2009 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
-# $Header: $ |
23 |
- |
24 |
-# @ECLASS: qt4-edge.eclass |
25 |
-# @MAINTAINER: |
26 |
-# @ Qt herd <qt@g.o> |
27 |
-# @BLURB: Experimental eclass for Qt4 live ebuild |
28 |
-# @DESCRIPTION: |
29 |
-# This eclass contains various functions that may be useful when |
30 |
-# dealing with packages using Qt4 libraries. Requires EAPI>=2. |
31 |
- |
32 |
-inherit base eutils multilib qt4-r2 toolchain-funcs |
33 |
- |
34 |
-export XDG_CONFIG_HOME="${T}" |
35 |
- |
36 |
-qt4-edge_pkg_setup() { |
37 |
- if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then |
38 |
- ewarn |
39 |
- ewarn "Please file bugs on bugs.gentoo.org and prepend the summary with" |
40 |
- ewarn "[qt overlay]. Alternatively, contact qt@g.o." |
41 |
- ewarn "Thank you for using qt overlay." |
42 |
- ewarn |
43 |
- fi |
44 |
-} |
45 |
- |
46 |
-qt4-edge_src_unpack() { |
47 |
- debug-print-function $FUNCNAME "$@" |
48 |
- |
49 |
- qt4-r2_src_unpack "$@" |
50 |
-} |
51 |
- |
52 |
-# @FUNCTION: qt4-edge_src_prepare |
53 |
-# @DESCRIPTION: |
54 |
-# Default src_prepare function for packages that depend on qt4. If you have to |
55 |
-# override src_prepare in your ebuild, you should call qt4-edge_src_prepare in it, |
56 |
-# otherwise autopatcher will not work! |
57 |
-qt4-edge_src_prepare() { |
58 |
- debug-print-function $FUNCNAME "$@" |
59 |
- |
60 |
- qt4-r2_src_prepare |
61 |
-} |
62 |
- |
63 |
-# @FUNCTION: qt4-edge_src_configure |
64 |
-# @DESCRIPTION: |
65 |
-# Default src_configure function for packages that depends on qt4. If you have to |
66 |
-# override src_configure in your ebuild, call qt4-edge_src_configure in it. |
67 |
-qt4-edge_src_configure() { |
68 |
- debug-print-function $FUNCNAME "$@" |
69 |
- |
70 |
- qt4-r2_src_configure |
71 |
-} |
72 |
- |
73 |
-# @FUNCTION: qt4-edge_src_compile |
74 |
-# @DESCRIPTION: |
75 |
-# Default src_compile function for packages that depends on qt4. If you have to |
76 |
-# override src_compile in your ebuild (probably you don't need to), call |
77 |
-# qt4-edge_src_compile in it. |
78 |
-qt4-edge_src_compile() { |
79 |
- debug-print-function $FUNCNAME "$@" |
80 |
- |
81 |
- qt4-r2_src_compile |
82 |
-} |
83 |
- |
84 |
-# @FUNCTION: qt4-edge_src_install |
85 |
-# @DESCRIPTION: |
86 |
-# Default src_install function for qt4-based packages. Installs compiled code, |
87 |
-# documentation (via DOCS variable) and translations (via LANGS and |
88 |
-# LANGSLONG variables). |
89 |
-qt4-edge_src_install() { |
90 |
- debug-print-function $FUNCNAME "$@" |
91 |
- |
92 |
- qt4-r2_src_install |
93 |
- |
94 |
- # install translations # hwoarang: Is this valid for every package??? |
95 |
- # need to have specified LANGS or LANGSLONG for this to work |
96 |
- [[ -n "${LANGS}" || -n "${LANGSLONG}" ]] && prepare_translations |
97 |
-} |
98 |
- |
99 |
-# Internal function |
100 |
-_do_qm() { |
101 |
- debug-print-function $FUNCNAME "$@" |
102 |
- [[ $# -ne 2 ]] && die "$FUNCNAME requires exactly 2 arguments!" |
103 |
- |
104 |
- local transfile="$(find "${1}" -type f -name "*${2}".qm)" |
105 |
- if [[ -f ${transfile} ]]; then |
106 |
- ( |
107 |
- insinto /usr/share/${PN}/"${1#${S}}" |
108 |
- doins "${transfile}" |
109 |
- ) || die "failed to install ${2} translation" |
110 |
- else |
111 |
- eerror |
112 |
- eerror "Failed to install ${2} translation: file not found." |
113 |
- eerror |
114 |
- die "failed to install ${2} translation" |
115 |
- fi |
116 |
-} |
117 |
- |
118 |
-# @VARIABLE: TRANSLATIONSDIR |
119 |
-# @DESCRIPTION: Translations directory. If not set, ${S} will be used |
120 |
- |
121 |
-# @FUNCTION: prepare_translations |
122 |
-# @DESCRIPTION: |
123 |
-# Choose and install translation files. Normally you don't need to call |
124 |
-# this function directly as it is called from qt4-edge_src_install. |
125 |
-prepare_translations() { |
126 |
- debug-print-function $FUNCNAME "$@" |
127 |
- |
128 |
- # Find translations directory |
129 |
- # Changed default to . - crazy upstreams :) |
130 |
- local roottrdir="${TRANSLATIONSDIR:-${S}}" trdir=. |
131 |
- for dir in lang langs translations; do |
132 |
- [[ -d ${roottrdir}/${dir} ]] && trdir="${roottrdir}/${dir}" |
133 |
- done |
134 |
- |
135 |
- local lang= |
136 |
- for lang in ${LINGUAS}; do |
137 |
- for x in ${LANGS}; do |
138 |
- [[ ${lang} == ${x%_*} ]] && _do_qm "${trdir}" ${x} |
139 |
- done |
140 |
- for x in ${LANGSLONG}; do |
141 |
- [[ ${lang} == ${x} ]] && _do_qm "${trdir}" ${x} |
142 |
- done |
143 |
- done |
144 |
-} |
145 |
- |
146 |
-EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_install |