Skip to content

Commit

Permalink
app-misc/doublecmd: new package, add 1.1.16
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/415029
Signed-off-by: Viorel Munteanu <[email protected]>
  • Loading branch information
ceamac committed Aug 5, 2024
1 parent 057adb2 commit 4abb04f
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-misc/doublecmd/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST doublecmd-1.1.16-src.tar.gz 9607249 BLAKE2B d46ba3be34e6758005a9e5be9cc8563e8c9f09026c5bbaa84093183f39583334af458bb74071a4da5e35851ae055be511dc567c0ec2d43a830bf5081f83c236f SHA512 efedbd3166df7dae3254d0585794fcb8c780e33b4c999cf9671a0bfc3e0eebc5f33229c246bd76289d152a927e2fb0519b010e34bcf8e871e52130ed02dce9a9
59 changes: 59 additions & 0 deletions app-misc/doublecmd/doublecmd-1.1.16.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 11 additions & 0 deletions app-misc/doublecmd/files/doublecmd-1.1.16-build.patch
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions app-misc/doublecmd/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="sourceforge">doublecmd</remote-id>
<remote-id type="github">doublecmd/doublecmd</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 4abb04f

Please sign in to comment.