diff options
author | Martin Holzer <mholzer@gentoo.org> | 2004-04-10 14:41:29 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2004-04-10 14:41:29 +0000 |
commit | 401658206568948b1b8c7ec4c222393f6d3f5b9d (patch) | |
tree | 8211c016be85dcddbc7ff1602d63cfafb51ce794 /app-emulation/wine/wine-20040408.ebuild | |
parent | adding metadata (diff) | |
download | historical-401658206568948b1b8c7ec4c222393f6d3f5b9d.tar.gz historical-401658206568948b1b8c7ec4c222393f6d3f5b9d.tar.bz2 historical-401658206568948b1b8c7ec4c222393f6d3f5b9d.zip |
Version bumped.
Diffstat (limited to 'app-emulation/wine/wine-20040408.ebuild')
-rw-r--r-- | app-emulation/wine/wine-20040408.ebuild | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/app-emulation/wine/wine-20040408.ebuild b/app-emulation/wine/wine-20040408.ebuild new file mode 100644 index 000000000000..7236490a2c49 --- /dev/null +++ b/app-emulation/wine/wine-20040408.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-20040408.ebuild,v 1.1 2004/04/10 14:41:29 mholzer Exp $ + +inherit eutils base + +DESCRIPTION="free implementation of Windows(tm) on Unix - CVS snapshot" +HOMEPAGE="http://www.winehq.com/" +SRC_URI="mirror://sourceforge/${PN}/Wine-${PV}.tar.gz + mirror://gentoo/${P}-fake_windows.tar.bz2 + mirror://gentoo/${PF}-misc.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 -ppc -sparc" +IUSE="nas arts cups opengl alsa tcltk nptl debug" + +DEPEND="sys-devel/gcc + sys-devel/flex + >=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_unpack() { + unpack Wine-${PV}.tar.gz + cd ${S} + epatch ${FILESDIR}/winearts-kdecvs-fix.patch +} + +src_compile() { + # there's no configure flag for cups, arts, alsa and nas, it's supposed to be autodetected + + unset CFLAGS CXXFLAGS + + ac_cv_header_jack_jack_h=no \ + ac_cv_lib_soname_jack= \ + ./configure \ + --prefix=/usr/lib/wine \ + --sysconfdir=/etc/wine \ + --host=${CHOST} \ + --enable-curses \ + `use_enable opengl` \ + `use_with nptl` \ + `use_enable debug trace` \ + `use_enable debug` \ + || die "configure failed" + + cd ${S}/programs/winetest + sed -i 's:wine.pm:include/wine.pm:' Makefile + + # No parallel make + cd ${S} + make depend all || die + cd programs && emake || die +} + +src_install() { + local WINEMAKEOPTS="prefix=${D}/usr/lib/wine" + + ### Install wine to ${D} + make ${WINEMAKEOPTS} install || die + cd ${S}/programs + make ${WINEMAKEOPTS} install || die + + # Needed for later installation + dodir /usr/bin + + ### Creation of /usr/lib/wine/.data + # Setting up fake_windows + dodir /usr/lib/wine/.data + cd ${D}/usr/lib/wine/.data + tar jxvf ${DISTDIR}/${P}-fake_windows.tar.bz2 + chown root:root fake_windows/ -R + + # Unpacking the miscellaneous files + tar jxvf ${DISTDIR}/${PF}-misc.tar.bz2 + chown root:root config + + # moving the wrappers to bin/ + insinto /usr/bin + dobin regedit-wine wine winedbg + rm regedit-wine wine winedbg + + # copying the winedefault.reg into .data + insinto /usr/lib/wine/.data + doins ${WORKDIR}/${P}/winedefault.reg + + # Set up this dynamic data + cd ${S} + insinto /usr/lib/wine/.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 + doman ${D}/usr/lib/${PN}/man/man5/wine.conf.5 + rm ${D}/usr/lib/${PN}/man/man5/wine.conf.5 + + # Remove the executable flag from those libraries. + cd ${D}/usr/lib/wine/lib/wine + chmod a-x *.so +} + +pkg_postinst() { + einfo "Use /usr/bin/wine to start wine. This is a wrapper-script" + einfo "which will take care of everything else." + einfo "" + einfo "Use /usr/bin/regedit-wine to import registry files into the" + einfo "wine registry." +} |