blob: f580f67e439cbddbd6c9ae4c6a50a3e2c59d4b9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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"
# Pascal ignores CFLAGS and does its own stripping. Nothing else can be done about it.
QA_FLAGS_IGNORED="usr/bin/ddrescueview"
QA_PRESTRIPPED="${QA_FLAGS_IGNORED}"
RESTRICT="strip"
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
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
}
|