-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Horodniceanu Andrei <a.horodniceanu@protonmail.com>
- Loading branch information
Showing
6 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
KEYWORDS="-* ~amd64 ~x86" | ||
YEAR=2021 | ||
DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-2.098" | ||
|
||
inherit dmd | ||
|
||
PATCHES=( | ||
"${FILESDIR}/2.097-link-32-bit-shared-lib-with-ld.bfd.patch" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
DESCRIPTION="Ancilliary tools for the D programming language compiler" | ||
HOMEPAGE="http://dlang.org/" | ||
LICENSE="Boost-1.0" | ||
|
||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
TOOLS="ddemangle detab dustmite rdmd" | ||
IUSE="+ddemangle detab dustmite +rdmd" | ||
REQUIRED_USE="|| ( ${TOOLS} )" | ||
|
||
inherit eapi7-ver | ||
|
||
DLANG_SLOT="$(ver_cut 1-2)" | ||
RESTRICT="mirror" | ||
|
||
BETA="$(ver_cut 4)" | ||
VERSION="$(ver_cut 1-3)" | ||
|
||
if [[ -n "${BETA}" ]]; then | ||
VERSION="${VERSION}-b${BETA:4}" | ||
fi | ||
SRC_URI="https://codeload.github.com/dlang/tools/tar.gz/v${VERSION} -> dlang-tools-${VERSION}.tar.gz" | ||
|
||
DLANG_VERSION_RANGE="2.075-" | ||
DLANG_PACKAGE_TYPE="single" | ||
|
||
inherit eutils dlang | ||
|
||
S="${WORKDIR}/tools-${VERSION}" | ||
|
||
d_src_compile() { | ||
use ddemangle && dlang_compile_bin ddemangle ddemangle.d | ||
use detab && dlang_compile_bin detab detab.d | ||
use dustmite && dlang_compile_bin dustmite DustMite/dustmite.d DustMite/splitter.d DustMite/polyhash.d | ||
use rdmd && dlang_compile_bin rdmd rdmd.d | ||
} | ||
|
||
d_src_install() { | ||
for tool in ${TOOLS}; do | ||
if use "${tool}"; then | ||
dobin "${tool}" | ||
fi | ||
done | ||
|
||
# file icons | ||
for size in 16 22 24 32 48 256; do | ||
newicon --size "${size}" --context mimetypes "${FILESDIR}/icons/${size}/dmd-source.png" text-x-dsrc.png | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters