From c7c9a42eef35659ec588d993f533ddd61342e0de Mon Sep 17 00:00:00 2001 From: Esteve Varela Colominas Date: Thu, 21 Mar 2024 20:11:12 +0100 Subject: dev-libs/gbinder: Misc fixes - Remove unnecessary src_test() (the default function already runs emake test/check) - Support Gentoo Prefix - Style fixes - Remove empty IUSE - Apply user patches after ebuild sed-patches Signed-off-by: Esteve Varela Colominas --- dev-libs/gbinder/gbinder-1.1.36.ebuild | 28 ++++++++++++++-------------- dev-libs/gbinder/gbinder-9999.ebuild | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'dev-libs') diff --git a/dev-libs/gbinder/gbinder-1.1.36.ebuild b/dev-libs/gbinder/gbinder-1.1.36.ebuild index 66491f86d..d864cc705 100644 --- a/dev-libs/gbinder/gbinder-1.1.36.ebuild +++ b/dev-libs/gbinder/gbinder-1.1.36.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,7 +12,7 @@ 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" + SRC_URI="https://github.com/mer-hybris/libgbinder/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~arm ~arm64 ~x86" fi @@ -20,31 +20,31 @@ DESCRIPTION="GLib-style interface to binder" HOMEPAGE="https://github.com/mer-hybris/libgbinder" LICENSE="BSD" SLOT="0" -IUSE="" DEPEND="dev-libs/libglibutil" RDEPEND="${DEPEND}" -BDEPEND="virtual/pkgconfig - sys-apps/sed" +BDEPEND=" + virtual/pkgconfig + sys-apps/sed +" PATCHES=( "${FILESDIR}/gbinder-1.1.36-respect-env.patch" ) + src_prepare() { - default sed -i -e "s|ranlib|$(tc-getRANLIB)|" \ - Makefile \ - || die + Makefile || die + default } src_compile() { - emake LIBDIR="/usr/$(get_libdir)" + emake LIBDIR="${EPREFIX}/usr/$(get_libdir)" } src_install() { - emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install-dev -} - -src_test() { - emake test + emake LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + DESTDIR="${D}" \ + INSTALL_INCLUDE_DIR="${ED}/usr/include/gbinder" \ + install-dev } diff --git a/dev-libs/gbinder/gbinder-9999.ebuild b/dev-libs/gbinder/gbinder-9999.ebuild index 66491f86d..d864cc705 100644 --- a/dev-libs/gbinder/gbinder-9999.ebuild +++ b/dev-libs/gbinder/gbinder-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,7 +12,7 @@ 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" + SRC_URI="https://github.com/mer-hybris/libgbinder/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~arm ~arm64 ~x86" fi @@ -20,31 +20,31 @@ DESCRIPTION="GLib-style interface to binder" HOMEPAGE="https://github.com/mer-hybris/libgbinder" LICENSE="BSD" SLOT="0" -IUSE="" DEPEND="dev-libs/libglibutil" RDEPEND="${DEPEND}" -BDEPEND="virtual/pkgconfig - sys-apps/sed" +BDEPEND=" + virtual/pkgconfig + sys-apps/sed +" PATCHES=( "${FILESDIR}/gbinder-1.1.36-respect-env.patch" ) + src_prepare() { - default sed -i -e "s|ranlib|$(tc-getRANLIB)|" \ - Makefile \ - || die + Makefile || die + default } src_compile() { - emake LIBDIR="/usr/$(get_libdir)" + emake LIBDIR="${EPREFIX}/usr/$(get_libdir)" } src_install() { - emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install-dev -} - -src_test() { - emake test + emake LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + DESTDIR="${D}" \ + INSTALL_INCLUDE_DIR="${ED}/usr/include/gbinder" \ + install-dev } -- cgit v1.2.3-65-gdbad