1 |
ryao 13/03/27 18:16:59 |
2 |
|
3 |
Added: crossover-bin-12.1.2.ebuild metadata.xml ChangeLog |
4 |
Log: |
5 |
New package app-emulation/crossover-bin |
6 |
|
7 |
(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-emulation/crossover-bin/crossover-bin-12.1.2.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/crossover-bin/crossover-bin-12.1.2.ebuild?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/crossover-bin/crossover-bin-12.1.2.ebuild?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: crossover-bin-12.1.2.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2013 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/crossover-bin/crossover-bin-12.1.2.ebuild,v 1.1 2013/03/27 18:16:59 ryao Exp $ |
20 |
|
21 |
EAPI="5" |
22 |
PYTHON_COMPAT=( python{2_5,2_6,2_7} ) |
23 |
PYTHON_REQ_USE="threads" |
24 |
|
25 |
inherit python-single-r1 unpacker |
26 |
|
27 |
DESCRIPTION="Commercial version of app-emulation/wine with paid support." |
28 |
HOMEPAGE="http://www.codeweavers.com/products/crossover/" |
29 |
SRC_URI="install-crossover-${PV}.bin" |
30 |
|
31 |
LICENSE="CROSSOVER-2" |
32 |
SLOT="0" |
33 |
KEYWORDS="-* ~amd64 ~x86" |
34 |
IUSE="+capi +cups doc +gphoto2 +gsm +jpeg +lcms +ldap +mp3 +nls +openal +opengl +png +scanner +ssl +v4l" |
35 |
RESTRICT="fetch test" |
36 |
QA_FLAGS_IGNORED="opt/cxoffice/.*" |
37 |
QA_PRESTRIPPED="opt/cxoffice/lib/.* |
38 |
opt/cxoffice/bin/cxburner |
39 |
opt/cxoffice/bin/cxntlm_auth |
40 |
opt/cxoffice/bin/wineserver |
41 |
opt/cxoffice/bin/unrar |
42 |
opt/cxoffice/bin/wine-preloader |
43 |
opt/cxoffice/bin/cxdiag |
44 |
opt/cxoffice/bin/cxgettext |
45 |
opt/cxoffice/bin/wineloader |
46 |
" |
47 |
S="${WORKDIR}" |
48 |
|
49 |
MLIB_DEPS="amd64? ( |
50 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
51 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
52 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
53 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
54 |
app-emulation/emul-linux-x86-baselibs |
55 |
app-emulation/emul-linux-x86-soundlibs |
56 |
app-emulation/emul-linux-x86-xlibs |
57 |
)" |
58 |
|
59 |
X86_DEPS="x86? ( |
60 |
capi? ( net-dialup/capi4k-utils ) |
61 |
cups? ( net-print/cups ) |
62 |
gsm? ( media-sound/gsm ) |
63 |
jpeg? ( virtual/jpeg ) |
64 |
lcms? ( media-libs/lcms:0 ) |
65 |
ldap? ( net-nds/openldap ) |
66 |
gphoto2? ( media-libs/libgphoto2 ) |
67 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
68 |
nls? ( sys-devel/gettext ) |
69 |
openal? ( media-libs/openal ) |
70 |
opengl? ( |
71 |
virtual/glu |
72 |
virtual/opengl |
73 |
) |
74 |
png? ( media-libs/libpng:0 ) |
75 |
scanner? ( media-gfx/sane-backends ) |
76 |
ssl? ( dev-libs/openssl:0 ) |
77 |
v4l? ( media-libs/libv4l ) |
78 |
media-libs/alsa-lib |
79 |
>=media-libs/freetype-2.0.0 |
80 |
media-libs/mesa |
81 |
sys-apps/util-linux |
82 |
sys-libs/zlib |
83 |
x11-libs/libICE |
84 |
x11-libs/libSM |
85 |
x11-libs/libX11 |
86 |
x11-libs/libXau |
87 |
x11-libs/libXdmcp |
88 |
x11-libs/libXext |
89 |
x11-libs/libXi |
90 |
x11-libs/libXrandr |
91 |
x11-libs/libXxf86vm |
92 |
x11-libs/libxcb |
93 |
)" |
94 |
|
95 |
DEPEND="dev-lang/perl |
96 |
app-arch/unzip" |
97 |
|
98 |
RDEPEND="${DEPEND} |
99 |
!prefix? ( sys-libs/glibc ) |
100 |
>=dev-python/pygtk-2.10 |
101 |
dev-util/desktop-file-utils |
102 |
sys-apps/dbus |
103 |
!app-emulation/crossover-office-pro-bin |
104 |
!app-emulation/crossover-office-bin |
105 |
${MLIB_DEPS} |
106 |
${X86_DEPS} |
107 |
" |
108 |
|
109 |
pkg_nofetch() { |
110 |
einfo "Please visit ${HOMEPAGE}" |
111 |
einfo "and place ${A} in ${DISTDIR}" |
112 |
} |
113 |
|
114 |
src_unpack() { |
115 |
# self unpacking zip archive; unzip warns about the exe stuff |
116 |
unpack_zip |
117 |
} |
118 |
|
119 |
src_prepare() { |
120 |
python_fix_shebang . |
121 |
sed -e 's:/usr/local/etc/xdg /etc/xdg::' -i "${WORKDIR}/bin/locate_gui.sh" \ |
122 |
|| die "Could not patch ${WORKDIR}/bin/locate_gui.sh" |
123 |
|
124 |
# Remove unnecessary files |
125 |
rm -r license.txt guis/ || die "Could not remove files" |
126 |
use doc || rm -r doc/ || die "Could not remove files" |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
# Install documentation |
131 |
dodoc README changelog.txt |
132 |
rm README changelog.txt || die "Could not remove README and changelog.txt" |
133 |
|
134 |
# Install files |
135 |
dodir /opt/cxoffice |
136 |
cp -r ./* "${ED}opt/cxoffice" \ |
137 |
|| die "Could not install into ${ED}opt/cxoffice" |
138 |
|
139 |
# Install configuration file |
140 |
insinto /opt/cxoffice/etc |
141 |
doins share/crossover/data/cxoffice.conf |
142 |
|
143 |
# Install requisite directories for menus |
144 |
dodir "/usr/share/applications" |
145 |
dodir "/etc/xdg/menus/applications-merged" |
146 |
|
147 |
# Install menus |
148 |
XDG_CONFIG_DIRS="${ED}etc/xdg" \ |
149 |
XDG_DATA_DIRS="${ED}usr/share" \ |
150 |
"${ED}opt/cxoffice/bin/cxmenu" --crossover --install \ |
151 |
|| die "Could not install menus" |
152 |
|
153 |
# Fix menus |
154 |
sed -e "s:${ED}:/:" -i "${ED}usr/share/applications/"* \ |
155 |
|| die "Could not fix menus" |
156 |
} |
157 |
|
158 |
|
159 |
|
160 |
1.1 app-emulation/crossover-bin/metadata.xml |
161 |
|
162 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/crossover-bin/metadata.xml?rev=1.1&view=markup |
163 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/crossover-bin/metadata.xml?rev=1.1&content-type=text/plain |
164 |
|
165 |
Index: metadata.xml |
166 |
=================================================================== |
167 |
<?xml version="1.0" encoding="UTF-8"?> |
168 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
169 |
<pkgmetadata> |
170 |
<maintainer> |
171 |
<email>ryao@g.o</email> |
172 |
<name>Richard Yao</name> |
173 |
</maintainer> |
174 |
<use> |
175 |
<flag name='capi'>Enable ISDN support via CAPI</flag> |
176 |
</use> |
177 |
</pkgmetadata> |
178 |
|
179 |
|
180 |
|
181 |
1.1 app-emulation/crossover-bin/ChangeLog |
182 |
|
183 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/crossover-bin/ChangeLog?rev=1.1&view=markup |
184 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/crossover-bin/ChangeLog?rev=1.1&content-type=text/plain |
185 |
|
186 |
Index: ChangeLog |
187 |
=================================================================== |
188 |
# ChangeLog for app-emulation/crossover-bin |
189 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
190 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/crossover-bin/ChangeLog,v 1.1 2013/03/27 18:16:59 ryao Exp $ |
191 |
|
192 |
*crossover-bin-12.1.2 (27 Mar 2013) |
193 |
|
194 |
27 Mar 2013; Richard Yao <ryao@g.o> +crossover-bin-12.1.2.ebuild, |
195 |
+metadata.xml: |
196 |
New package app-emulation/crossover-bin. Ebuild written by me with |
197 |
app-emulation/crossover-office-pro-bin as template; influenced by feedback |
198 |
from hasufell. |