From patchwork Fri Dec 2 07:18:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 45017 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0267B27BBEB; Fri, 2 Dec 2022 07:20:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6407727BBE9 for ; Fri, 2 Dec 2022 07:20:26 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p10L5-0000gA-QR; Fri, 02 Dec 2022 02:20:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p10L4-0000fs-C5 for guix-patches@gnu.org; Fri, 02 Dec 2022 02:20:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p10L4-0005te-3D for guix-patches@gnu.org; Fri, 02 Dec 2022 02:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p10L3-0002uU-UW for guix-patches@gnu.org; Fri, 02 Dec 2022 02:20:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59765] Add Sourcetrail Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 02 Dec 2022 07:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 59765@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.166996554411159 (code B ref -1); Fri, 02 Dec 2022 07:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 07:19:04 +0000 Received: from localhost ([127.0.0.1]:44843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p10K7-0002tq-68 for submit@debbugs.gnu.org; Fri, 02 Dec 2022 02:19:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:57872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p10K1-0002tP-Tl for submit@debbugs.gnu.org; Fri, 02 Dec 2022 02:19:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p10K0-0000Ec-PR for guix-patches@gnu.org; Fri, 02 Dec 2022 02:18:57 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p10Jx-0005l9-JD for guix-patches@gnu.org; Fri, 02 Dec 2022 02:18:56 -0500 Date: Fri, 02 Dec 2022 07:18:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669965530; x=1670224730; bh=BFoKr94r98Y2nomwQoJYNgdOdVxdKXM/T6jhhy7HfrQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Jv4ZfyOrDQuM2iMNlbABtY1YOvd61yfPCMQeKazK3f0vJKjxhaPjXyLJELmUyHPQw yJYKPgkuLK7uOxlFN1urndUaznU35trXOpEuIGrowH4JvIFGs4N29Kk1nBoPmkEXL7 hIiJZWRXgfyoY88rw9Q4hX8Pcxq4HmVCHLKx/anfWTcSHF8gORoG58HtqTJgRju6JE n0T+auC3WcGRHSXFhsiWvZ3iSdnbxXxV+Ljc6oFr2ybT6P1zi6YtT9V5/5tUS7gkBZ ILpNtjBXX9VaDjmz75Ac7bNQWdL8t4c+7s/Fdh2T029AEN+r3XifFPbinEaTM2czLi llEvTc+GTv6wg== Message-ID: Feedback-ID: 14143818:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.133; envelope-from=phodina@protonmail.com; helo=mail-40133.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, these patches add Sourcetrail code analysis tool, which unfortunately is not longer developed. ---- Petr From 015a65f27f46bbdad3e07dbabc5154609ae6ec2d Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Thu, 11 Nov 2021 19:21:44 +0100 Subject: [PATCH 2/2] gnu: Add sourcetrail. * gnu/packages/qt.scm (sourcetrail): New variable. diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 30bf429897..540959bbbc 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -62,6 +62,7 @@ (define-module (gnu packages qt) #:use-module (gnu packages base) #:use-module (gnu packages bison) #:use-module (gnu packages check) + #:use-module (gnu packages boost) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cups) @@ -4261,6 +4262,46 @@ (define-public qhexedit data.") (license license:lgpl2.1))) +(define-public sourcetrail +(package + (name "sourcetrail") + (version "2021.1.30") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/CoatiSoftware/Sourcetrail") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0h0q2bfa6dv8hmc15rzj48bna1krzjwlcjm25dffbsi81xjcazb5")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags #~(list "-DBoost_USE_STATIC_LIBS=OFF" (string-append + "-DBOOST_ROOT=" #$(this-package-input "boost") "/lib")) + #:phases + #~(modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out #$output) + (prefix (string-append out "/opt/sourcetrail")) + (build (getcwd)) + (share (string-append prefix "/share"))) + (mkdir-p (string-append out "/bin")) + (install-file (string-append build "/app/Sourcetrail") (string-append + out "/bin")) + (install-file (string-append build + "/app/sourcetrail_indexer") (string-append + out "/bin")))))))) + (native-inputs (list pkg-config)) + (inputs (list boost-for-sourcetrail + qtbase-5 + qtsvg-5)) + (synopsis "Interactive source explorer") + (description "Offline source explorer that helps you get productive on unfamiliar source code with optional IDE integration.") + (home-page "https://www.sourcetrail.com") + (license license:gpl3))) + (define-public soqt (let ((commit-ref "fb8f655632bb9c9c60e0ff9fa69a5ba22d3ff99d") (revision "1")) -- 2.38.1