aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Horodniceanu <a.horodniceanu@proton.me>2024-04-30 11:30:03 +0300
committerAndrei Horodniceanu <a.horodniceanu@proton.me>2024-04-30 11:41:35 +0300
commit938fcc98b345a05eccf5803df27c1216c5cd3693 (patch)
treeb16ecf693dbaab4008818e68f5609628afdb4898 /dev-libs
parentdev-util/dlang-tools: add 2.108.0 (diff)
downloaddlang-938fcc98b345a05eccf5803df27c1216c5cd3693.tar.gz
dlang-938fcc98b345a05eccf5803df27c1216c5cd3693.tar.bz2
dlang-938fcc98b345a05eccf5803df27c1216c5cd3693.zip
dev-libs/gtkd: enable dmd-2_108
Additionally refactor multilib_src_test a little and reorder variable to please pkgcheck. Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/gtkd/gtkd-3.10.0-r2.ebuild42
1 files changed, 20 insertions, 22 deletions
diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
index bc2c489..f07d56a 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
@@ -7,14 +7,14 @@ inherit multilib-minimal
DESCRIPTION="GtkD is a D binding and OO wrapper of GTK+"
HOMEPAGE="https://gtkd.org/"
+SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip"
LICENSE="LGPL-3"
SLOT="3"
KEYWORDS="~amd64 ~x86"
-SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip"
MULTILIB_COMPAT=( abi_x86_{32,64} )
-DLANG_COMPAT=( dmd-2_{106..107} gdc-13 ldc2-1_{35..36} )
+DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..36} )
declare -A DLANG_REQ_USE=(
[dmd]="${MULTILIB_USEDEP}"
[gdc]=""
@@ -103,36 +103,34 @@ multilib_src_compile() {
multilib_src_test() {
simple_test() {
- if multilib_is_native_abi; then
- local cmd=(
+ local cmd=(
+ ${DC} ${DCFLAGS} ${DLANG_LDFLAGS}
+ $(dlang_get_model_flag)
+ -Igenerated/gtkd
+ demos/gtkD/TestWindow/*.d
+ $(dlang_get_linker_flag)./libgtkd-3.so
+ $(dlang_get_linker_flag)-ldl
+ $(dlang_get_linker_flag)-rpath=./
+ $(dlang_get_output_flag)TestWindow
+ )
+
+ dlang_exec "${cmd[@]}"
+
+ if use static-libs; then
+ cmd=(
${DC} ${DCFLAGS} ${DLANG_LDFLAGS}
$(dlang_get_model_flag)
-Igenerated/gtkd
demos/gtkD/TestWindow/*.d
- $(dlang_get_linker_flag)./libgtkd-3.so
- $(dlang_get_linker_flag)-ldl
- $(dlang_get_linker_flag)-rpath=./
- $(dlang_get_output_flag)TestWindow
+ ./libgtkd-3.a
+ $(dlang_get_output_flag)TestWindow-static
)
dlang_exec "${cmd[@]}"
-
- if use static-libs; then
- cmd=(
- ${DC} ${DCFLAGS} ${DLANG_LDFLAGS}
- $(dlang_get_model_flag)
- -Igenerated/gtkd
- demos/gtkD/TestWindow/*.d
- ./libgtkd-3.a
- $(dlang_get_output_flag)TestWindow-static
- )
-
- dlang_exec "${cmd[@]}"
- fi
fi
}
- dlang_foreach_impl simple_test
+ multilib_is_native_abi && dlang_foreach_impl simple_test
}
multilib_src_install() {