# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/winetools/winetools-211jo.ebuild,v 1.3 2005/03/27 16:10:23 folken Exp $ MY_PV="211jo" MY_P="${PN}-${MY_PV}" DESCRIPTION="WineTools is a menu driven installer for installing Windows programs" HOMEPAGE="http://www.von-thadden.de/Joachim/WineTools/" SRC_URI="http://ds80-237-203-29.dedicated.hosteurope.de/wt/winetools-${MY_PV}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND=">=app-emulation/wine-20040914" S="${WORKDIR}/winetools" INSTALLDIR="/opt/winetools" LOCALEDIR="/usr/share" src_unpack() { unpack ${A} cd ${S} sed -i s:/usr/local/winetools:/opt/winetools: findwine wt${MY_PV} || die "sed failed" sed -i s:/usr/local/share/locales:/usr/share/lacales: findwine || die "sed failed" } src_compile() { einfo "Precompiled, no build required" } src_install() { diropts -m0755 dodir ${INSTALLDIR} insinto ${INSTALLDIR} doins * || die "doins failed" exeinto ${INSTALLDIR} doexe ${INSTALLDIR}/wt211jo doexe ${INSTALLDIR}/findwine dodir /usr/bin dosym ${INSTALLDIR}/wt211jo /usr/bin/wt2 dosym ${INSTALLDIR}/wt211jo /usr/bin/winetools dosym ${INSTALLDIR}/findwine /usr/bin/findwine # cd ${S}/po # for i in $( ls *.po|cut -f1 -d.); do # dodir ${LOCALEDIR}/locale/${i}/LC_MESSAGES # msgfmt ${i}.po -o ${LOCALEDIR}/locale/${i}/LC_MESSAGES/wt2.mo # done } pkg_postinst() { # fixing permissions chmod -R 755 ${INSTALLDIR} || die einfo "*****************************************************************" einfo "Start WineTools as *normal* user with \"wt2\". Don't use as root!" einfo "*****************************************************************" }