commit:     0cdb9d7114e66847e675384a659b82bc0a2b6bff
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Feb 18 22:17:36 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Feb 18 22:43:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=0cdb9d71

dev-util/dlang-tools: add 2.107.0

Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> proton.me>

 dev-util/dlang-tools/Manifest                   |  1 +
 dev-util/dlang-tools/dlang-tools-2.107.0.ebuild | 61 +++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-util/dlang-tools/Manifest b/dev-util/dlang-tools/Manifest
index 0d1a52d..194a7b9 100644
--- a/dev-util/dlang-tools/Manifest
+++ b/dev-util/dlang-tools/Manifest
@@ -1 +1,2 @@
 DIST dlang-tools-2.106.1.tar.gz 129644 BLAKE2B 
014adf42be0c4f82b96d1857eff01e5927a5e179cf99e0928abb2300b7ed3e1e2719e2a38a0ff36dc776b61dcd5ae24affd18ed26a1eabdab1185430eeb888b3
 SHA512 
bed6ec6cf6287104ad1d5e79e8512094b1aec69be09206104ea58d4bff8af8c5f15012db0237aa195a58baa85a8d880b054ea66a7352fc0684218bfa563b2d32
+DIST dlang-tools-2.107.0.tar.gz 128252 BLAKE2B 
9d51eda89ab60ca1a98933c8e17ac4ea545d5c8f70ed7f9fec655e8888a37a5487a11345306fd02d7ab27c4ef3127795d4900d47db558ca0e337e163e6102dee
 SHA512 
7e12f29eb230d7160b985bb6f892b8b267d51bdab96c9f75ab0d80d9fea596c106253f2673bfc54084f343116751c827e83aa8a27cad77c71b3475a0f9b2806d

diff --git a/dev-util/dlang-tools/dlang-tools-2.107.0.ebuild 
b/dev-util/dlang-tools/dlang-tools-2.107.0.ebuild
new file mode 100644
index 0000000..ea02763
--- /dev/null
+++ b/dev-util/dlang-tools/dlang-tools-2.107.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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} )"
+
+DLANG_SLOT="$(ver_cut 1-2)"
+RESTRICT="mirror"
+
+BETA="$(ver_cut 4)"
+VERSION="$(ver_cut 1-3)"
+
+if [[ -n "${BETA}" ]]; then
+       # We want to convert a Gentoo version string into an upstream one: 
2.097.0_rc1 -> 2.097.0-rc.1
+       VERSION="$(ver_rs 3 "-" 4 ".")"
+fi
+SRC_URI="https://codeload.github.com/dlang/tools/tar.gz/v${VERSION} -> 
dlang-tools-${VERSION}.tar.gz"
+
+DLANG_VERSION_RANGE="2.100-2.107"
+DLANG_PACKAGE_TYPE="single"
+
+inherit desktop dlang xdg-utils
+
+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
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to