From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uI8XNyjv+GLP8AAAbAwnHQ (envelope-from ) for ; Sun, 14 Aug 2022 14:48:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SFQdNyjv+GK0/wAAauVa8A (envelope-from ) for ; Sun, 14 Aug 2022 14:48:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ABC041F16A for ; Sun, 14 Aug 2022 14:48:40 +0200 (CEST) Received: from localhost ([::1]:54538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oND2l-0002WV-Fm for larch@yhetil.org; Sun, 14 Aug 2022 08:48:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oND2A-0002Vc-Vq for guix-patches@gnu.org; Sun, 14 Aug 2022 08:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oND2A-0005pq-Mr for guix-patches@gnu.org; Sun, 14 Aug 2022 08:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oND2A-0003Gs-JM for guix-patches@gnu.org; Sun, 14 Aug 2022 08:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56803] [PATCH v2 1/6] gnu: Add swftools. References: In-Reply-To: Resent-From: Tomasz Jeneralczyk Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Aug 2022 12:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56803 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56803@debbugs.gnu.org Cc: Tomasz Jeneralczyk Received: via spool by 56803-submit@debbugs.gnu.org id=B56803.166048123512329 (code B ref 56803); Sun, 14 Aug 2022 12:48:02 +0000 Received: (at 56803) by debbugs.gnu.org; 14 Aug 2022 12:47:15 +0000 Received: from localhost ([127.0.0.1]:36139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oND1P-0003Cl-2c for submit@debbugs.gnu.org; Sun, 14 Aug 2022 08:47:15 -0400 Received: from outgoing1.lunanode.net ([172.81.176.235]:56524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oND1J-0003CI-LA for 56803@debbugs.gnu.org; Sun, 14 Aug 2022 08:47:12 -0400 Received: from mail1.lunanode.net (mail1.lunanode.net [170.75.162.243]) by outgoing1.lunanode.net (Postfix) with ESMTPS id E22E040011 for <56803@debbugs.gnu.org>; Sun, 14 Aug 2022 12:47:08 +0000 (UTC) From: Tomasz Jeneralczyk Date: Sun, 14 Aug 2022 14:46:18 +0200 Message-Id: <458d155cb6f630e0e8aea1793a4c97b3d76520e6.1660481045.git.tj@schwi.pl> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660481320; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=iTiuxE9lg1yI4d+1wCzcf4QbaTo7eQNhqXnkPtDui90=; b=WQBVuQdeGuNRm+fTO7vbVDNTh6pb5MGf/b6JhffhYBtK7DZrDJjOa5/Y9HkQMxXjWhC7H8 nWcLX9OCdpJpMBYHu1DSXITYP8R6FlLo7/nkYXggaRONjZqv3AlyQvFMkn0d903vOYy42P dKroEtwfji6S618jaugCtvkvUK3LjAt2hi6Qut2YNW4GYcqBeWwA5prHrRfbMt7fgR6L1t jsRQojNGXLY/fq99xB2ejzfjYlPQp0Dga6lFXsxvSPH6ftu5mnqlWzl7KdSwGdpyB/LEia 7c+8K5WmJuC91QcC0sLH/pa+pfazUg+xUI7iU+2tNSY4vsM6g6OJXE8tXGkvfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660481320; a=rsa-sha256; cv=none; b=ciW2fpy5B2UrlSQPQv9gzkK56ty95m2zm67ZGKeEvOYSxx3LfTDgYPB27boiTX7yfQOMzK gw7IyeOcxufKoZaz2Zqs1dJxwxlO6hyfDOMMXoTNRTE9JhPny+9XvYbm0kZL5lwWYF4bSt lbAMxJnfw+ksU9EVD2BUsZGgPWpoAmp9NJ+FSNbBP6eJ1TatRpPQX5Lc4JMOLOsPUCjPjR e1jmZGpgv1vYt1kWfiEfyR/4FUDfI4Ar/DHeuzVlRDVNaXo3vI2boS6F8mbRt5EXKt+WJw 3uMFnhmZ4B9msZ7pW4zR7S0RSlzgSN+LwZit9tWCEYWOnd2d9BlrXD7WdC0CGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.66 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ABC041F16A X-Spam-Score: -1.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: earX/us9TSEG This package will built all of swftools' tools but one: PDF2SWF, so I purposefuly commented it out of description. Swftools includes the source tarball of an old version of xpdf and I have not been successful in replacing it with the version distributed in guix. However I believe the near-completeness of the package warrants a release. Also updated copyright and used modules. *gnu/packages/animation.scm (swftools): Add variable. --- gnu/packages/animation.scm | 93 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm index ba8ce00fbd..6a017895a3 100644 --- a/gnu/packages/animation.scm +++ b/gnu/packages/animation.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice ;;; Copyright © 2019 Pkill -9 ;;; Copyright © 2020, 2021 Vinicius Monego +;;; Copyright © 2022 Tomasz Jeneralczyk ;;; ;;; This file is part of GNU Guix. ;;; @@ -47,6 +48,7 @@ (define-module (gnu packages animation) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) #:use-module (gnu packages jemalloc) + #:use-module (gnu packages mp3) #:use-module (gnu packages networking) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) @@ -496,3 +498,94 @@ (define-public pencil2d lets you create traditional hand-drawn animations (cartoons) using both bitmap and vector graphics.") (license license:gpl2))) + +(define-public swftools + ;; Last release of swftools was 0.9.2 on 2012-04-21 - it is really old and + ;; does not compile with what's available in guix, master on the other hand works. + (let ((commit "772e55a271f66818b06c6e8c9b839befa51248f4") + (revision "1")) + (package + (name "swftools") + (version (git-version "0.9.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/matthiaskramm/swftools") + (commit commit))) + (sha256 + (base32 "0a8a29rn7gpxnba3spnvkpdgr7mdlssvr273mzw5b2wjvbzard3w")) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet + '(begin + ;; To fix a linking error I followed the workaround in: + ;; https://github.com/matthiaskramm/swftools/issues/178 + ;; and implented it as a two-step snippet because substitute* + ;; does not match multiline regexes. + (substitute* "lib/lame/quantize.c" + ;; move inline keywords to the same line as their function headers + (("^inline.*\n") "inline ")) + (substitute* "lib/lame/quantize.c" + ;; make this particular function not inline + (("inline (void bitpressure_strategy1)" _ f) f)))))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f)) ; no rule for check + (inputs (list zlib freetype giflib libjpeg-turbo lame)) + (home-page "http://www.swftools.org") + (synopsis "Collection of utilities for working with Adobe Flash files") + (description "SWFTools is a collection of utilities for working with +Adobe Flash files (SWF files). The tool collection includes programs for +reading SWF files, combining them, and creating them from other content (like +images, sound files, videos or sourcecode). The current collection is + comprised of the programs detailed below: + +@itemize +@comment PDF2SWF is not currentlybeing build alongside other tools. The next +@comment two lines should be uncommented if this will ever get fixed. +@comment @item +@comment @command{PDF2SWF} A PDF to SWF Converter. + +@item +@command{SWFCombine} A multi-function tool for inserting, contatenating, +stacking and changing parameters in SWFs. + +@item +@command{SWFStrings} Scans SWFs for text data. +@item +@command{SWFDump} Prints out various informations about SWFs. + +@item +@command{JPEG2SWF} Takes one or more JPEG pictures and generates a SWF +slideshow from them. + +@item +@command{PNG2SWF} Like JPEG2SWF, only for PNGs. + +@item +@command{GIF2SWF} Converts GIFs to SWF. Also able to handle animated gifs. + +@item +@command{WAV2SWF} Converts WAV audio files to SWFs, using the L.A.M.E. MP3 + encoder library. + +@item +@command{Font2SWF} Converts font files (TTF, Type1) to SWF. + +@item +@command{SWFBBox} Allows to read out, optimize and readjust SWF bounding boxes. + +@item +@command{SWFC} A tool for creating SWF files from simple script files. Supports +both ActionScript 2.0 aand 3.0. + +@item +@command{SWFExtract} Allows to extract Movieclips, Sounds, Images etc. from SWF + files. + +@item +@command{AS3Compile} A standalone ActionScript 3.0 compiler. Mostly compatible + with Flex. +@end itemize") + (license license:gpl2)))) base-commit: ca8c7a36dfbefd66841a2a6df4c9e44ba525c3e0 -- 2.37.1