aboutsummaryrefslogtreecommitdiff
blob: e994f592149d48d297ada429f8cc09469a7b6c6f (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

KEYWORDS="-* amd64 x86"
YEAR=2019
DLANG_VERSION_RANGE="2.073-2.098"

DEPEND='dev-vcs/git'

inherit dmd

PATCHES=(
	"${FILESDIR}/2.082-allow-deprecations.patch"
	"${FILESDIR}/2.078-link-32-bit-shared-lib-with-ld.bfd.patch"
)

dmd_src_prepare_extra() {
	# Copy default DDOC theme file into resource directory
	mkdir "dmd/res" || die "Failed to create 'dmd/res' directory"
	cp "${FILESDIR}/2.084-default_ddoc_theme.ddoc" "dmd/res/default_ddoc_theme.ddoc" || die "Failed to copy 'default_ddoc_theme.ddoc' file into 'src/res' directory."

	# Copy missing config.d
	cp "${FILESDIR}/2.084-config.d" "dmd/config.d" || die "Failed to copy 'config.d' file into 'dmd' directory."
}