From patchwork Thu Apr 3 21:01:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 336777 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 05F0A140095 for ; Fri, 4 Apr 2014 08:02:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4665B31A3D; Thu, 3 Apr 2014 21:02:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DFmuPCMGyLR4; Thu, 3 Apr 2014 21:02:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DA86931BE0; Thu, 3 Apr 2014 21:02:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D63B61C1E95 for ; Thu, 3 Apr 2014 21:02:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D36CD8C827 for ; Thu, 3 Apr 2014 21:02:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1g4ZE8lMipXo for ; Thu, 3 Apr 2014 21:02:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marvin.crapouillou.net (rev33.vpn.fdn.fr [80.67.179.33]) by whitealder.osuosl.org (Postfix) with ESMTPS id 277808C829 for ; Thu, 3 Apr 2014 21:02:22 +0000 (UTC) Received: from 95-91-234-117-dynip.superkabel.de ([95.91.234.117] helo=debian.hitronhub.home) by marvin.crapouillou.net with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1WVomA-00045j-4p; Thu, 03 Apr 2014 23:02:18 +0200 From: Paul Cercueil To: buildroot@busybox.net Date: Thu, 3 Apr 2014 23:01:18 +0200 Message-Id: <1396558881-29631-8-git-send-email-paul@crapouillou.net> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1396558881-29631-1-git-send-email-paul@crapouillou.net> References: <1396558881-29631-1-git-send-email-paul@crapouillou.net> Cc: Maarten ter Huurne Subject: [Buildroot] [PATCH 08/11] python-pygame: Make installation of examples optional X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Maarten ter Huurne They take up 1.5 MB in the target file system. Signed-Off-By: Maarten ter Huurne Acked-By: Paul Cercueil --- package/python-pygame/Config.in | 6 ++++++ package/python-pygame/python-pygame.mk | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/package/python-pygame/Config.in b/package/python-pygame/Config.in index b9a367d..f72ee31 100644 --- a/package/python-pygame/Config.in +++ b/package/python-pygame/Config.in @@ -20,6 +20,12 @@ config BR2_PACKAGE_PYTHON_PYGAME_IMAGE pygame module for loading, saving and transfering images. Will autoselect sdl_image with png and jpeg support. +config BR2_PACKAGE_PYTHON_PYGAME_EXAMPLES + bool "pygame.examples" + help + Include examples. + Selecting this option adds about 1.5 MB to the target file system. + config BR2_PACKAGE_PYTHON_PYGAME_FONT bool "pygame.font" select BR2_PACKAGE_SDL_TTF diff --git a/package/python-pygame/python-pygame.mk b/package/python-pygame/python-pygame.mk index d9219b9..77f9f6f 100644 --- a/package/python-pygame/python-pygame.mk +++ b/package/python-pygame/python-pygame.mk @@ -92,6 +92,13 @@ define PYTHON_PYGAME_REMOVE_TESTS rm -rf $(TARGET_DIR)/usr/lib/python*/site-packages/pygame/tests endef +ifneq ($(BR2_PACKAGE_PYTHON_PYGAME_EXAMPLES),y) +define PYTHON_PYGAME_REMOVE_EXAMPLES + rm -rf $(TARGET_DIR)/usr/lib/python*/site-packages/pygame/examples +endef +PYTHON_PYGAME_POST_INSTALL_TARGET_HOOKS += PYTHON_PYGAME_REMOVE_EXAMPLES +endif + PYTHON_PYGAME_POST_INSTALL_TARGET_HOOKS += PYTHON_PYGAME_REMOVE_TESTS $(eval $(python-package))