commit:     a60141e8e553f43b7735cd733906f0222632843a
Author:     Andrii Pravorskyi <pravorskyi <AT> meta <DOT> ua>
AuthorDate: Tue Sep 27 21:22:34 2022 +0000
Commit:     Andrii Pravorskyi <pravorskyi <AT> meta <DOT> ua>
CommitDate: Tue Sep 27 21:26:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a60141e8

sys-fs/ddrescueview: new package, add 0.4.5

Signed-off-by: Andrii Pravorskyi <pravorskyi <AT> meta.ua>

 sys-fs/ddrescueview/Manifest                  |  1 +
 sys-fs/ddrescueview/ddrescueview-0.4.5.ebuild | 50 +++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/sys-fs/ddrescueview/Manifest b/sys-fs/ddrescueview/Manifest
new file mode 100644
index 000000000..5ecf9b5db
--- /dev/null
+++ b/sys-fs/ddrescueview/Manifest
@@ -0,0 +1 @@
+DIST ddrescueview-0.4.5.tar.xz 211184 BLAKE2B 
bc4ef003b0df7a7059a9f3d738e294a527a039e04e84732b285497df60a575dfedcec3deea87166dd8136cb7745b8d821e18bd499cc2b059fa463e178bdeb892
 SHA512 
8791b0852fc9fa19a239300f4377adc072b4524e506807918284e935b00fe1c0fa2589acd645ea44a808881edfe77a0f8c8776c6dfc7bf54b283a92da1d7dccd

diff --git a/sys-fs/ddrescueview/ddrescueview-0.4.5.ebuild 
b/sys-fs/ddrescueview/ddrescueview-0.4.5.ebuild
new file mode 100644
index 000000000..6b4771b53
--- /dev/null
+++ b/sys-fs/ddrescueview/ddrescueview-0.4.5.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${PN}-source-${PV}"
+
+inherit edo
+
+DESCRIPTION="Graphical viewer for GNU ddrescue mapfiles"
+HOMEPAGE="https://sourceforge.net/projects/ddrescueview/";
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz -> ${P}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="
+       dev-lang/lazarus
+"
+
+# I don't know yet how not to strip debug info during lazbuild build
+QA_PRESTRIPPED="usr/bin/ddrescueview"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+       cd source || die
+       edo lazbuild \
+               --lazarusdir=/usr/share/lazarus \
+               --primary-config-path="${HOME}" \
+               --skip-dependencies \
+               --verbose \
+               ddrescueview.lpi
+       default
+}
+
+src_install() {
+       dobin source/ddrescueview
+       chmod +x "${D}/usr/bin/ddrescueview"
+
+       insinto /usr/share
+       doins -r resources/linux/applications
+       doins -r resources/linux/icons
+       doman resources/linux/man/man1/ddrescueview.1
+
+       dodoc changelog.txt
+       dodoc readme.txt
+       default
+}

Reply via email to