diff options
author | Tilman Klar <phoenix@gentoo.org> | 2003-03-28 17:16:14 +0000 |
---|---|---|
committer | Tilman Klar <phoenix@gentoo.org> | 2003-03-28 17:16:14 +0000 |
commit | 7844ce13cd379afe03acfc5a860fe70bbca9e78a (patch) | |
tree | bedc7b89773d4de9549519d581272969c60b2e74 /app-emulation/nwwine | |
parent | Added hppa to KEYWORDS. (diff) | |
download | gentoo-2-7844ce13cd379afe03acfc5a860fe70bbca9e78a.tar.gz gentoo-2-7844ce13cd379afe03acfc5a860fe70bbca9e78a.tar.bz2 gentoo-2-7844ce13cd379afe03acfc5a860fe70bbca9e78a.zip |
Initial import of nwwine.
Diffstat (limited to 'app-emulation/nwwine')
-rw-r--r-- | app-emulation/nwwine/ChangeLog | 9 | ||||
-rw-r--r-- | app-emulation/nwwine/files/digest-nwwine-20020703 | 1 | ||||
-rw-r--r-- | app-emulation/nwwine/files/nwwine-20020703-fake_windows.tar.bz2 | bin | 0 -> 500 bytes | |||
-rw-r--r-- | app-emulation/nwwine/files/nwwine-20020703-misc.tar.bz2 | bin | 0 -> 4603 bytes | |||
-rw-r--r-- | app-emulation/nwwine/nwwine-20020703.ebuild | 118 |
5 files changed, 128 insertions, 0 deletions
diff --git a/app-emulation/nwwine/ChangeLog b/app-emulation/nwwine/ChangeLog new file mode 100644 index 000000000000..509e9f2013be --- /dev/null +++ b/app-emulation/nwwine/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for app-emulation/nwwine +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/nwwine/ChangeLog,v 1.1 2003/03/28 17:16:14 phoenix Exp $ + +*nwwine-20020703 (28 Mar 2003) + + 28 Mar 2003; phoen][x <phoenix@gentoo.org> nwwine-20020703.ebuild, + files/wine-20021125-fake_windows.tar.bz2, files/wine-20021125-misc.tar.bz2 : + Initial import. diff --git a/app-emulation/nwwine/files/digest-nwwine-20020703 b/app-emulation/nwwine/files/digest-nwwine-20020703 new file mode 100644 index 000000000000..0dcb9187c341 --- /dev/null +++ b/app-emulation/nwwine/files/digest-nwwine-20020703 @@ -0,0 +1 @@ +MD5 47972dc42e8eb2dc062463bd61318d2e nwwine-20020703.tar.gz 7701588 diff --git a/app-emulation/nwwine/files/nwwine-20020703-fake_windows.tar.bz2 b/app-emulation/nwwine/files/nwwine-20020703-fake_windows.tar.bz2 Binary files differnew file mode 100644 index 000000000000..d60f11e08ee3 --- /dev/null +++ b/app-emulation/nwwine/files/nwwine-20020703-fake_windows.tar.bz2 diff --git a/app-emulation/nwwine/files/nwwine-20020703-misc.tar.bz2 b/app-emulation/nwwine/files/nwwine-20020703-misc.tar.bz2 Binary files differnew file mode 100644 index 000000000000..4db1affaf4bf --- /dev/null +++ b/app-emulation/nwwine/files/nwwine-20020703-misc.tar.bz2 diff --git a/app-emulation/nwwine/nwwine-20020703.ebuild b/app-emulation/nwwine/nwwine-20020703.ebuild new file mode 100644 index 000000000000..3bb113c19e75 --- /dev/null +++ b/app-emulation/nwwine/nwwine-20020703.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/nwwine/nwwine-20020703.ebuild,v 1.1 2003/03/28 17:16:14 phoenix Exp $ + +DESCRIPTION="A special version of wine for the Never Winter Nights toolkit" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://www.winehq.com/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 -ppc -sparc" +IUSE="nas arts cups opengl alsa tcltk" + +DEPEND="sys-devel/gcc + sys-devel/flex + dev-util/yacc + >=sys-libs/ncurses-5.2 + >=media-libs/freetype-2.0.0 + X? ( virtual/x11 ) + tcltk? ( dev-lang/tcl dev-lang/tk ) + arts? ( kde-base/arts ) + alsa? ( media-libs/alsa-lib ) + nas? ( media-libs/nas ) + cups? ( net-print/cups ) + opengl? ( virtual/opengl )" + +src_compile() { + cd ${S} + local myconf + + use opengl && myconf="--enable-opengl" || myconf="--disable-opengl" + [ -z $DEBUG ] && myconf="$myconf --disable-trace --disable-debug" || myconf="$myconf --enable-trace --enable-debug" + # there's no configure flag for cups, arts, alsa and nas, it's supposed to be autodetected + + # the folks at #winehq were really angry about custom optimization + export CFLAGS="" + export CXXFLAGS="" + + ./configure --prefix=/usr/lib/${PN} \ + --sysconfdir=/etc/${PN} \ + --host=${CHOST} \ + --enable-curses \ + ${myconf} || die + + cd ${S}/programs/winetest + cp Makefile 1 + sed -e 's:wine.pm:include/wine.pm:' 1 > Makefile + + # No parallel make + cd ${S} + make depend all || die + cd programs && emake || die +} + +src_install () { + local WINEMAKEOPTS="prefix=${D}/usr/lib/${PN}" + + ### Install wine to ${D} + cd ${S} + make ${WINEMAKEOPTS} install || die + cd ${S}/programs + make ${WINEMAKEOPTS} install || die + + # Needed for later installation + dodir /usr/bin + + ### Creation of /usr/lib/${PN}/.data + # set up fake_windows + dodir /usr/lib/${PN}/.data + cd ${D}/usr/lib/nwwine/.data + tar jxvf ${FILESDIR}/${P}-fake_windows.tar.bz2 + chown root:root fake_windows/ -R + + # unpack the miscellaneous files + tar jxvf ${FILESDIR}/${P}-misc.tar.bz2 + chown root:root config + + # move wrappers to bin/ + insinto /usr/bin + dobin regedit-nwwine nwwine + rm regedit-nwwine nwwine + + # put winedefault.reg into .data + insinto /usr/lib/${PN}/.data + doins ${WORKDIR}/${P}/winedefault.reg + + # set up this dynamic data + cd ${S} + insinto /usr/lib/${PN}/.data/fake_windows/Windows + doins documentation/samples/system.ini + doins documentation/samples/generic.ppd + ## Setup of .data complete + + ### Misc tasks + # take care of the documentation + cd ${S} + dodoc ANNOUNCE AUTHORS BUGS ChangeLog DEVELOPERS-HINTS LICENSE README + + # manpage setup + cp ${D}/usr/lib/${PN}/man/man1/wine.1 ${D}/usr/lib/${PN}/man/man1/${PN}.1 + doman ${D}/usr/lib/${PN}/man/man1/${PN}.1 + rm ${D}/usr/lib/${PN}/man/man1/${PN}.1 + + # remove the executable flag from those libraries. + cd ${D}/usr/lib/${PN}/lib/wine + chmod a-x *.so +} + +pkg_postinst() { + einfo "Use /usr/bin/nwwine to start wine. This is a wrapper-script" + einfo "which will take care of everything else." + einfo "" + einfo "Use /usr/bin/regedit-nwwine to import registry files into the" + einfo "wine registry." + einfo "" + einfo "If you have further questions, enhancements or patches" + einfo "send an email to phoenix@gentoo.org" +} |