blob: ec711bd090020734f1cb60abd265af965051e343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_PV=${PV}jo
MY_PR=${PR/r3/III}
MY_P=${PN}-${MY_PV}-${MY_PR}
DESCRIPTION="menu-driven tool for installing Windows programs under wine"
HOMEPAGE="http://www.von-thadden.de/Joachim/WineTools/"
SRC_URI="http://www.openoffice.de/wt/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RDEPEND=">app-emulation/wine-0.9
x11-misc/xdialog
dev-lang/perl"
DEPEND="${RDEPEND}
sys-devel/gettext"
S=${WORKDIR}/${MY_P}
WT=wt${MY_PV}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s:/usr/local/winetools:/usr/share/winetools:g" \
-e 's:^DIALOG=.*:DIALOG=$(which Xdialog):' \
-e "s:\${BASEDIR}/doc/README\.\(\$\?[a-zA-Z0-9{}]*\)\([ \"]\):"\
"/usr/share/doc/${P}-${PR}/README\.\1.gz\2:g" \
-e "s:cat\( .*README\):zcat\1:g" \
${WT} findwine || die "sed failed"
# disable versio check and don't "clear" screen when finished
epatch "${FILESDIR}/${P}-clear_and_version-check.patch"
sed -i 's:head -1:head -n 1:' "${S}/wt0.9jo"
}
src_install() {
dodoc doc/README.* doc/*.txt
dohtml doc/*.html doc/*.gif
local i
for i in $(find po -name '*.po' -printf '%P ') ; do
i=${i%.*}
dodir /usr/share/locale/${i}
msgfmt po/${i}.po -o "${D}"/usr/share/locale/${i}/wt2.mo || die "msgfmt ${i} failed"
done
exeinto /usr/share/winetools
doexe chopctrl.pl findwine listit ${WT} || die "doexe"
rm -f INSTALL.txt LICENSE.txt
insinto /usr/share/winetools
doins -r *.reg || die "doins"
cp -RP scripts 3rdParty "${D}"/usr/share/winetools/
dodir /usr/bin
dosym /usr/share/winetools/findwine /usr/bin/findwine
dosym /usr/share/winetools/${WT} /usr/bin/wt2
dosym /usr/share/winetools/${WT} /usr/bin/winetools
make_desktop_entry winetools Winetools wine Emulation
}
pkg_postinst(){
einfo
einfo "You can adjust some base path definitions in the"
einfo "script itself (e.g. define dir for wine application start scripts)"
einfo " -> vim /usr/bin/winetools"
einfo
einfo "If you don't want the intro and readme to show up"
einfo "on every start of winetools you can comment out"
einfo "the readme and howto command at the bottom of "
einfo "/usr/bin/winetools."
einfo
}
|