diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-10-03 22:34:18 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-10-03 22:34:18 +0000 |
commit | 2ad32da9f15edc6ced45646061ed58b406da9b9d (patch) | |
tree | 5c1a9159cf9bada500eca915e6e6b64de4d2600f /app-emulation | |
parent | Initial import. Ebuild by Ben Urban <benurban@comcast.net> and closing bug #... (diff) | |
download | gentoo-2-2ad32da9f15edc6ced45646061ed58b406da9b9d.tar.gz gentoo-2-2ad32da9f15edc6ced45646061ed58b406da9b9d.tar.bz2 gentoo-2-2ad32da9f15edc6ced45646061ed58b406da9b9d.zip |
Fix building with USE=-X #107870 by ChazeFroy and dont display library warning since it is irrelevant for Gentoo users #107971 by Holly Bostick.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/wine/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/wine/files/wine-20050930-dont-warn-lib-path.patch | 22 | ||||
-rw-r--r-- | app-emulation/wine/files/wine-20050930-no-x.patch | 22 | ||||
-rw-r--r-- | app-emulation/wine/wine-20050930.ebuild | 47 |
4 files changed, 81 insertions, 18 deletions
diff --git a/app-emulation/wine/ChangeLog b/app-emulation/wine/ChangeLog index b1e6b93e02cf..b0d127b3caab 100644 --- a/app-emulation/wine/ChangeLog +++ b/app-emulation/wine/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/wine # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.107 2005/10/02 03:25:58 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.108 2005/10/03 22:34:18 vapier Exp $ + + 03 Oct 2005; Mike Frysinger <vapier@gentoo.org> + +files/wine-20050930-dont-warn-lib-path.patch, + +files/wine-20050930-no-x.patch, wine-20050930.ebuild: + Fix building with USE=-X #107870 by ChazeFroy and dont display library + warning since it is irrelevant for Gentoo users #107971 by Holly Bostick. 02 Oct 2005; Mike Frysinger <vapier@gentoo.org> files/wine-20041019-alsa-headers.patch: diff --git a/app-emulation/wine/files/wine-20050930-dont-warn-lib-path.patch b/app-emulation/wine/files/wine-20050930-dont-warn-lib-path.patch new file mode 100644 index 000000000000..28d0782d1770 --- /dev/null +++ b/app-emulation/wine/files/wine-20050930-dont-warn-lib-path.patch @@ -0,0 +1,22 @@ +Hide warning so users don't freak out and do stupid stuff. + +http://bugs.gentoo.org/107971 + +--- wine/Makefile.in ++++ wine/Makefile.in +@@ -86,6 +86,7 @@ + install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal + + install:: install-lib install-dev install-aclocal ++ifeq (dont,warn) #($(DESTDIR),) + -$(LDCONFIG) + @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \ + then \ +@@ -98,6 +99,7 @@ + echo "*************************************************" ; \ + echo "*************************************************" ; \ + fi ++endif + + uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__) + $(RM) $(datadir)/aclocal/wine.m4 diff --git a/app-emulation/wine/files/wine-20050930-no-x.patch b/app-emulation/wine/files/wine-20050930-no-x.patch new file mode 100644 index 000000000000..8f9db9998134 --- /dev/null +++ b/app-emulation/wine/files/wine-20050930-no-x.patch @@ -0,0 +1,22 @@ +Make sure we only depend on ddraw_test if X support is enabled + +http://bugs.gentoo.org/107870 (among others) +http://bugs.winehq.org/show_bug.cgi?id=3480 + +--- wine/programs/winetest/Makefile.in ++++ wine/programs/winetest/Makefile.in +@@ -18,12 +18,13 @@ + RC_BINSRC = winetest.rc + RC_BINARIES = wine.ico + ++XFILES = ddraw_test.exe$(DLLEXT) + TESTBINS = \ ++ @XFILES@ \ + advpack_test.exe$(DLLEXT) \ + advapi32_test.exe$(DLLEXT) \ + comctl32_test.exe$(DLLEXT) \ + crypt32_test.exe$(DLLEXT) \ +- ddraw_test.exe$(DLLEXT) \ + dinput_test.exe$(DLLEXT) \ + dsound_test.exe$(DLLEXT) \ + gdi32_test.exe$(DLLEXT) \ diff --git a/app-emulation/wine/wine-20050930.ebuild b/app-emulation/wine/wine-20050930.ebuild index a9067fac4e4e..672aaa1c84df 100644 --- a/app-emulation/wine/wine-20050930.ebuild +++ b/app-emulation/wine/wine-20050930.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-20050930.ebuild,v 1.1 2005/10/01 00:48:20 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-20050930.ebuild,v 1.2 2005/10/03 22:34:18 vapier Exp $ inherit eutils flag-o-matic multilib @@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/Wine-${PV}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="-* ~amd64 ~x86" -IUSE="X alsa arts cups debug nas opengl gif glut jack jpeg oss ncurses lcms" +IUSE="alsa arts cups debug esd gif glut jack jpeg lcms ldap nas ncurses opengl oss scanner truetype xml2 X" RESTRICT="test" #72375 RDEPEND=">=media-libs/freetype-2.0.0 @@ -21,13 +21,18 @@ RDEPEND=">=media-libs/freetype-2.0.0 X? ( virtual/x11 ) arts? ( kde-base/arts ) alsa? ( media-libs/alsa-lib ) + esd? ( media-sound/esound ) nas? ( media-libs/nas ) cups? ( net-print/cups ) opengl? ( virtual/opengl ) gif? ( media-libs/giflib ) jpeg? ( media-libs/jpeg ) + ldap? ( net-nds/openldap ) glut? ( virtual/glut ) lcms? ( media-libs/lcms ) + xml2? ( dev-libs/libxml2 dev-libs/libxslt ) + truetype? ( media-libs/freetype ) + scanner? ( media-gfx/sane-backends ) amd64? ( >=app-emulation/emul-linux-x86-xlibs-2.1 >=app-emulation/emul-linux-x86-soundlibs-2.1 @@ -63,38 +68,46 @@ src_unpack() { epatch "${FILESDIR}"/winearts-kdecvs-fix.patch sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in epatch "${FILESDIR}"/20041019-no-stack.patch #66002 - epatch "${FILESDIR}"/wine-20050830-gcc-32bit.patch +# epatch "${FILESDIR}"/wine-20050830-gcc-32bit.patch + epatch "${FILESDIR}"/wine-20050930-no-x.patch + epatch "${FILESDIR}"/wine-20050930-dont-warn-lib-path.patch #107971 } config_cache() { local h ans="no" - use ${1} && ans="yes" + use $1 && ans="yes" shift for h in "$@" ; do - export ac_cv_${h}=${ans} + [[ ${h} == *.h ]] \ + && h=header_${h} \ + || h=lib_${h} + export ac_cv_${h//[:\/.]/_}=${ans} done } src_compile() { export LDCONFIG=/bin/true - config_cache jack header_jack_jack_h - config_cache cups header_cups_cups_h - config_cache alsa header_alsa_asoundlib_h header_sys_asoundlib_h lib_asound_snd_pcm_open - use arts || export ARTSCCONFIG="/bin/false" - config_cache nas header_audio_audiolib_h header_audio_soundlib_h - config_cache gif header_gif_lib_h - config_cache glut lib_glut_glutMainLoop - config_cache jpeg header_jpeglib_h - config_cache oss header_sys_soundcard_h header_machine_soundcard_h header_soundcard_h - config_cache lcms header_lcms_h + use arts || export ARTSCCONFIG="/bin/false" + use esd || export ESDCONFIG="/bin/false" + use scanner || export sane_devel="no" + config_cache jack jack/jack.h + config_cache cups cups/cups.h + config_cache alsa alsa/asoundlib.h sys/asoundlib.h asound:snd_pcm_open + config_cache nas audio/audiolib.h audio/soundlib.h + config_cache xml2 libxml/parser.h libxslt/pattern.h libxslt/transform.h + config_cache ldap ldap.h lber.h + config_cache gif gif_lib.h + config_cache glut glut:glutMainLoop + config_cache jpeg jpeglib.h + config_cache oss sys/soundcard.h machine/soundcard.h soundcard.h + config_cache lcms lcms.h + use x86 && config_cache truetype freetype:FT_Init_FreeType strip-flags use lcms && append-flags -I"${ROOT}"/usr/include/lcms # $(use_enable amd64 win64) - # USE=debug is broken in this release econf \ - CC=$(tc-getCC) \ --sysconfdir=/etc/wine \ $(use_with ncurses curses) \ $(use_with opengl) \ |