Last active
May 14, 2019 16:27
-
-
Save robbat2/475fd6215cb37bd4bc08e85174db5dbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild | |
index dc0a935d311d..554393dadce6 100644 | |
--- a/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild | |
+++ b/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild | |
@@ -17,9 +17,14 @@ fi | |
DESCRIPTION="Linux firmware files" | |
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git" | |
-LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+" | |
+# If USE=bindist, the resulting binpkg should be @BINARY-REDISTRIBUTABLE | |
+LICENSE="linux-firmware-free | |
+ ( BSD ISC MIT no-source-code ) | |
+ GPL-2 | |
+ GPL-2+ | |
+ !bindist? ( linux-firmware-nonfree )" | |
SLOT="0" | |
-IUSE="savedconfig" | |
+IUSE="+bindist savedconfig" | |
DEPEND="" | |
RDEPEND="!savedconfig? ( | |
@@ -63,7 +68,7 @@ RDEPEND="!savedconfig? ( | |
)" | |
#add anything else that collides to this | |
-RESTRICT="binchecks strip" | |
+RESTRICT="!bindist? ( bindist ) binchecks strip" | |
src_unpack() { | |
if [[ ${PV} == 99999999* ]]; then | |
@@ -78,6 +83,10 @@ src_unpack() { | |
src_prepare() { | |
default | |
+ if use bindist; then | |
+ # TODO: delete nonfree stuff | |
+ fi | |
+ | |
echo "# Remove files that shall not be installed from this list." > ${PN}.conf | |
find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment