diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-07-22 13:46:25 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-07-22 13:46:25 +0000 |
commit | db16897bbfffb1cbdcf27be88da714619da3d62e (patch) | |
tree | a81a78d46cc2b7a48aa4a2503be67baa6827d7e5 | |
parent | Yet another launcher application for qemu. (diff) | |
download | philantrop-db16897bbfffb1cbdcf27be88da714619da3d62e.tar.gz philantrop-db16897bbfffb1cbdcf27be88da714619da3d62e.tar.bz2 philantrop-db16897bbfffb1cbdcf27be88da714619da3d62e.zip |
winetools ebuild. cf. bug 46390.
svn path=/trunk/; revision=14
4 files changed, 128 insertions, 0 deletions
diff --git a/app-emulation/winetools/Manifest b/app-emulation/winetools/Manifest new file mode 100644 index 0000000..3d0b2ff --- /dev/null +++ b/app-emulation/winetools/Manifest @@ -0,0 +1,12 @@ +AUX winetools-0.9-clear_and_version-check.patch 1147 RMD160 a91c83d3679212517992f91de2d0068b54b3201c SHA1 42fb3f64d14a34587104d9064b741a551f22eec6 SHA256 7a031497bffe75485a9aa883b39b975185b47198b7b3f3e7eb3516a0daf2933c +MD5 5cdebf6491a9a8e44b4e890001ceb0f3 files/winetools-0.9-clear_and_version-check.patch 1147 +RMD160 a91c83d3679212517992f91de2d0068b54b3201c files/winetools-0.9-clear_and_version-check.patch 1147 +SHA256 7a031497bffe75485a9aa883b39b975185b47198b7b3f3e7eb3516a0daf2933c files/winetools-0.9-clear_and_version-check.patch 1147 +DIST winetools-0.9jo-III.tar.gz 203976 RMD160 361d7e8b636cc69e7d58ceb813fe4d74c1d2e87b SHA1 e8d510139cce7267d6040f77f9e73b2cbd84a65f SHA256 ef25dacc78c35dbd827cc160de69c3ae0ba30ce497b03ab9c7a6352cdad84ee1 +EBUILD winetools-0.9-r3.ebuild 2249 RMD160 13b2a549ea1a2255ffd1081b6d63c06bf4951b58 SHA1 9643c5fcb6c4279dbbceb46277cb5e79a9ff5ef0 SHA256 5a2808a9132f7abe30e1fc31f25bf80c3a7507cfc953450bba09fb9346d79bdd +MD5 6eea94e783d7580eb5d876b3d9a2c391 winetools-0.9-r3.ebuild 2249 +RMD160 13b2a549ea1a2255ffd1081b6d63c06bf4951b58 winetools-0.9-r3.ebuild 2249 +SHA256 5a2808a9132f7abe30e1fc31f25bf80c3a7507cfc953450bba09fb9346d79bdd winetools-0.9-r3.ebuild 2249 +MD5 1dd4a6addf17d376eb249135b9f3b119 files/digest-winetools-0.9-r3 259 +RMD160 3001b7c95136c55a6d7303ff75af634bab02a53d files/digest-winetools-0.9-r3 259 +SHA256 b0bf5228e3aade41caf082fe14855815ddb3ed69282b85fc113c27647dc8b12d files/digest-winetools-0.9-r3 259 diff --git a/app-emulation/winetools/files/digest-winetools-0.9-r3 b/app-emulation/winetools/files/digest-winetools-0.9-r3 new file mode 100644 index 0000000..caea92c --- /dev/null +++ b/app-emulation/winetools/files/digest-winetools-0.9-r3 @@ -0,0 +1,3 @@ +MD5 e15874cabdd48342e7de5a1823ee3c98 winetools-0.9jo-III.tar.gz 203976 +RMD160 361d7e8b636cc69e7d58ceb813fe4d74c1d2e87b winetools-0.9jo-III.tar.gz 203976 +SHA256 ef25dacc78c35dbd827cc160de69c3ae0ba30ce497b03ab9c7a6352cdad84ee1 winetools-0.9jo-III.tar.gz 203976 diff --git a/app-emulation/winetools/files/winetools-0.9-clear_and_version-check.patch b/app-emulation/winetools/files/winetools-0.9-clear_and_version-check.patch new file mode 100755 index 0000000..dc010f2 --- /dev/null +++ b/app-emulation/winetools/files/winetools-0.9-clear_and_version-check.patch @@ -0,0 +1,29 @@ +diff -ur winetools-0.9jo-III.orig/wt0.9jo winetools-0.9jo-III/wt0.9jo +--- winetools-0.9jo-III.orig/wt0.9jo 2005-12-23 15:39:07.000000000 +0100 ++++ winetools-0.9jo-III/wt0.9jo 2005-12-23 15:51:01.000000000 +0100 +@@ -3197,7 +3197,7 @@ + ;; + + 1) +- clear ++# clear + ;; + esac + } +@@ -3294,11 +3294,11 @@ + fi + fi + +-if [ "$WINEVER" = "0.9" -o "$WINEVER" = "0.9.1" -o "$WINEVER" = "0.9.2" -o "$WINEVER" = "0.9.3" ]; then +- echo "`eval_gettext "Version of Wine is OK."`" +-else +- $DIALOG --title "`eval_gettext "*** NOTICE ***"`" --msgbox "`eval_gettext "WineTools is tested with Wine 0.9 - Beta.\nYou use a different version so the results are unpredictable."`" 9 60 +-fi ++#if [ "$WINEVER" = "0.9" -o "$WINEVER" = "0.9.1" -o "$WINEVER" = "0.9.2" -o "$WINEVER" = "0.9.3" ]; then ++# echo "`eval_gettext "Version of Wine is OK."`" ++#else ++# $DIALOG --title "`eval_gettext "*** NOTICE ***"`" --msgbox "`eval_gettext "WineTools is tested with Wine 0.9 - Beta.\nYou use a different version so the results are unpredictable."`" 9 60 ++#fi + + echo "`eval_gettext "Calls to wine are executed as "`" "\"$WINE\"." + echo "`eval_gettext "Config is $CONFIG."`" diff --git a/app-emulation/winetools/winetools-0.9-r3.ebuild b/app-emulation/winetools/winetools-0.9-r3.ebuild new file mode 100755 index 0000000..ec711bd --- /dev/null +++ b/app-emulation/winetools/winetools-0.9-r3.ebuild @@ -0,0 +1,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 +} |