From 4abb04f5e9ac09f81d84a801b5cd7a98d8be16eb Mon Sep 17 00:00:00 2001 From: Viorel Munteanu Date: Sun, 4 Aug 2024 21:16:38 +0300 Subject: [PATCH] app-misc/doublecmd: new package, add 1.1.16 Bug: https://bugs.gentoo.org/415029 Signed-off-by: Viorel Munteanu --- app-misc/doublecmd/Manifest | 1 + app-misc/doublecmd/doublecmd-1.1.16.ebuild | 59 +++++++++++++++++++ .../files/doublecmd-1.1.16-build.patch | 11 ++++ app-misc/doublecmd/metadata.xml | 9 +++ 4 files changed, 80 insertions(+) create mode 100644 app-misc/doublecmd/Manifest create mode 100644 app-misc/doublecmd/doublecmd-1.1.16.ebuild create mode 100644 app-misc/doublecmd/files/doublecmd-1.1.16-build.patch create mode 100644 app-misc/doublecmd/metadata.xml diff --git a/app-misc/doublecmd/Manifest b/app-misc/doublecmd/Manifest new file mode 100644 index 0000000000..26f9d41211 --- /dev/null +++ b/app-misc/doublecmd/Manifest @@ -0,0 +1 @@ +DIST doublecmd-1.1.16-src.tar.gz 9607249 BLAKE2B d46ba3be34e6758005a9e5be9cc8563e8c9f09026c5bbaa84093183f39583334af458bb74071a4da5e35851ae055be511dc567c0ec2d43a830bf5081f83c236f SHA512 efedbd3166df7dae3254d0585794fcb8c780e33b4c999cf9671a0bfc3e0eebc5f33229c246bd76289d152a927e2fb0519b010e34bcf8e871e52130ed02dce9a9 diff --git a/app-misc/doublecmd/doublecmd-1.1.16.ebuild b/app-misc/doublecmd/doublecmd-1.1.16.ebuild new file mode 100644 index 0000000000..1b8f2fbd37 --- /dev/null +++ b/app-misc/doublecmd/doublecmd-1.1.16.ebuild @@ -0,0 +1,59 @@ +# Copyright 2016-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg + +DESCRIPTION="Cross Platform file manager" +HOMEPAGE="https://doublecmd.sourceforge.io/ https://github.com/doublecmd/doublecmd" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}-src.tar.gz" + +LICENSE="GPL-2+ LGPL-2.1+ LGPL-3 MPL-1.1 Boost-1.0 BZIP2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="qt6" + +RDEPEND=" + !app-misc/doublecmd-bin + dev-libs/glib:2 + sys-apps/dbus + x11-libs/libX11 + qt6? ( + dev-libs/libqt6pas:= + ) + !qt6? ( + dev-libs/libqt5pas:= + ) +" + +DEPEND=" + ${RDEPEND} + sys-libs/ncurses:= +" + +BDEPEND=" + qt6? ( + >=dev-lang/lazarus-3.0[qt6] + ) + !qt6? ( + >=dev-lang/lazarus-3.0[qt5] + ) +" + +PATCHES=( "${FILESDIR}"/${P}-build.patch ) + +# Built with fpc, does not respect anything +QA_FLAGS_IGNORED=".*" +QA_PRESTRIPPED=".*" + +src_compile(){ + ./build.sh release $(usex qt6 qt6 qt5) || die +} + +src_install(){ + ./install/linux/install.sh --install-prefix="${D}" || die + dodoc doc/README.txt doc/changelog.txt + rm -r "${ED}"/usr/share/doublecmd/doc || die + dosym -r /usr/share/doc/"${PF}" /usr/share/doublecmd/doc +} diff --git a/app-misc/doublecmd/files/doublecmd-1.1.16-build.patch b/app-misc/doublecmd/files/doublecmd-1.1.16-build.patch new file mode 100644 index 0000000000..b2c90cc87a --- /dev/null +++ b/app-misc/doublecmd/files/doublecmd-1.1.16-build.patch @@ -0,0 +1,11 @@ +--- a/build.sh ++++ b/build.sh +@@ -15,7 +15,7 @@ + # default - compiling DC only (using by default) + + # path to lazbuild +-export lazbuild=$(which lazbuild) ++export lazbuild="/usr/bin/lazbuild --pcp=~/.lazarus --lazarusdir=/usr/share/lazarus" + + # Set up widgetset: gtk or gtk2 or qt + # Set up processor architecture: i386 or x86_64 diff --git a/app-misc/doublecmd/metadata.xml b/app-misc/doublecmd/metadata.xml new file mode 100644 index 0000000000..3d67b2fb07 --- /dev/null +++ b/app-misc/doublecmd/metadata.xml @@ -0,0 +1,9 @@ + + + + + + doublecmd + doublecmd/doublecmd + +