repo/proj/guru:dev commit in: dev-libs/gbinder/, dev-libs/gbinder/files/

"Anna Vyalkova" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786135516.51af817cba41374535c999d6c4dd2dddb6447ee0.cybertailor@gentoo>
commit:     51af817cba41374535c999d6c4dd2dddb6447ee0
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Fri Aug  7 15:18:10 2026 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Fri Aug  7 20:45:16 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51af817c

dev-libs/gbinder: add 1.1.52

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-libs/gbinder/Manifest                          |   1 +
 .../gbinder/files/gbinder-1.1.52-respect-env.patch | 101 +++++++++++++++++++++
 dev-libs/gbinder/gbinder-1.1.52.ebuild             |  50 ++++++++++
 3 files changed, 152 insertions(+)

diff --git a/dev-libs/gbinder/Manifest b/dev-libs/gbinder/Manifest
index 31f6950a96..6076fcad02 100644
--- a/dev-libs/gbinder/Manifest
+++ b/dev-libs/gbinder/Manifest
@@ -1 +1,2 @@
 DIST gbinder-1.1.43.tar.gz 208859 BLAKE2B da9a7474231ea2c97c12dbadca92d68380076237f9e930075cc5b6d2a8f44e6e7dc8cdc9e1ebdb0e325ed13776da29bdaba531d93304dd0b6e6c2ff9f7293069 SHA512 c0c2de4cbcd8b7609781cdb888390ea28c763c3eeee658f8559604b9bb10dda1bab982c1eb5a432b53643848e6436cf2d1b4fda7b3cd31fecc02f7a15c71f197
+DIST gbinder-1.1.52.tar.gz 222355 BLAKE2B 09757249c2c04dd57d74fa92d9ad56e466ea72ec4985e1062997b806a8a1d4ce5fbd2eca814fec697039dd859bdc58a83316a5901bb3d6bcb2e891ce07074b8f SHA512 05e7933d8727e0bce49263990a616ca2e10f908697602d772c98c51394b2af3706208523ca140318e8d80b2e876858e2f124b7717fcea5078a364c8799f7f265

diff --git a/dev-libs/gbinder/files/gbinder-1.1.52-respect-env.patch b/dev-libs/gbinder/files/gbinder-1.1.52-respect-env.patch
new file mode 100644
index 0000000000..1e766897c8
--- /dev/null
+++ b/dev-libs/gbinder/files/gbinder-1.1.52-respect-env.patch
@@ -0,0 +1,101 @@
+diff --git a/Makefile b/Makefile
+index aa51ab7..dc3419f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -45,7 +45,7 @@ INCLUDES += -I$(LIBGLIBUTIL_PATH)/include
+ DEBUG_LIBS = -L$(LIBGLIBUTIL_PATH)/build/debug -lglibutil
+ RELEASE_LIBS = -L$(LIBGLIBUTIL_PATH)/build/release -lglibutil
+ DEBUG_DEPS = libglibutil_debug
+-RELEASE_DEPS = libglibutil_release
++RELEASE_DEPS =
+ 
+ .PHONY: libglibutil_debug libglibutil_release
+ 
+@@ -135,7 +135,7 @@ WARNINGS = -Wall -Wstrict-aliasing -Wunused-result
+ DEFINES += -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 \
+   -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_MAX_ALLOWED
+ INCLUDES += -I$(INCLUDE_DIR)
+-BASE_FLAGS = -fPIC -g
++BASE_FLAGS = -fPIC
+ FULL_CFLAGS = $(BASE_FLAGS) $(CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) \
+   -MMD -MP $(shell $(PKG_CONFIG) --cflags $(PKGS))
+ FULL_LDFLAGS = $(BASE_FLAGS) $(LDFLAGS) -shared -Wl,-soname,$(LIB_SONAME) \
+@@ -146,7 +146,7 @@ KEEP_SYMBOLS ?= 0
+ DEBUG_LDFLAGS = $(FULL_LDFLAGS) $(DEBUG_LIBS)
+ RELEASE_LDFLAGS = $(FULL_LDFLAGS) $(RELEASE_LIBS)
+ DEBUG_CFLAGS = $(FULL_CFLAGS) -DDEBUG
+-RELEASE_CFLAGS = $(FULL_CFLAGS) -O2
++RELEASE_CFLAGS = $(FULL_CFLAGS)
+ COVERAGE_CFLAGS = $(FULL_CFLAGS) -O0 --coverage -fprofile-update=atomic
+ 
+ #
+@@ -283,7 +283,7 @@ $(DEBUG_LIB): $(DEBUG_OBJS)
+ 
+ $(RELEASE_LIB): $(RELEASE_OBJS)
+ 	$(AR) rc $@ $?
+-	ranlib $@
++	$(RANLIB) $@
+ 
+ $(DEBUG_LINK):
+ 	ln -sf $(LIB_SO) $@
+diff --git a/test/common/Makefile b/test/common/Makefile
+index e81df69..2d47421 100644
+--- a/test/common/Makefile
++++ b/test/common/Makefile
+@@ -59,14 +59,14 @@ RELEASE_FLAGS =
+ 
+ KEEP_SYMBOLS ?= 0
+ ifneq ($(KEEP_SYMBOLS),0)
+-RELEASE_FLAGS += -g
++RELEASE_FLAGS +=
+ SUBMAKE_OPTS += KEEP_SYMBOLS=1
+ endif
+ 
+ DEBUG_LDFLAGS = $(LDFLAGS) $(DEBUG_FLAGS)
+ RELEASE_LDFLAGS = $(LDFLAGS) $(RELEASE_FLAGS)
+ DEBUG_CFLAGS = $(CFLAGS) $(DEBUG_FLAGS) -DDEBUG
+-RELEASE_CFLAGS = $(CFLAGS) $(RELEASE_FLAGS) -O2
++RELEASE_CFLAGS = $(CFLAGS) $(RELEASE_FLAGS)
+ 
+ #
+ # Files
+@@ -131,7 +131,7 @@ $(DEBUG_EXE): $(DEBUG_SO) $(DEBUG_BUILD_DIR) $(DEBUG_OBJS)
+ $(RELEASE_EXE): $(RELEASE_SO) $(RELEASE_BUILD_DIR) $(RELEASE_OBJS)
+ 	$(LD) $(RELEASE_OBJS) $(RELEASE_LDFLAGS) $< -o $@
+ ifeq ($(KEEP_SYMBOLS),0)
+-	strip $@
++	$(STRIP) $@
+ endif
+ 
+ libgbinder-debug:
+diff --git a/unit/common/Makefile b/unit/common/Makefile
+index f395dc9..e7dd760 100644
+--- a/unit/common/Makefile
++++ b/unit/common/Makefile
+@@ -33,7 +33,7 @@ INCLUDES += -I$(LIBGLIBUTIL_PATH)/include
+ DEBUG_LIBS = -L$(LIBGLIBUTIL_PATH)/build/debug -lglibutil
+ RELEASE_LIBS = -L$(LIBGLIBUTIL_PATH)/build/release -lglibutil
+ DEBUG_DEPS = libglibutil_debug
+-RELEASE_DEPS = libglibutil_release
++RELEASE_DEPS =
+ 
+ .PHONY: libglibutil_debug libglibutil_release
+ 
+@@ -74,7 +74,7 @@ WARNINGS += -Wall -Wno-deprecated-declarations
+ DEFINES += -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 \
+   -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_MAX_ALLOWED
+ INCLUDES += -I$(COMMON_DIR) -I$(LIB_DIR)/src -I$(LIB_DIR)/include
+-BASE_FLAGS = -fPIC -g
++BASE_FLAGS = -fPIC
+ BASE_LDFLAGS = $(BASE_FLAGS) $(LDFLAGS)
+ BASE_CFLAGS = $(BASE_FLAGS) $(CFLAGS)
+ FULL_CFLAGS = $(BASE_CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) -MMD -MP \
+@@ -88,7 +88,7 @@ RELEASE_LDFLAGS = $(FULL_LDFLAGS)
+ COVERAGE_LDFLAGS = $(FULL_LDFLAGS) --coverage -fprofile-update=atomic
+ 
+ DEBUG_CFLAGS = $(FULL_CFLAGS) -DDEBUG
+-RELEASE_CFLAGS = $(FULL_CFLAGS) -O2
++RELEASE_CFLAGS = $(FULL_CFLAGS)
+ COVERAGE_CFLAGS = $(FULL_CFLAGS) -O0 --coverage -fprofile-update=atomic
+ 
+ DEBUG_LIB_FILE := $(shell $(QUIET_MAKE) -C $(LIB_DIR) print_debug_lib)

diff --git a/dev-libs/gbinder/gbinder-1.1.52.ebuild b/dev-libs/gbinder/gbinder-1.1.52.ebuild
new file mode 100644
index 0000000000..767e37047e
--- /dev/null
+++ b/dev-libs/gbinder/gbinder-1.1.52.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=9
+
+inherit toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/mer-hybris/libgbinder.git"
+else
+	MY_PN="lib${PN}"
+	MY_P="${MY_PN}-${PV}"
+	S="${WORKDIR}/${MY_P}"
+	SRC_URI="https://github.com/mer-hybris/libgbinder/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+DESCRIPTION="GLib-style interface to binder"
+HOMEPAGE="https://github.com/mer-hybris/libgbinder"
+LICENSE="BSD"
+SLOT="0/1.1.52"
+
+DEPEND="
+	dev-libs/libglibutil
+	dev-libs/glib:2
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}"/gbinder-1.1.52-respect-env.patch
+)
+
+src_configure() {
+	tc-export AR CC PKG_CONFIG RANLIB STRIP
+	export KEEP_SYMBOLS=1
+	export LIBDIR="${EPREFIX}"/usr/$(get_libdir)
+}
+
+src_compile() {
+	emake release pkgconfig
+	emake -C tools release
+}
+
+src_install() {
+	local -x DESTDIR="${D}"
+	emake INSTALL_INCLUDE_DIR="${ED}"/usr/include/gbinder install-dev
+	emake INSTALL_BIN_DIR="${ED}"/usr/bin -C tools install
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.