public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2021-05-21 17:20 Marco Leise
  0 siblings, 0 replies; 13+ messages in thread
From: Marco Leise @ 2021-05-21 17:20 UTC (permalink / raw
  To: gentoo-commits

commit:     daa62b1afb66f09d875435e1ecb598bd5bc1aa84
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Mon May 17 15:27:26 2021 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon May 17 15:27:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=daa62b1a

gtkd-3.9.0

Signed-off-by: Marco Leise <marco.leise <AT> gmx.de>

 dev-libs/gtkd/Manifest          |   1 +
 dev-libs/gtkd/gtkd-3.9.0.ebuild | 119 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)

diff --git a/dev-libs/gtkd/Manifest b/dev-libs/gtkd/Manifest
index 9dbe82c..5161ad5 100644
--- a/dev-libs/gtkd/Manifest
+++ b/dev-libs/gtkd/Manifest
@@ -1,2 +1,3 @@
 DIST GtkD-2.4.2.zip 4190939 BLAKE2B 90a47d0882cb57f94b75a155cb949e4272669764abefcc65b4c0cdece05409e669d87076d094bf8f5f7c342c9be506006f78314341a8291b858d787599a29efa SHA512 2d936c9ab69f8ea6fbd91696c91f04820f579e3cdb85914cda6611ac675dadd0d6e8d792ffced640097797f6851016474fadf964e2fc5032262c0945b875cd46
 DIST GtkD-3.8.5.zip 4513387 BLAKE2B eb2bf2a5103e14300dee6c3f9abb567b35af272a479c7a4b8dadd4bb480b5aec996a9e54c7fc3a319cbff30bf9dcec71167a05e1440b501b0f91e5ebae79f191 SHA512 efd43a72a514b0b8de9f1db982f2304c264e3a68915da849fe1d6a5c24b8abe2a072526bba3f1c1e3bea81c162de33cd8c570092438c016087d94e875c9a32a5
+DIST GtkD-3.9.0.zip 4576099 BLAKE2B 50d0bda16f3026f1c068f7b65049005b86367ee1ced581bb2f941c202e0038f1bc6be350bd4bcb30f69ec0696ae0e7bbf4336546153bda389683d44c87d58eac SHA512 f8b8a7b83a23af990abb77f16e4bddf2f72bb65ad210ff8f138b0d4ff66fb5fb2a73a3cbe868a8d2ecf3abf98ece5af771af63068dc2fbf8668e46039320cf0f

diff --git a/dev-libs/gtkd/gtkd-3.9.0.ebuild b/dev-libs/gtkd/gtkd-3.9.0.ebuild
new file mode 100644
index 0000000..90a9580
--- /dev/null
+++ b/dev-libs/gtkd/gtkd-3.9.0.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="GtkD is a D binding and OO wrapper of GTK+"
+HOMEPAGE="http://gtkd.org/"
+LICENSE="LGPL-3"
+
+SLOT="3"
+KEYWORDS="~amd64 ~x86"
+SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip"
+
+DLANG_VERSION_RANGE="2.074-"
+DLANG_PACKAGE_TYPE="multi"
+
+inherit dlang
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	>=x11-libs/gtk+-3.24:3[${MULTILIB_USEDEP}]
+	>=dev-libs/glib-2.60:2[${MULTILIB_USEDEP}]
+	>=x11-libs/pango-1.43[${MULTILIB_USEDEP}]
+	>=dev-libs/atk-2.32[${MULTILIB_USEDEP}]
+	>=x11-libs/gdk-pixbuf-2.38:2[${MULTILIB_USEDEP}]
+	>=x11-libs/cairo-1.12.2[${MULTILIB_USEDEP}]
+	sourceview? ( >=x11-libs/gtksourceview-4.2:4 )
+	gstreamer? ( >=media-libs/gstreamer-1.16:1.0[${MULTILIB_USEDEP}] )
+	vte? ( >=x11-libs/vte-0.56:2.91 )
+	peas? ( >=dev-libs/libpeas-1.20 )
+"
+
+GTKD_USE_FLAGS=(gtk  opengl sourceview gstreamer  vte  peas)
+GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv     gstreamerd vted peasd)
+GTKD_SRC_DIRS=( gtkd gtkdgl sourceview gstreamer  vte  peas)
+IUSE="${GTKD_USE_FLAGS[@]:1} static-libs"
+
+MAJOR=$(ver_cut 1)
+MINOR=$(ver_cut 2-)
+
+src_unpack() {
+	unzip -q "${DISTDIR}/${A}" -d "${S}"
+}
+
+d_src_compile() {
+	compile_libs() {
+		# Build the shared library version of the component
+		# The test phase expects no version extension on the .so
+		local sources=generated/${SRC_DIR}/*/*.d
+		if [ ${LIB_NAME} != gtkdgl ]; then
+			sources+=" "generated/${SRC_DIR}/*/c/*.d
+		fi
+		if [ ${LIB_NAME} == gstreamerd ]; then
+			sources+=" "generated/gstreamer/gst/*/*.d" "generated/gstreamer/gst/*/c/*.d
+		fi
+		echo $sources
+		dlang_compile_lib_so lib${LIB_NAME}-${MAJOR}.so \
+			lib${LIB_NAME}-${MAJOR}.so.0 -Isrc -Igenerated/gtkd ${sources}
+
+		# Build the static library version
+		if use static-libs; then
+			local libname=lib${LIB_NAME}-${MAJOR}
+			if [[ "${DLANG_VENDOR}" == "DigitalMars" ]]; then
+				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -lib ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a
+			elif [[ "${DLANG_VENDOR}" == "GNU" ]]; then
+				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -c ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.o
+				dlang_exec ar rcs ${libname}.a ${libname}.o
+			elif [[ "${DLANG_VENDOR}" == "LDC" ]]; then
+				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -lib -od=${SRC_DIR} -oq ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a
+			fi
+		fi
+	}
+
+	foreach_used_component compile_libs
+}
+
+d_src_test() {
+	dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Igenerated/gtkd demos/gtkD/TestWindow/*.d ${DLANG_LINKER_FLAG}./libgtkd-3.so ${DLANG_LINKER_FLAG}-ldl ${DLANG_LINKER_FLAG}-rpath=./ ${LDFLAGS} ${DLANG_OUTPUT_FLAG}TestWindow
+}
+
+d_src_install() {
+	install_libs() {
+		# Install the shared library version of the component
+		local libfile="lib${LIB_NAME}-${MAJOR}.so"
+		ln -sf "${libfile}" "${libfile}.0"
+		ln -sf "${libfile}" "${libfile}.0.${MINOR}"
+		dolib.so "${libfile}.0.${MINOR}" "${libfile}.0" "${libfile}"
+
+		# Install the static library version
+		if use static-libs; then
+			dolib.a "lib${LIB_NAME}-${MAJOR}.a"
+		fi
+	}
+
+	foreach_used_component install_libs
+}
+
+d_src_install_all() {
+	# Obligatory docs
+	dodoc AUTHORS README.md
+
+	# Include files
+	insinto "${DLANG_IMPORT_DIR}/${PN}-${MAJOR}"
+
+	install_headers() {
+		files="generated/${SRC_DIR}/*"
+		doins -r ${files}
+	}
+
+	foreach_used_component install_headers
+}
+
+foreach_used_component() {
+	for (( i = 0 ; i < ${#GTKD_LIB_NAMES[@]} ; i++ )); do
+		if [[ "${GTKD_LIB_NAMES[$i]}" == "gtkd" ]] || use ${GTKD_USE_FLAGS[$i]}; then
+			LIB_NAME=${GTKD_LIB_NAMES[$i]} SRC_DIR=${GTKD_SRC_DIRS[$i]} ${@}
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2023-11-17 21:44 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2023-11-17 21:44 UTC (permalink / raw
  To: gentoo-commits

commit:     c4ff5cfc49313068a4591a6e192b50cde40c5f32
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Oct 15 10:45:36 2023 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Fri Nov 17 20:54:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=c4ff5cfc

dev-libs/gtkd: upgrade to EAPI 7, replace unzip calls

Closes: https://github.com/gentoo/dlang/pull/125
Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> proton.me>

 dev-libs/gtkd/gtkd-2.4.2-r1.ebuild | 13 ++++++++-----
 dev-libs/gtkd/gtkd-3.9.0.ebuild    |  7 +++++--
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild b/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild
index ad07352..16d99d0 100644
--- a/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild
+++ b/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 DESCRIPTION="D binding and OO wrapper of GTK+ and is released on the LGPL license"
 HOMEPAGE="http://gtkd.org/"
@@ -15,9 +15,9 @@ SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip"
 DLANG_VERSION_RANGE="2.063-2.067 2.071-2.080"
 DLANG_PACKAGE_TYPE="multi"
 
-inherit eutils dlang
+inherit dlang multilib-build
 
-DEPEND="app-arch/unzip"
+BDEPEND="app-arch/unzip"
 RDEPEND="
 	>=x11-libs/gtk+-3.10:3[${MULTILIB_USEDEP}]
 	sourceview? ( >=x11-libs/gtksourceview-3.10:3.0 )
@@ -34,7 +34,10 @@ MAJOR=$(ver_cut 1)
 MINOR=$(ver_cut 2-)
 
 src_unpack() {
-	unzip -q "${DISTDIR}/${A}" -d "${S}"
+	mkdir "${S}" || die "Could not create source directory"
+	pushd "${S}" >/dev/null
+	unpack "${A}"
+	popd >/dev/null
 }
 
 d_src_compile() {

diff --git a/dev-libs/gtkd/gtkd-3.9.0.ebuild b/dev-libs/gtkd/gtkd-3.9.0.ebuild
index bfea972..0d016fb 100644
--- a/dev-libs/gtkd/gtkd-3.9.0.ebuild
+++ b/dev-libs/gtkd/gtkd-3.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -39,7 +39,10 @@ MAJOR=$(ver_cut 1)
 MINOR=$(ver_cut 2-)
 
 src_unpack() {
-	unzip -q "${DISTDIR}/${A}" -d "${S}"
+	mkdir "${S}" || die "Could not create source directory"
+	pushd "${S}" >/dev/null
+	unpack "${DISTDIR}/${A}"
+	popd "${S}" >/dev/null
 }
 
 d_src_compile() {


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2023-11-28  9:42 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2023-11-28  9:42 UTC (permalink / raw
  To: gentoo-commits

commit:     e86105720c4a48558b6df9135434db8f28b785c3
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Tue Nov 28 08:35:01 2023 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Tue Nov 28 08:35:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e8610572

dev-libs/gtkd: add 3.10.0

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

 dev-libs/gtkd/Manifest           |   1 +
 dev-libs/gtkd/gtkd-3.10.0.ebuild | 123 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/dev-libs/gtkd/Manifest b/dev-libs/gtkd/Manifest
index 0834ad3..10dd57f 100644
--- a/dev-libs/gtkd/Manifest
+++ b/dev-libs/gtkd/Manifest
@@ -1,2 +1,3 @@
 DIST GtkD-2.4.2.zip 4190939 BLAKE2B 90a47d0882cb57f94b75a155cb949e4272669764abefcc65b4c0cdece05409e669d87076d094bf8f5f7c342c9be506006f78314341a8291b858d787599a29efa SHA512 2d936c9ab69f8ea6fbd91696c91f04820f579e3cdb85914cda6611ac675dadd0d6e8d792ffced640097797f6851016474fadf964e2fc5032262c0945b875cd46
+DIST GtkD-3.10.0.zip 4663859 BLAKE2B 943d4de7df8f5375f8a98dcacda873037d6745d11d3da50c6baf71cc0148e00a79df7b118f3fce409a07a7a7fd63260f29e6a1c0160e2b2a8a51414fff7faf6b SHA512 4d85ffb6d5a65463d183087fb5d0429098633f0a0be94f5dc03c12da1b07522dbee1cf04d4f87568745d914d8fb65d58a179fcf493b09f24cf13baf1ad5b4120
 DIST GtkD-3.9.0.zip 4576099 BLAKE2B 50d0bda16f3026f1c068f7b65049005b86367ee1ced581bb2f941c202e0038f1bc6be350bd4bcb30f69ec0696ae0e7bbf4336546153bda389683d44c87d58eac SHA512 f8b8a7b83a23af990abb77f16e4bddf2f72bb65ad210ff8f138b0d4ff66fb5fb2a73a3cbe868a8d2ecf3abf98ece5af771af63068dc2fbf8668e46039320cf0f

diff --git a/dev-libs/gtkd/gtkd-3.10.0.ebuild b/dev-libs/gtkd/gtkd-3.10.0.ebuild
new file mode 100644
index 0000000..895ead2
--- /dev/null
+++ b/dev-libs/gtkd/gtkd-3.10.0.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="GtkD is a D binding and OO wrapper of GTK+"
+HOMEPAGE="http://gtkd.org/"
+LICENSE="LGPL-3"
+
+SLOT="3"
+KEYWORDS="~amd64 ~x86"
+SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip"
+
+DLANG_VERSION_RANGE="2.074-"
+DLANG_PACKAGE_TYPE="multi"
+
+inherit dlang
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	>=x11-libs/gtk+-3.24:3[${MULTILIB_USEDEP}]
+	>=dev-libs/glib-2.64:2[${MULTILIB_USEDEP}]
+	>=x11-libs/pango-1.43[${MULTILIB_USEDEP}]
+	>=app-accessibility/at-spi2-core-2.34[${MULTILIB_USEDEP}]
+	>=x11-libs/gdk-pixbuf-2.38:2[${MULTILIB_USEDEP}]
+	>=x11-libs/cairo-1.12.2[${MULTILIB_USEDEP}]
+	>=gnome-base/librsvg-2.54:2[${MULTILIB_USEDEP}]
+	sourceview? ( >=x11-libs/gtksourceview-4.2:4 )
+	gstreamer? ( >=media-libs/gstreamer-1.16:1.0[${MULTILIB_USEDEP}] )
+	vte? ( >=x11-libs/vte-0.56:2.91 )
+	peas? ( >=dev-libs/libpeas-1.20 )
+"
+
+GTKD_USE_FLAGS=(gtk  opengl sourceview gstreamer  vte  peas)
+GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv     gstreamerd vted peasd)
+GTKD_SRC_DIRS=( gtkd gtkdgl sourceview gstreamer  vte  peas)
+IUSE="${GTKD_USE_FLAGS[@]:1} static-libs"
+
+MAJOR=$(ver_cut 1)
+MINOR=$(ver_cut 2-)
+
+src_unpack() {
+	mkdir "${S}" || die "Could not create source directory"
+	pushd "${S}" >/dev/null
+	unpack "${A}"
+	popd >/dev/null
+}
+
+d_src_compile() {
+	compile_libs() {
+		# Build the shared library version of the component
+		# The test phase expects no version extension on the .so
+		local sources=generated/${SRC_DIR}/*/*.d
+		if [ ${LIB_NAME} != gtkdgl ]; then
+			sources+=" "generated/${SRC_DIR}/*/c/*.d
+		fi
+		if [ ${LIB_NAME} == gstreamerd ]; then
+			sources+=" "generated/gstreamer/gst/*/*.d" "generated/gstreamer/gst/*/c/*.d
+		fi
+		echo $sources
+		dlang_compile_lib_so lib${LIB_NAME}-${MAJOR}.so \
+			lib${LIB_NAME}-${MAJOR}.so.0 -Isrc -Igenerated/gtkd ${sources}
+
+		# Build the static library version
+		if use static-libs; then
+			local libname=lib${LIB_NAME}-${MAJOR}
+			if [[ "${DLANG_VENDOR}" == "DigitalMars" ]]; then
+				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -lib ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a
+			elif [[ "${DLANG_VENDOR}" == "GNU" ]]; then
+				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -c ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.o
+				dlang_exec ar rcs ${libname}.a ${libname}.o
+			elif [[ "${DLANG_VENDOR}" == "LDC" ]]; then
+				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -lib -od=${SRC_DIR} -oq ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a
+			fi
+		fi
+	}
+
+	foreach_used_component compile_libs
+}
+
+d_src_test() {
+	dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Igenerated/gtkd demos/gtkD/TestWindow/*.d ${DLANG_LINKER_FLAG}./libgtkd-3.so ${DLANG_LINKER_FLAG}-ldl ${DLANG_LINKER_FLAG}-rpath=./ ${LDFLAGS} ${DLANG_OUTPUT_FLAG}TestWindow
+}
+
+d_src_install() {
+	install_libs() {
+		# Install the shared library version of the component
+		local libfile="lib${LIB_NAME}-${MAJOR}.so"
+		ln -sf "${libfile}" "${libfile}.0"
+		ln -sf "${libfile}" "${libfile}.0.${MINOR}"
+		dolib.so "${libfile}.0.${MINOR}" "${libfile}.0" "${libfile}"
+
+		# Install the static library version
+		if use static-libs; then
+			dolib.a "lib${LIB_NAME}-${MAJOR}.a"
+		fi
+	}
+
+	foreach_used_component install_libs
+}
+
+d_src_install_all() {
+	# Obligatory docs
+	dodoc AUTHORS README.md
+
+	# Include files
+	insinto "${DLANG_IMPORT_DIR}/${PN}-${MAJOR}"
+
+	install_headers() {
+		files="generated/${SRC_DIR}/*"
+		doins -r ${files}
+	}
+
+	foreach_used_component install_headers
+}
+
+foreach_used_component() {
+	for (( i = 0 ; i < ${#GTKD_LIB_NAMES[@]} ; i++ )); do
+		if [[ "${GTKD_LIB_NAMES[$i]}" == "gtkd" ]] || use ${GTKD_USE_FLAGS[$i]}; then
+			LIB_NAME=${GTKD_LIB_NAMES[$i]} SRC_DIR=${GTKD_SRC_DIRS[$i]} ${@}
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2023-12-18 12:37 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2023-12-18 12:37 UTC (permalink / raw
  To: gentoo-commits

commit:     391ce890a1ca37cce3ee643f61c63c06f428d0dc
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Thu Nov 30 19:45:42 2023 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Dec 17 14:26:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=391ce890

dev-libs/gtkd: install pkg-config files

Additionally add || die to external commands

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

 .../{gtkd-3.10.0.ebuild => gtkd-3.10.0-r1.ebuild}  | 28 ++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
similarity index 81%
rename from dev-libs/gtkd/gtkd-3.10.0.ebuild
rename to dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
index 895ead2..d275cfb 100644
--- a/dev-libs/gtkd/gtkd-3.10.0.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
@@ -41,9 +41,9 @@ MINOR=$(ver_cut 2-)
 
 src_unpack() {
 	mkdir "${S}" || die "Could not create source directory"
-	pushd "${S}" >/dev/null
+	pushd "${S}" >/dev/null || die
 	unpack "${A}"
-	popd >/dev/null
+	popd >/dev/null || die
 }
 
 d_src_compile() {
@@ -73,6 +73,26 @@ d_src_compile() {
 				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -lib -od=${SRC_DIR} -oq ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a
 			fi
 		fi
+
+		# Generate the pkg-config file. The make rules don't depend on anything so
+		# it's fine to use them even though we compiled the library in another way.
+
+		# Due to some quirkyness in meson, -L= isn't recognized as a D linker flag
+		# so we have to change it for ldc2.
+		local linker_flag
+		if [[ ${DLANG_VENDOR} == "LDC" ]]; then
+			linker_flag="-L"
+		else
+			linker_flag="${DLANG_LINKER_FLAG}"
+		fi
+		local mymakeargs=(
+			LINKERFLAG="${linker_flag}"
+			prefix="${EPREFIX}/usr"
+			libdir="$(get_libdir)"
+		)
+		emake "${mymakeargs[@]}" "${LIB_NAME}-${MAJOR}.pc"
+		sed -i -e 's@include/d@include/dlang@' "${LIB_NAME}-${MAJOR}.pc" || \
+			die "Could not modify include path for ${LIB_NAME}-${MAJOR}.pc"
 	}
 
 	foreach_used_component compile_libs
@@ -94,6 +114,10 @@ d_src_install() {
 		if use static-libs; then
 			dolib.a "lib${LIB_NAME}-${MAJOR}.a"
 		fi
+
+		# Install the pkg-config files
+		insinto "/usr/$(get_libdir)/pkgconfig"
+		doins "${LIB_NAME}-${MAJOR}.pc"
 	}
 
 	foreach_used_component install_libs


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-01-14 10:37 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-01-14 10:37 UTC (permalink / raw
  To: gentoo-commits

commit:     2cca17bf8699dd724f8ce1cf3596db181a5ca445
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Fri Jan 12 19:25:36 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Jan 13 16:27:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=2cca17bf

dev-libs/gtkd: stabilize 3.10.0-r1 for amd64, x86

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

 dev-libs/gtkd/gtkd-3.10.0-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
index d275cfb..67d0198 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -8,10 +8,10 @@ HOMEPAGE="http://gtkd.org/"
 LICENSE="LGPL-3"
 
 SLOT="3"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 x86"
 SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip"
 
-DLANG_VERSION_RANGE="2.074-"
+DLANG_VERSION_RANGE="2.100-"
 DLANG_PACKAGE_TYPE="multi"
 
 inherit dlang


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-01-14 10:37 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-01-14 10:37 UTC (permalink / raw
  To: gentoo-commits

commit:     0eb1ad354ab8b64c9f1241161b602af110b326ad
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Jan 13 14:47:35 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Jan 13 16:27:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=0eb1ad35

dev-libs/gtkd: drop 3.9.0

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

 dev-libs/gtkd/Manifest          |   1 -
 dev-libs/gtkd/gtkd-3.9.0.ebuild | 122 ----------------------------------------
 2 files changed, 123 deletions(-)

diff --git a/dev-libs/gtkd/Manifest b/dev-libs/gtkd/Manifest
index 07d76f8..4530643 100644
--- a/dev-libs/gtkd/Manifest
+++ b/dev-libs/gtkd/Manifest
@@ -1,2 +1 @@
 DIST GtkD-3.10.0.zip 4663859 BLAKE2B 943d4de7df8f5375f8a98dcacda873037d6745d11d3da50c6baf71cc0148e00a79df7b118f3fce409a07a7a7fd63260f29e6a1c0160e2b2a8a51414fff7faf6b SHA512 4d85ffb6d5a65463d183087fb5d0429098633f0a0be94f5dc03c12da1b07522dbee1cf04d4f87568745d914d8fb65d58a179fcf493b09f24cf13baf1ad5b4120
-DIST GtkD-3.9.0.zip 4576099 BLAKE2B 50d0bda16f3026f1c068f7b65049005b86367ee1ced581bb2f941c202e0038f1bc6be350bd4bcb30f69ec0696ae0e7bbf4336546153bda389683d44c87d58eac SHA512 f8b8a7b83a23af990abb77f16e4bddf2f72bb65ad210ff8f138b0d4ff66fb5fb2a73a3cbe868a8d2ecf3abf98ece5af771af63068dc2fbf8668e46039320cf0f

diff --git a/dev-libs/gtkd/gtkd-3.9.0.ebuild b/dev-libs/gtkd/gtkd-3.9.0.ebuild
deleted file mode 100644
index 0d016fb..0000000
--- a/dev-libs/gtkd/gtkd-3.9.0.ebuild
+++ /dev/null
@@ -1,122 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="GtkD is a D binding and OO wrapper of GTK+"
-HOMEPAGE="http://gtkd.org/"
-LICENSE="LGPL-3"
-
-SLOT="3"
-KEYWORDS="amd64 x86"
-SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip"
-
-DLANG_VERSION_RANGE="2.074-2.095"
-DLANG_PACKAGE_TYPE="multi"
-
-inherit dlang
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	>=x11-libs/gtk+-3.24:3[${MULTILIB_USEDEP}]
-	>=dev-libs/glib-2.60:2[${MULTILIB_USEDEP}]
-	>=x11-libs/pango-1.43[${MULTILIB_USEDEP}]
-	>=dev-libs/atk-2.32[${MULTILIB_USEDEP}]
-	>=x11-libs/gdk-pixbuf-2.38:2[${MULTILIB_USEDEP}]
-	>=x11-libs/cairo-1.12.2[${MULTILIB_USEDEP}]
-	sourceview? ( >=x11-libs/gtksourceview-4.2:4 )
-	gstreamer? ( >=media-libs/gstreamer-1.16:1.0[${MULTILIB_USEDEP}] )
-	vte? ( >=x11-libs/vte-0.56:2.91 )
-	peas? ( >=dev-libs/libpeas-1.20 )
-"
-
-GTKD_USE_FLAGS=(gtk  opengl sourceview gstreamer  vte  peas)
-GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv     gstreamerd vted peasd)
-GTKD_SRC_DIRS=( gtkd gtkdgl sourceview gstreamer  vte  peas)
-IUSE="${GTKD_USE_FLAGS[@]:1} static-libs"
-
-MAJOR=$(ver_cut 1)
-MINOR=$(ver_cut 2-)
-
-src_unpack() {
-	mkdir "${S}" || die "Could not create source directory"
-	pushd "${S}" >/dev/null
-	unpack "${DISTDIR}/${A}"
-	popd "${S}" >/dev/null
-}
-
-d_src_compile() {
-	compile_libs() {
-		# Build the shared library version of the component
-		# The test phase expects no version extension on the .so
-		local sources=generated/${SRC_DIR}/*/*.d
-		if [ ${LIB_NAME} != gtkdgl ]; then
-			sources+=" "generated/${SRC_DIR}/*/c/*.d
-		fi
-		if [ ${LIB_NAME} == gstreamerd ]; then
-			sources+=" "generated/gstreamer/gst/*/*.d" "generated/gstreamer/gst/*/c/*.d
-		fi
-		echo $sources
-		dlang_compile_lib_so lib${LIB_NAME}-${MAJOR}.so \
-			lib${LIB_NAME}-${MAJOR}.so.0 -Isrc -Igenerated/gtkd ${sources}
-
-		# Build the static library version
-		if use static-libs; then
-			local libname=lib${LIB_NAME}-${MAJOR}
-			if [[ "${DLANG_VENDOR}" == "DigitalMars" ]]; then
-				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -lib ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a
-			elif [[ "${DLANG_VENDOR}" == "GNU" ]]; then
-				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -c ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.o
-				dlang_exec ar rcs ${libname}.a ${libname}.o
-			elif [[ "${DLANG_VENDOR}" == "LDC" ]]; then
-				dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Isrc -Igenerated/gtkd ${sources} -lib -od=${SRC_DIR} -oq ${LDFLAGS} ${DLANG_OUTPUT_FLAG}${libname}.a
-			fi
-		fi
-	}
-
-	foreach_used_component compile_libs
-}
-
-d_src_test() {
-	dlang_exec ${DC} ${DCFLAGS} -m${MODEL} -Igenerated/gtkd demos/gtkD/TestWindow/*.d ${DLANG_LINKER_FLAG}./libgtkd-3.so ${DLANG_LINKER_FLAG}-ldl ${DLANG_LINKER_FLAG}-rpath=./ ${LDFLAGS} ${DLANG_OUTPUT_FLAG}TestWindow
-}
-
-d_src_install() {
-	install_libs() {
-		# Install the shared library version of the component
-		local libfile="lib${LIB_NAME}-${MAJOR}.so"
-		ln -sf "${libfile}" "${libfile}.0"
-		ln -sf "${libfile}" "${libfile}.0.${MINOR}"
-		dolib.so "${libfile}.0.${MINOR}" "${libfile}.0" "${libfile}"
-
-		# Install the static library version
-		if use static-libs; then
-			dolib.a "lib${LIB_NAME}-${MAJOR}.a"
-		fi
-	}
-
-	foreach_used_component install_libs
-}
-
-d_src_install_all() {
-	# Obligatory docs
-	dodoc AUTHORS README.md
-
-	# Include files
-	insinto "${DLANG_IMPORT_DIR}/${PN}-${MAJOR}"
-
-	install_headers() {
-		files="generated/${SRC_DIR}/*"
-		doins -r ${files}
-	}
-
-	foreach_used_component install_headers
-}
-
-foreach_used_component() {
-	for (( i = 0 ; i < ${#GTKD_LIB_NAMES[@]} ; i++ )); do
-		if [[ "${GTKD_LIB_NAMES[$i]}" == "gtkd" ]] || use ${GTKD_USE_FLAGS[$i]}; then
-			LIB_NAME=${GTKD_LIB_NAMES[$i]} SRC_DIR=${GTKD_SRC_DIRS[$i]} ${@}
-		fi
-	done
-}


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-04-13 23:04 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-04-13 23:04 UTC (permalink / raw
  To: gentoo-commits

commit:     4e055662f4070b21f3ccc5b1343f971c4dfa265c
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Mon Mar  4 14:45:39 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Apr 13 22:47:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=4e055662

dev-libs/gtkd: port to dlang-r1.eclass

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

 dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 181 ++++++++++++++++++++++++++++++++++++
 1 file changed, 181 insertions(+)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
new file mode 100644
index 0000000..bc2c489
--- /dev/null
+++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal
+
+DESCRIPTION="GtkD is a D binding and OO wrapper of GTK+"
+HOMEPAGE="https://gtkd.org/"
+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} )
+declare -A DLANG_REQ_USE=(
+	[dmd]="${MULTILIB_USEDEP}"
+	[gdc]=""
+	[ldc2]="${MULTILIB_USEDEP}"
+)
+
+inherit dlang-r1
+
+BDEPEND="app-arch/unzip ${DLANG_DEPS}"
+RDEPEND="
+	${DLANG_DEPS}
+	>=x11-libs/gtk+-3.24:3[${MULTILIB_USEDEP}]
+	>=dev-libs/glib-2.64:2[${MULTILIB_USEDEP}]
+	>=x11-libs/pango-1.43[${MULTILIB_USEDEP}]
+	>=app-accessibility/at-spi2-core-2.34[${MULTILIB_USEDEP}]
+	>=x11-libs/gdk-pixbuf-2.38:2[${MULTILIB_USEDEP}]
+	>=x11-libs/cairo-1.12.2[${MULTILIB_USEDEP}]
+	>=gnome-base/librsvg-2.54:2[${MULTILIB_USEDEP}]
+	sourceview? ( >=x11-libs/gtksourceview-4.2:4 )
+	gstreamer? ( >=media-libs/gstreamer-1.16:1.0[${MULTILIB_USEDEP}] )
+	vte? ( >=x11-libs/vte-0.56:2.91 )
+	peas? ( >=dev-libs/libpeas-1.20 )
+"
+DEPEND=${DLANG_DEPS}
+
+GTKD_USE_FLAGS=(gtk  opengl sourceview gstreamer  vte  peas)
+GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv     gstreamerd vted peasd)
+GTKD_SRC_DIRS=( gtkd gtkdgl sourceview gstreamer  vte  peas)
+# static-libs I have no idea about. It makes a "static-library" that
+# dynamically links phobos and uses dl to open the gtk+ libs at runtime.
+IUSE="${GTKD_USE_FLAGS[@]:1} static-libs"
+REQUIRED_USE=${DLANG_REQUIRED_USE}
+
+MAJOR=$(ver_cut 1)
+MINOR=$(ver_cut 2-)
+
+src_unpack() {
+	mkdir "${S}" || die "Could not create source directory"
+	pushd "${S}" >/dev/null || die
+	unpack "${A}"
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	default
+
+	multilib_copy_sources
+	multilib_foreach_abi dlang_copy_sources
+}
+
+multilib_src_compile() {
+	compile_libs() {
+		# Build the shared library version of the component
+		# The test phase expects no version extension on the .so
+		local sources=generated/${SRC_DIR}/*/*.d
+		if [ ${LIB_NAME} != gtkdgl ]; then
+			sources+=" "generated/${SRC_DIR}/*/c/*.d
+		fi
+		if [ ${LIB_NAME} == gstreamerd ]; then
+			sources+=" "generated/gstreamer/gst/*/*.d" "generated/gstreamer/gst/*/c/*.d
+		fi
+
+		local imports="src generated/gtkd"
+		# avoid file name collisions with ldc2
+		[[ ${EDC} == ldc2* ]] && local DCFLAGS="${DCFLAGS} -oq"
+		dlang_compile_lib.so lib${LIB_NAME}-${MAJOR}.so \
+			lib${LIB_NAME}-${MAJOR}.so.0 ${sources}
+		# Build the static library version.
+		use static-libs && dlang_compile_lib.a "lib${LIB_NAME}-${MAJOR}.a" "${sources}"
+
+		# Generate the pkg-config file. The make rules don't depend on anything so
+		# it's fine to use them even though we compiled the library in another way.
+
+		local mymakeargs=(
+			LINKERFLAG="$(dlang_get_linker_flag)"
+			prefix="${EPREFIX}/usr"
+			libdir="$(dlang_get_libdir)"
+		)
+		emake "${mymakeargs[@]}" "${LIB_NAME}-${MAJOR}.pc"
+		sed -i -e 's@include/d@include/dlang@' "${LIB_NAME}-${MAJOR}.pc" || \
+			die "Could not modify include path for ${LIB_NAME}-${MAJOR}.pc"
+	}
+
+	dlang_foreach_impl foreach_used_component compile_libs
+}
+
+multilib_src_test() {
+	simple_test() {
+		if multilib_is_native_abi; then
+			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
+					./libgtkd-3.a
+					$(dlang_get_output_flag)TestWindow-static
+				)
+
+				dlang_exec "${cmd[@]}"
+			fi
+		fi
+	}
+
+	dlang_foreach_impl simple_test
+}
+
+multilib_src_install() {
+	install_libs() {
+		# Install the shared library version of the component
+		local libfile="lib${LIB_NAME}-${MAJOR}.so"
+		ln -sf "${libfile}" "${libfile}.0"
+		ln -sf "${libfile}" "${libfile}.0.${MINOR}"
+		dlang_dolib.so "${libfile}.0.${MINOR}" "${libfile}.0" "${libfile}"
+
+		# Install the static library version
+		if use static-libs; then
+			dlang_dolib.a "lib${LIB_NAME}-${MAJOR}.a"
+		fi
+
+		# Install the pkg-config files
+		insinto "/usr/$(dlang_get_libdir)/pkgconfig"
+		doins "${LIB_NAME}-${MAJOR}.pc"
+	}
+
+	dlang_foreach_impl foreach_used_component install_libs
+}
+
+multilib_src_install_all() {
+	# Obligatory docs
+	dodoc AUTHORS README.md
+
+	install_headers() {
+		# Include files. dlang_get_import_dir is safe to use outside of
+		# dlang_foreach_impl.
+		insinto "$(dlang_get_import_dir)/${PN}-${MAJOR}"
+
+		files="generated/${SRC_DIR}/*"
+		doins -r ${files}
+	}
+
+	foreach_used_component install_headers
+}
+
+foreach_used_component() {
+	for (( i = 0 ; i < ${#GTKD_LIB_NAMES[@]} ; i++ )); do
+		if [[ "${GTKD_LIB_NAMES[$i]}" == "gtkd" ]] || use ${GTKD_USE_FLAGS[$i]}; then
+			LIB_NAME=${GTKD_LIB_NAMES[$i]} SRC_DIR=${GTKD_SRC_DIRS[$i]} ${@}
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-05-02 21:00 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-05-02 21:00 UTC (permalink / raw
  To: gentoo-commits

commit:     938fcc98b345a05eccf5803df27c1216c5cd3693
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Tue Apr 30 08:30:03 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Tue Apr 30 08:41:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=938fcc98

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 <AT> proton.me>

 dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 42 ++++++++++++++++++-------------------
 1 file 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() {


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-05-02 21:00 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-05-02 21:00 UTC (permalink / raw
  To: gentoo-commits

commit:     8c3200f0ac8f95a282b29b19f53d889a4714d557
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Tue Apr 30 10:09:02 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Tue Apr 30 10:09:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=8c3200f0

dev-libs/gtkd: enable ldc2-1_37

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

 dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
index f07d56a..5e9e146 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
@@ -14,7 +14,7 @@ SLOT="3"
 KEYWORDS="~amd64 ~x86"
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
-DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..36} )
+DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..37} )
 declare -A DLANG_REQ_USE=(
 	[dmd]="${MULTILIB_USEDEP}"
 	[gdc]=""


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-06-02  5:29 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-06-02  5:29 UTC (permalink / raw
  To: gentoo-commits

commit:     2733cdbac6e3b5f2b42fe85a39b9a9c34e4fcffb
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Fri May 31 04:35:37 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Fri May 31 04:39:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=2733cdba

dev-libs/gtkd: enable ldc2-1_38

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

 dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
index 5e9e146..84b9a9a 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
@@ -14,7 +14,7 @@ SLOT="3"
 KEYWORDS="~amd64 ~x86"
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
-DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..37} )
+DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..38} )
 declare -A DLANG_REQ_USE=(
 	[dmd]="${MULTILIB_USEDEP}"
 	[gdc]=""


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-06-02  5:29 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-06-02  5:29 UTC (permalink / raw
  To: gentoo-commits

commit:     86f1e12a37b288e41af0b2ff8b7c47800bfb14c5
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Jun  1 17:14:11 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Jun  1 17:14:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=86f1e12a

dev-libs/gtkd: enable gdc-14

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

 dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
index 84b9a9a..730c22a 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
@@ -14,7 +14,7 @@ SLOT="3"
 KEYWORDS="~amd64 ~x86"
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
-DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..38} )
+DLANG_COMPAT=( dmd-2_{106..108} gdc-1{3,4} ldc2-1_{35..38} )
 declare -A DLANG_REQ_USE=(
 	[dmd]="${MULTILIB_USEDEP}"
 	[gdc]=""


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-07-14 19:44 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-07-14 19:44 UTC (permalink / raw
  To: gentoo-commits

commit:     10ec98c52671ec33e8bead1594a4e88285e9ea1f
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Jul 14 07:50:21 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Jul 14 07:50:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=10ec98c5

dev-libs/gtkd: enable dmd-2_109 and ldc2-1_39

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

 dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
index 730c22a..5381385 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
@@ -14,7 +14,7 @@ SLOT="3"
 KEYWORDS="~amd64 ~x86"
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
-DLANG_COMPAT=( dmd-2_{106..108} gdc-1{3,4} ldc2-1_{35..38} )
+DLANG_COMPAT=( dmd-2_{106..109} gdc-1{3,4} ldc2-1_{35..39} )
 declare -A DLANG_REQ_USE=(
 	[dmd]="${MULTILIB_USEDEP}"
 	[gdc]=""


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/
@ 2024-07-14 20:09 Horodniceanu Andrei
  0 siblings, 0 replies; 13+ messages in thread
From: Horodniceanu Andrei @ 2024-07-14 20:09 UTC (permalink / raw
  To: gentoo-commits

commit:     10d66e91ec25cb9ac758c9087e02d6dca54e6648
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Jul 14 20:03:37 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Jul 14 20:03:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=10d66e91

dev-libs/gtkd: update LICENSE

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

 dev-libs/gtkd/gtkd-3.10.0-r1.ebuild | 5 +++--
 dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
index 653a41e..55d4108 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 DESCRIPTION="GtkD is a D binding and OO wrapper of GTK+"
 HOMEPAGE="http://gtkd.org/"
-LICENSE="LGPL-3"
+LICENSE="LGPL-3+-with-gtkd-exceptions test? ( LGPL-3+ )"
 
 SLOT="3"
 KEYWORDS="amd64 x86"
@@ -34,7 +34,8 @@ RDEPEND="
 GTKD_USE_FLAGS=(gtk  opengl sourceview gstreamer  vte  peas)
 GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv     gstreamerd vted peasd)
 GTKD_SRC_DIRS=( gtkd gtkdgl sourceview gstreamer  vte  peas)
-IUSE="${GTKD_USE_FLAGS[@]:1} static-libs"
+IUSE="${GTKD_USE_FLAGS[@]:1} static-libs test"
+RESTRICT="!test? ( test )"
 
 MAJOR=$(ver_cut 1)
 MINOR=$(ver_cut 2-)

diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
index 5381385..9d898df 100644
--- a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
+++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild
@@ -8,7 +8,7 @@ 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"
+LICENSE="LGPL-3+-with-gtkd-exceptions test? ( LGPL-3+ )"
 
 SLOT="3"
 KEYWORDS="~amd64 ~x86"
@@ -45,7 +45,8 @@ GTKD_LIB_NAMES=(gtkd gtkdgl gtkdsv     gstreamerd vted peasd)
 GTKD_SRC_DIRS=( gtkd gtkdgl sourceview gstreamer  vte  peas)
 # static-libs I have no idea about. It makes a "static-library" that
 # dynamically links phobos and uses dl to open the gtk+ libs at runtime.
-IUSE="${GTKD_USE_FLAGS[@]:1} static-libs"
+IUSE="${GTKD_USE_FLAGS[@]:1} static-libs test"
+RESTRICT="!test? ( test )"
 REQUIRED_USE=${DLANG_REQUIRED_USE}
 
 MAJOR=$(ver_cut 1)


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-07-14 20:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-13 23:04 [gentoo-commits] repo/user/dlang:master commit in: dev-libs/gtkd/ Horodniceanu Andrei
  -- strict thread matches above, loose matches on Subject: below --
2024-07-14 20:09 Horodniceanu Andrei
2024-07-14 19:44 Horodniceanu Andrei
2024-06-02  5:29 Horodniceanu Andrei
2024-06-02  5:29 Horodniceanu Andrei
2024-05-02 21:00 Horodniceanu Andrei
2024-05-02 21:00 Horodniceanu Andrei
2024-01-14 10:37 Horodniceanu Andrei
2024-01-14 10:37 Horodniceanu Andrei
2023-12-18 12:37 Horodniceanu Andrei
2023-11-28  9:42 Horodniceanu Andrei
2023-11-17 21:44 Horodniceanu Andrei
2021-05-21 17:20 Marco Leise

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox