dev-util/w32api: Migrate CROSSCOMPILE_OPTS=headers-only -> USE=headers-only
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 7 Jan 2018 18:45:41 +0000 (18:45 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 7 Jan 2018 19:39:45 +0000 (19:39 +0000)
CROSSCOMPILE_OPTS is a USE_EXPAND of a single item: headers-only.
Convert it to a global USE flag instead.

Mechanical ebuild rename done as:
    $ sed -e 's@crosscompile_opts_headers-only@headers-only@g' \
        -i $(git grep -l headers-only)

'headers-only' flag is used by crossdev to bootstrap stage1 compiler
before libc is available.

crossdev switched to USE=headers-only in =sys-devel/crossdev-20171230.

Bug: https://bugs.gentoo.org/642712
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-util/w32api/w32api-3.17.2.ebuild
dev-util/w32api/w32api-4.0.3.1.ebuild

index c04ebdcfad70558f6fdf07725a96a83ac343f79f..e718e475f2265c99463f7297f7a1f0cc728b512a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 export CBUILD=${CBUILD:-${CHOST}}
@@ -20,7 +20,7 @@ SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 ~ppc ~sparc x86"
-IUSE="crosscompile_opts_headers-only"
+IUSE="headers-only"
 RESTRICT="strip"
 
 DEPEND="app-arch/xz-utils"
@@ -29,7 +29,7 @@ RDEPEND=""
 S=${WORKDIR}/${MY_P}
 
 just_headers() {
-       use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+       use headers-only && [[ ${CHOST} != ${CTARGET} ]]
 }
 
 pkg_setup() {
index 0d8deb3895a8919b5557cff1320f7872f978f031..26a1f1cb5bf2497e714c09a35ceab7b4b457dffa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -23,7 +23,7 @@ LICENSE="BSD"
 SLOT="0"
 # Collides with mingw-runtime-4.x
 #KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE="crosscompile_opts_headers-only"
+IUSE="headers-only"
 RESTRICT="strip"
 
 DEPEND="app-arch/xz-utils"
@@ -32,7 +32,7 @@ RDEPEND=""
 S=${WORKDIR}/${MY_P/-m/.m}-src
 
 just_headers() {
-       use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+       use headers-only && [[ ${CHOST} != ${CTARGET} ]]
 }
 
 pkg_setup() {