diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2013-04-28 05:02:47 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2013-04-28 05:02:47 +0000 |
commit | 1f96e229300ef7c4437f32a78a13460dd6d4b217 (patch) | |
tree | fd355d5042606e72222c51e4b6688503620d555d /app-emulation | |
parent | masked bump to next version series (diff) | |
download | historical-1f96e229300ef7c4437f32a78a13460dd6d4b217.tar.gz historical-1f96e229300ef7c4437f32a78a13460dd6d4b217.tar.bz2 historical-1f96e229300ef7c4437f32a78a13460dd6d4b217.zip |
Version bump, see http://www.winehq.org/announce/1.5.29 for the announcement.
Package-Manager: portage-2.2.0_alpha173/cvs/Linux x86_64
Manifest-Sign-Key: 0xCF0ADD61
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/wine/ChangeLog | 7 | ||||
-rw-r--r-- | app-emulation/wine/Manifest | 18 | ||||
-rw-r--r-- | app-emulation/wine/wine-1.5.29.ebuild | 302 |
3 files changed, 318 insertions, 9 deletions
diff --git a/app-emulation/wine/ChangeLog b/app-emulation/wine/ChangeLog index 1bbb01441c02..f76e9eb06d91 100644 --- a/app-emulation/wine/ChangeLog +++ b/app-emulation/wine/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/wine # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.460 2013/04/14 00:32:20 tetromino Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.461 2013/04/28 05:02:34 tetromino Exp $ + +*wine-1.5.29 (28 Apr 2013) + + 28 Apr 2013; Alexandre Rostovtsev <tetromino@gentoo.org> +wine-1.5.29.ebuild: + Version bump, see http://www.winehq.org/announce/1.5.29 for the announcement. *wine-1.5.28 (14 Apr 2013) diff --git a/app-emulation/wine/Manifest b/app-emulation/wine/Manifest index e2296338eb52..6dc34b09cf8a 100644 --- a/app-emulation/wine/Manifest +++ b/app-emulation/wine/Manifest @@ -34,6 +34,7 @@ DIST wine-1.5.25.tar.bz2 21381514 SHA256 3d93266fbc1bf04fbe28c0028d4366102734138 DIST wine-1.5.26.tar.bz2 21359704 SHA256 97a9a3cbbda848c55bbe09fd455be834ccf5ab82472feaef3949a1cd3efe8cc4 SHA512 263b320d08b6142784d665f06d9310bc73193f38bddb01cf07a9c381796888fc651e77bec7e6838adf1ec6cf0abd8673af51eea6e760826deaafb462a7ee318d WHIRLPOOL 058e53ddf6f77da30a809ec8cb6234b13d5a9a416ccfc8a5edfc418ee45ef7373645315fe80f86ef6f045b3e4ffec0bdce8c4f4f5b9342f619eb858f026d6de9 DIST wine-1.5.27.tar.bz2 22034699 SHA256 ca2bd31d15b6ddb7f900c813ed113b732a61057d7e1669ab37494284c259d4b8 SHA512 429d1c6e90b3b75021b3b37da5fa58d880b4f574a59ddf5f3c626a6dbd1674136942ce433eec2887a0d1a66ab63ec518b78c1d7700e7f4c7305656fe1833a590 WHIRLPOOL 605b762f22bf2cb78008728a3ab3f1f9de0eaf6c2ae656c55778797ed0765bf12bfdab417175e4402c8e55a896d8326c3319ee196b51591e354411213f3b59f4 DIST wine-1.5.28.tar.bz2 22151210 SHA256 0bf84b97213b07b7339543abcdfccc9da22bebcc4d20ce9ca22fdc1502136046 SHA512 6951430cfd71b4d6e14ffa928ac77c4788ee8436fc012ed6787cc89fdb0c054e06a42b75b4ea42f94cdd9e267cc4daddec11e724f4bf8c42282b72cb9e56be56 WHIRLPOOL 95c98db867a263ae615a17f3f3e3ff6d23595dfdb56551a90c8e782d8c1fbd433ae09eea1e639574c1235bda334683dc9e7b04c982529b0519347312e0848c55 +DIST wine-1.5.29.tar.bz2 22144030 SHA256 387c0ed440e1df2e94aa3630320949976a81725e48912f4d9856009d6b7888b1 SHA512 778a36e224a60a1e8be834944582c922f463e98e5d69c86416e94490a0492ea5f70b9c083fe9426f00268b0b292819bef77dbc9ccfe8df1b2f0190b8bb412ffa WHIRLPOOL 8274435b3fa5928c4c5e123dd30c341f8ef9f03449ea34042dc9285edb77440c6c7b043ae73319617a981354acacf8d4be3ce11e370ff530b0194f5fa4db9777 DIST wine-1.5.3.tar.bz2 20171697 SHA256 d3e8e484cbc2c4888bc880d0b0c8b52299d36a5cecc96d9367b59142345a1206 SHA512 947c20100d02ec6d393f9bdc1899ddeda21be7fa75869f91953e0eec30f2083b2a7fd31ad92c44765b417e3023914db9cc9945fd241207d8189f20ae92da100a WHIRLPOOL a2e2752731feae4d2a44dd0db1edabadd8c7530abd6e988e5c8f862ba70e234874e1a21ad8a25f4dc68e965d4b5122431278b3ed7674145f7fa935e0c78dcca5 DIST wine-1.5.4.tar.bz2 20187597 SHA256 90b10450b1afb4d54dfd20529e040daa4ee901c52b2f3bc452a86c2e06b4b759 SHA512 cb58358a2af9e15d7ebff21f9f834d521736eeaa44ce0c36d88400f3d3667c5432711bea64322e77c166e024d2ea03d47f64a4fd648d0a802bc44da80e1eb2fe WHIRLPOOL e007bc572181745c585bf24c6aa6a87830df17b57384d180e932b229f89b55d38f2b673243e8b5a5243afb303a18c52092bfbe61f0b49473c7c85edb0056a068 DIST wine-1.5.5.tar.bz2 20158084 SHA256 e7d5ba716d2ac47193fa31eff66cc179145ddcb453c6923eaea70596a82b084e SHA512 f9d080cf3e17b73658222b95e15c353d40963aaaa9cbb4b6293ea69709e68715a97e89854c336288ba6a0a41cb0fc9e2713721705935835e4c9f53fa5b7a3e74 WHIRLPOOL 9f44bf75854410c142f94fe12e028ab120521ffd5b9de682c3eeb6690a35c8b4f5be2eecfd6e02e2bc28594f1524e2b6604035744d6b56a9c3d16d5c0cdc6d5d @@ -99,6 +100,7 @@ EBUILD wine-1.5.25.ebuild 8794 SHA256 fa2f326e3c91101d25dc0cb7e7c9182f83693ccb6f EBUILD wine-1.5.26.ebuild 8794 SHA256 22bb522337544abdca902f2c935e2f60ef4ead386a5eedceaf0bae5d2bb93964 SHA512 7ecc174ecedda8a1709de2a15dba628510c6a797d4291c5511ede23cec080c3d0e911071f8ce1ee21559cc29d90312c7beaa2a8f2e744cdcde04d185a745e84f WHIRLPOOL d19b8825a81d4ad89cc7b645bfa1ba8d9b1726bd9523219ed9fe3f4e4a80b4dc76110996cf41d6810c0a7337a53697aea43560d6f2ededee07395252f3c5b697 EBUILD wine-1.5.27.ebuild 8794 SHA256 b8214a379a8734d7c09a6ba5a26bd6a73d345a7fb46d26d54476c984cb57d438 SHA512 38b3227549307d880e199aa005c3ab35b0b2e811ea844e7ba6834b897c87e5e3c4780f61b8b1936382834ddab35c28d1842d22da993696e5b3bb220d52f549a8 WHIRLPOOL 2cd0c84a4d9c90fcbb538ced3e64a6039353c7dbc7873d009347af35ec9ea1f55ecebd44ce454dad800ca5bd0416465839880927cb692555de09fab8a8ff034f EBUILD wine-1.5.28.ebuild 8744 SHA256 8ac5d32bab5d0095392d6109fc98187c39d3012acbfcc6e8bd36c5bcb94d3c8a SHA512 83ae85ed34867b98a2f7bc69077bdb3c14429d89e059e48cec8999765996105ca286cbfc3074234186bef198fd426b8dab8da04939595c4dc9a573e124d1d92a WHIRLPOOL 7995e56c408bc80357be8920ff1e09efc56b27708cc798014010091f0c7a07eedb6e672ca56a62b28b9b6784fc97c0748a244dfebe13d49fb33a35cc450721a8 +EBUILD wine-1.5.29.ebuild 8744 SHA256 0267e39653d2d038afa0c9af2cbb967cc63c7bb3d4d520e9858643f404594976 SHA512 46928e5bd00e5dbbdadff663cf8d7e5dcbeadd8487edbae3506abdcf293931ed5ec0a793968107e854575bf48f5969f2dc38328b087e228bdacf6e8a413ab88d WHIRLPOOL db78e40c4a697be5a641a7772a28eb79f8750711cf7e30bddace4c829b39c605648ec073774374e2fec48e52240e9a977352e938d29d7a196dee5301ddc359d6 EBUILD wine-1.5.3.ebuild 6472 SHA256 a30de3a10bffde82ec8dbeb8e672bce3f856eaed01929ba96fb4b349b90b881e SHA512 c15a15bcafdd17781afde71b23ea2702fcbb59955d774c208a2d72f9850698c416a363dd87e8b4e61e54961b7d8eb1ab68bbc7a4b7f85ddc9e53733cb35111c5 WHIRLPOOL 3768fba372eb40db0f777e1e37ef48882b04be70566c93a0ec9b3fde0e8200f38a3fcfe8e434c2231635beab1b33a928b3c27686d7a7c3cde36c1b1b11b503f7 EBUILD wine-1.5.4.ebuild 6472 SHA256 ed7909b53cc4c1834aad421902dd6510084d6ab0d634d444bb78f28f478ec43c SHA512 d840732b25ad02aae9af364a5384db3d6ea69d1bbc71ee48118558f0e127d48c4b90b2ca64ba6d49a2a87a3892547d20c4d85484cf7af5b394be807acf72ab5d WHIRLPOOL def73de0006d9647e8f62e004a29d6a930b5a7e5d4961d33cb10198d694d32652643b0b58301b569499052a1702368d09d46cb4420dfd8ccbd09a213d2c849c0 EBUILD wine-1.5.5.ebuild 6415 SHA256 d247e6e7f72c925c847b37859e5a2b5fb74bcde5c662509d58248a6da8452631 SHA512 27c963d5f5f0f0b64d7b0689273fb9ef5067304468eb4ea865389562cbd3c8c9af4bb892bd6fc6d2c3fb5cf7502dab3410214ff8de274411338e3769949ba30f WHIRLPOOL d3944f8795a06b18db0ecec166f129c43e62390a7f588ec8eca50aa885191905636e55b1a587ce335b6842b8ed079428daf5440f1e18139f677200a1c819d76e @@ -107,17 +109,17 @@ EBUILD wine-1.5.7.ebuild 6923 SHA256 08ac49eccdb16bbe11e246e01c449b4a46df3fba01e EBUILD wine-1.5.8.ebuild 6923 SHA256 29f247c643c007c3d45f4e1700d622879f2805935b0c04c8331d8931a523be35 SHA512 e8b0e8df2f18bb3d736091d0f26f6509861244d028b2cf5c5fd6f6fc5071cdcdfa526f1f5f3af7c316926fc0ab5bee2ff7174b3714eb1d06c03a3778f3de33ff WHIRLPOOL 7867d477b5239a283d43ef7c401c34869c969d6aac66c450a627d8d19dfe7e874020823b1f41944dfe4819ab92db81cb137b3a914b101809849267a3779e0eb7 EBUILD wine-1.5.9.ebuild 6923 SHA256 374268a106f968d93a5db63dcdb28b06a6682c30166b03835a18c8c5c70aead2 SHA512 ca61b5d254f015ca808dd665d4f6981090c1da004bc4f11cb5d1d6ea6f42b00763452a606346d1bfe9e60c35f9496bf4efc85ffd6a4cd4080cd7d515bb9d983b WHIRLPOOL e6453e640c3dbe82465e9232fc691b6f5c618f53d6d59794fd081a02112c384836e36551642e5b2430d5d2a7c5f715203b3e1f03667cfba458e96244ff9637e9 EBUILD wine-9999.ebuild 8744 SHA256 cc4021a6f88c4941714862a74c358fdc2aaaf4647b0b10cb9c9e4fd828499e76 SHA512 437ee520962f7170a39db03d7a791dfd532019cd59059dd30a1da087d997e6166f950ab3026d3cc7b1eefa1a64fd7ca4c0c891d80708961c44d6b41f540aa48f WHIRLPOOL cc2b8b2a9a26e12b331d0619f5387b5161967a357d219c3674430f217a66c8d18fb80f43ad51086ebb97d2f3403d44f5cf395bf27dc84ea087525454c98b7719 -MISC ChangeLog 5389 SHA256 9c70ec8c8fd02aa1a1407d487c7eeefbc92643772b39d2003937f1903886a6eb SHA512 f12c8920f2729936522e6003b913fb1c60c8c8783bd994a86846522b1247b8bc98d6b2f553b51a8e0bd636e56f6f814994ad510abe1a5655c16699325b59bcd3 WHIRLPOOL 061ad6cda56d9b1688be24cf9d4e66728bae8f2dbe8f1e8ede2547097d4061584cbe6ac8f0194ca2d333cc38f3422ed687251013833d809fe909f669e3886ff5 +MISC ChangeLog 5578 SHA256 9253ea163b0d084479c74a134217d6ed77b71ad5de9c83df66f7bbb533340c94 SHA512 20da4661e794a350296ea5e8e6754f3ba2f805c738e63d355f8acf36faa50a7f0d883a271e7333cf5b8e3428b8b69c6531ab771f5a8805c625d99dfdf807648b WHIRLPOOL 7de1276e05c324557abeca2269afacda75f56dd89ffc821b4a34503f3ad8d223d26d885a02c54063531cd3122f2a0b836509e04aef291ad7fbfdb89c5b122406 MISC ChangeLog-2012 100362 SHA256 8e70fc54e7945c1f41e3e0b64fef6b9a7fe89acdaf8c79a06a16048fe8d2e26c SHA512 ca875e847ba100e1f19774b31a2b45a81d776275e3d11944be8a7b01dfcdbf4265b1a340d691bc4fe4054fea006059a06ed52bc0516b1f8b44a1772a1c813278 WHIRLPOOL 36ec708601a25cb8fa93b471112538480b6ef82cc4e6703b3d045f883078b49209ceaeef7bafa8417b881c2d11df84df9c83d1985d0d687a11f3db3de5abb014 MISC metadata.xml 1857 SHA256 8a16a223604fe47d86a35f79912e60aa419c467dd050ae21d96ea45d615f92ea SHA512 279a5169d2ab779ad41889f8d6b24e8d2de7bba3a611470d5d9cb6c5f27930d336de07bd2431ae9a0c9065887456c150fb2e3582201280945f8fb1520e0a3a3e WHIRLPOOL 1797da0945b3134c72ed15da155a26b24431f35051bc729edec9466a2db73a49a1919993a562e23c8315c362f10a43b3d26fd9fbec205518fadbf9b6324172d3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQEcBAEBCAAGBQJRafkgAAoJEJ0WA1zPCt1hQd8IAKZ++4hyGEQaL5Sgmc1lKeE4 -5HOhhEFSuZC9NlEQN1xK3r/OSpa7XrPO6BOLIfX33pPzK4FBS05XsnR3X1FYlREh -JZSpdTwvmhzeyrHYJWBujRNFIh3Q2uoWRJhqaz5/tXKgewNFmhY9Pxfg5wBOSmsQ -zyTbhRLfWyBLDutqtX2e2J766QmdHsywMpoToRL0zSjaMjKVZqvh+AG6YD2hzt1t -TV0GGg+GoxxiT2ppozDsD6H0vBBCt475N3W6m9TJXkj7ZWhzaZdtXIcyQICZ3wJI -nuyDUSJs3MgvaiHIjcPextZeghQUAEdqdg59QfPx6RpFI32eE0OZAYj5le8RNxY= -=mvr5 +iQEcBAEBCAAGBQJRfK1sAAoJEJ0WA1zPCt1hTFEH/1GimfRKRaAxNFaugXqYgB/Z +fGG1yAuDYq052AC4wxS7Qheu+K/1TFQoW3EtOAB83HRnUqWe3UFy+yZCwt8rhEGo +PQoCD9Fzrnmv8tCGjlqHSZDDTJ7j3jQDp3F8vSzieOcj5SspRxv2BxWhknZrGyGp +rB1/tdNR4I79sZibZclK65jD7Mk1ZLeaxUEsf9H6ijt1twfwn43wP+zUhjvO0Ad9 +MYLWSwC1fk2YuPNDbagQbHMJu3XwmzUxGmoD4X3bP5mQSMjFBzUU6binDPp6vbTN +6xAjd+oPTrFRhqiT76qVD2RZq64g2bzqDSELAoPM+G1GYt1y0lQ1HgsmBbEefog= +=kAmq -----END PGP SIGNATURE----- diff --git a/app-emulation/wine/wine-1.5.29.ebuild b/app-emulation/wine/wine-1.5.29.ebuild new file mode 100644 index 000000000000..8bdea51ea48b --- /dev/null +++ b/app-emulation/wine/wine-1.5.29.ebuild @@ -0,0 +1,302 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.29.ebuild,v 1.1 2013/04/28 05:02:35 tetromino Exp $ + +EAPI="5" + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://source.winehq.org/git/wine.git" + inherit git-2 + SRC_URI="" + #KEYWORDS="" +else + MY_P="${PN}-${PV/_/-}" + SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" + KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" + S=${WORKDIR}/${MY_P} +fi + +GV="1.9" +MV="0.0.8" +PULSE_PATCHES="winepulse-patches-1.5.25" +WINE_GENTOO="wine-gentoo-2012.11.24" +DESCRIPTION="Free implementation of Windows(tm) on Unix" +HOMEPAGE="http://www.winehq.org/" +SRC_URI="${SRC_URI} + gecko? ( + abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) + abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) + ) + mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) + http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 + http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml" +[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio" +REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) + test? ( abi_x86_32 ) + elibc_glibc? ( threads ) + mono? ( abi_x86_32 ) + osmesa? ( opengl )" #286560 + +# FIXME: the test suite is unsuitable for us; many tests require net access +# or fail due to Xvfb's opengl limitations. +RESTRICT="test" + +RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) + perl? ( dev-lang/perl dev-perl/XML-Simple ) + capi? ( net-dialup/capi4k-utils ) + ncurses? ( >=sys-libs/ncurses-5.2:= ) + fontconfig? ( media-libs/fontconfig:= ) + gphoto2? ( media-libs/libgphoto2:= ) + openal? ( media-libs/openal:= ) + udisks? ( + sys-apps/dbus + sys-fs/udisks:2 + ) + gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) + X? ( + x11-libs/libXcursor + x11-libs/libXext + x11-libs/libXrandr + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXxf86vm + ) + xinerama? ( x11-libs/libXinerama ) + alsa? ( media-libs/alsa-lib ) + cups? ( net-print/cups:= ) + opencl? ( virtual/opencl ) + opengl? ( + virtual/glu + virtual/opengl + ) + gsm? ( media-sound/gsm:= ) + jpeg? ( virtual/jpeg:= ) + ldap? ( net-nds/openldap:= ) + lcms? ( media-libs/lcms:0= ) + mp3? ( >=media-sound/mpg123-1.5.0 ) + nls? ( sys-devel/gettext ) + odbc? ( dev-db/unixODBC:= ) + osmesa? ( media-libs/mesa[osmesa] ) + samba? ( >=net-fs/samba-3.0.25 ) + selinux? ( sec-policy/selinux-wine ) + xml? ( dev-libs/libxml2 dev-libs/libxslt ) + scanner? ( media-gfx/sane-backends:= ) + ssl? ( net-libs/gnutls:= ) + png? ( media-libs/libpng:0= ) + v4l? ( media-libs/libv4l ) + xcomposite? ( x11-libs/libXcomposite ) + amd64? ( + abi_x86_32? ( + gstreamer? ( app-emulation/emul-linux-x86-gstplugins ) + truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] ) + X? ( + >=app-emulation/emul-linux-x86-xlibs-2.1[development] + >=app-emulation/emul-linux-x86-soundlibs-2.1[development] + ) + mp3? ( app-emulation/emul-linux-x86-soundlibs[development] ) + odbc? ( app-emulation/emul-linux-x86-db[development] ) + openal? ( app-emulation/emul-linux-x86-sdl[development] ) + opengl? ( app-emulation/emul-linux-x86-opengl[development] ) + osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] ) + scanner? ( app-emulation/emul-linux-x86-medialibs[development] ) + v4l? ( app-emulation/emul-linux-x86-medialibs[development] ) + >=app-emulation/emul-linux-x86-baselibs-20130224[development] + >=sys-kernel/linux-headers-2.6 + ) + )" +[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND} + pulseaudio? ( + media-sound/pulseaudio + sys-auth/rtkit + )" +DEPEND="${RDEPEND} + X? ( + x11-proto/inputproto + x11-proto/xextproto + x11-proto/xf86vidmodeproto + ) + xinerama? ( x11-proto/xineramaproto ) + prelink? ( sys-devel/prelink ) + virtual/pkgconfig + virtual/yacc + sys-devel/flex" + +# These use a non-standard "Wine" category, which is provided by +# /etc/xdg/applications-merged/wine.menu +QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop +usr/share/applications/wine-notepad.desktop +usr/share/applications/wine-uninstaller.desktop +usr/share/applications/wine-winecfg.desktop" + +src_unpack() { + if use abi_x86_64; then + [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ + && die "you need gcc-4.4+ to build 64bit wine" + fi + + if use abi_x86_32 && use opencl; then + [[ x$(eselect opencl show) = "xintel" ]] && + die "Cannot build wine[opencl,abi_x86_32]: intel-ocl-sdk is 64-bit only" # 403947 + fi + + if [[ ${PV} == "9999" ]] ; then + git-2_src_unpack + else + unpack ${MY_P}.tar.bz2 + fi + + unpack "${PULSE_PATCHES}.tar.bz2" + unpack "${WINE_GENTOO}.tar.bz2" +} + +src_prepare() { + local md5="$(md5sum server/protocol.def)" + local PATCHES=( + "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 + "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 + "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386 + "${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308 + ) + [[ ${PV} == "9999" ]] || PATCHES+=( + "../${PULSE_PATCHES}"/*.patch #421365 + ) + + autotools-utils_src_prepare + + if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then + einfo "server/protocol.def was patched; running tools/make_requests" + tools/make_requests || die #432348 + fi + sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die + sed -i '/^MimeType/d' tools/wine.desktop || die #117785 +} + +do_configure() { + local myeconfargs=( + "${myeconfargs[@]}" + CCAS="$(tc-getAS)" + ) + + if use amd64; then + if [[ ${ABI} == amd64 ]]; then + myeconfargs+=( --enable-win64 ) + else + myeconfargs+=( --disable-win64 ) + fi + + # Note: using --with-wine64 results in problems with multilib.eclass + # CC/LD hackery. We're using separate tools instead. + fi + + autotools-utils_src_configure +} + +src_configure() { + export LDCONFIG=/bin/true + use custom-cflags || strip-flags + + local myeconfargs=( # common + --sysconfdir=/etc/wine + $(use_with alsa) + $(use_with capi) + $(use_with lcms cms) + $(use_with cups) + $(use_with ncurses curses) + $(use_with udisks dbus) + $(use_with fontconfig) + $(use_with ssl gnutls) + $(use_with gphoto2 gphoto) + $(use_with gsm) + $(use_with gstreamer) + --without-hal + $(use_with jpeg) + $(use_with ldap) + $(use_with mp3 mpg123) + $(use_with nls gettext) + $(use_with openal) + $(use_with opencl) + $(use_with opengl) + $(use_with osmesa) + $(use_with oss) + $(use_with png) + $(use_with threads pthread) + $(use_with scanner sane) + $(use_enable test tests) + $(use_with truetype freetype) + $(use_with v4l) + $(use_with X x) + $(use_with xcomposite) + $(use_with xinerama) + $(use_with xml) + $(use_with xml xslt) + ) + + [[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) ) + + multilib_parallel_foreach_abi do_configure +} + +src_compile() { + autotools-multilib_src_compile depend + autotools-multilib_src_compile all +} + +src_test() { + if [[ $(id -u) == 0 ]]; then + ewarn "Skipping tests since they cannot be run under the root user." + ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" + return + fi + + # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" + multilib_toolchain_setup x86 + local BUILD_DIR="${S}-${ABI}" + cd "${BUILD_DIR}" || die + WINEPREFIX="${T}/.wine-${ABI}" Xemake test +} + +src_install() { + local DOCS=( ANNOUNCE AUTHORS README ) + autotools-multilib_src_install + + emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" + if use gecko ; then + insinto /usr/share/wine/gecko + use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi + use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi + fi + if use mono ; then + insinto /usr/share/wine/mono + doins "${DISTDIR}"/wine-mono-${MV}.msi + fi + if ! use perl ; then + rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die + fi + + use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 + use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} + + if use abi_x86_64 && ! use abi_x86_32; then + dosym /usr/bin/wine{64,} # 404331 + dosym /usr/bin/wine{64,}-preloader + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |