From db822d7cb6f2cec1086d946f5376474b49902ca6 Mon Sep 17 00:00:00 2001 From: Sergey Torokhov Date: Fri, 3 Apr 2020 03:28:52 +0300 Subject: [PATCH] app-misc/doublecmd-bin: new package Double Commander is a free cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas. Signed-off-by: Sergey Torokhov --- app-misc/doublecmd-bin/Manifest | 4 ++ .../doublecmd-bin/doublecmd-bin-0.9.8.ebuild | 66 +++++++++++++++++++ app-misc/doublecmd-bin/files/doublecmd.xml | 7 ++ app-misc/doublecmd-bin/metadata.xml | 15 +++++ 4 files changed, 92 insertions(+) create mode 100644 app-misc/doublecmd-bin/Manifest create mode 100644 app-misc/doublecmd-bin/doublecmd-bin-0.9.8.ebuild create mode 100644 app-misc/doublecmd-bin/files/doublecmd.xml create mode 100644 app-misc/doublecmd-bin/metadata.xml diff --git a/app-misc/doublecmd-bin/Manifest b/app-misc/doublecmd-bin/Manifest new file mode 100644 index 0000000000..05ff92ea46 --- /dev/null +++ b/app-misc/doublecmd-bin/Manifest @@ -0,0 +1,4 @@ +DIST doublecmd-0.9.8.gtk2.i386.tar.xz 7355960 BLAKE2B 21f2e9c615f7a16ae27bdfbe34126e6ea3f8fa0273299a42c33e95ae637bc9472c8249854daa1916549554d4eb9b2d796c01b339592b88402c1624babbac626e SHA512 3b4f068f4a979a791a98f5605450de7205180f0f43f8a33e784245c5e061ae017161de39093b3ef5f4d24db372b75245ec5d9a50ea2d3d977f570a8c04fd8a1e +DIST doublecmd-0.9.8.gtk2.x86_64.tar.xz 8608936 BLAKE2B 8a00fa619312e11c382c7ea0beea6ab3366672d5848ac1de3f6f29cac038a756ad8670e9369d4f8bb572f1c1fba3785ec73f48dd5226cfaf53e57ebab015c0e6 SHA512 bd82826b2658fb12f2fe1a28f7c3f1d9c429bc1c60d3e6773b159c4dc1ba1bb2fdd2e89b52e686ab90b2accf7aa6c8379cfcf4f9b6f21f6956f402d721211b03 +DIST doublecmd-0.9.8.qt5.i386.tar.xz 7764336 BLAKE2B 298882bb2659625438e2975a92ae6de30f47afd6d9f3b5c7761b0ba1d26067e46c02204186ed111c56a1e8e954682310fe1be8c174ab60244ab7424d3b70ee8c SHA512 fd84028a3f3ef9cda94b70e9f396f42037915d56a9696ca0048beab12edf890576f092fca2601b0e3d3b02475c57edf828457c8278b9c9f821184083fed4f025 +DIST doublecmd-0.9.8.qt5.x86_64.tar.xz 8611472 BLAKE2B 69de983fb90b15826082882840b74d8a25efeb1477090c5e2697f52439c3bf041f247b4b472b22c7ec662ea75c6f275cd060b90dffbfd9ab6088394ea33b91de SHA512 eb3678ac5037052f9602357a52e4b596f6c5e17fcc1783dc83a76dab0dd7fb6cb1928b21f1c343e4c8810e96e3ad3f243f3ae45b39c07dc708beb3f05c9aa245 diff --git a/app-misc/doublecmd-bin/doublecmd-bin-0.9.8.ebuild b/app-misc/doublecmd-bin/doublecmd-bin-0.9.8.ebuild new file mode 100644 index 0000000000..12ba31476f --- /dev/null +++ b/app-misc/doublecmd-bin/doublecmd-bin-0.9.8.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils + +MY_PN="doublecmd" +DESCRIPTION="Free cross platform open source file manager with two panels side by side." +HOMEPAGE="http://doublecmd.sourceforge.net/" + +SRC_URI="amd64? ( gtk? ( mirror://sourceforge/${MY_PN}/${MY_PN}-${PV}.gtk2.x86_64.tar.xz ) + qt5? ( mirror://sourceforge/${MY_PN}/${MY_PN}-${PV}.qt5.x86_64.tar.xz ) ) + x86? ( gtk? ( mirror://sourceforge/${MY_PN}/${MY_PN}-${PV}.gtk2.i386.tar.xz ) + qt5? ( mirror://sourceforge/${MY_PN}/${MY_PN}-${PV}.qt5.i386.tar.xz ) )" + +# Licenses for package and plugins +LICENSE="GPL-2+ LGPL-2-with-linking-exception LGPL-2.1+ LGPL-3 GPL-1 freedist" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="gtk qt5" +REQUIRED_USE=" ^^ ( gtk qt5 ) " + +RESTRICT="mirror" + +S="${WORKDIR}/${MY_PN}" + +QA_PREBUILT=" + */doublecmd + */libQt5Pas.so.1 +" + +## "ldd doublecmd" output show linking to some libraries provided by sys-libs/glibc:2.2 +## (maybe virtual/libc-1) and no libraries of sys-libs/ncurses (that removed here). +## x11-libs/X11 is optional dependency of dev-qt/qtgui:5 by [xcb] or [X] +## therefore it is mentioned here explicitly. +RDEPEND=" + dev-libs/glib:2 + sys-apps/dbus + x11-libs/libX11 + virtual/libc + gtk? ( x11-libs/gtk+:2 ) + qt5? ( + dev-qt/qtgui:5 + dev-qt/qtx11extras:5 + ) +" + +src_prepare(){ + default + ## Create partial init config that allows to store config within user home directory + cp "${FILESDIR}/doublecmd.xml" "${S}/" +} + +src_install(){ + insinto "/opt/${PN}" + doins -r "${S}/." + + exeinto "/opt/${PN}" + doexe "${S}/${MY_PN}" + doexe "${S}/${MY_PN}.sh" + + doicon -s 48 ${MY_PN}.png + make_desktop_entry "/opt/${PN}/${MY_PN}.sh" "Double Commander" "${MY_PN}" "Utility;" || die "Failed making desktop entry!" +} diff --git a/app-misc/doublecmd-bin/files/doublecmd.xml b/app-misc/doublecmd-bin/files/doublecmd.xml new file mode 100644 index 0000000000..b4bb7cf672 --- /dev/null +++ b/app-misc/doublecmd-bin/files/doublecmd.xml @@ -0,0 +1,7 @@ + + + + False + + + diff --git a/app-misc/doublecmd-bin/metadata.xml b/app-misc/doublecmd-bin/metadata.xml new file mode 100644 index 0000000000..f23e6dac7c --- /dev/null +++ b/app-misc/doublecmd-bin/metadata.xml @@ -0,0 +1,15 @@ + + + + + torokhov-s-a@yandex.ru + Sergey Torokhov + + + Double Commander is a cross platform open source file manager with two panels side by side. + It is inspired by Total Commander and features some new ideas. + + + doublecmd + +