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 <esteve.varela@gmail.com>
This commit is contained in:
Esteve Varela Colominas
2024-03-21 20:11:12 +01:00
parent 0ce36c5cc6
commit c7c9a42eef
2 changed files with 28 additions and 28 deletions

View File

@@ -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 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@@ -12,7 +12,7 @@ else
MY_PN="lib${PN}" MY_PN="lib${PN}"
MY_P="${MY_PN}-${PV}" MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}" 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" KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi fi
@@ -20,31 +20,31 @@ DESCRIPTION="GLib-style interface to binder"
HOMEPAGE="https://github.com/mer-hybris/libgbinder" HOMEPAGE="https://github.com/mer-hybris/libgbinder"
LICENSE="BSD" LICENSE="BSD"
SLOT="0" SLOT="0"
IUSE=""
DEPEND="dev-libs/libglibutil" DEPEND="dev-libs/libglibutil"
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig BDEPEND="
sys-apps/sed" virtual/pkgconfig
sys-apps/sed
"
PATCHES=( PATCHES=(
"${FILESDIR}/gbinder-1.1.36-respect-env.patch" "${FILESDIR}/gbinder-1.1.36-respect-env.patch"
) )
src_prepare() { src_prepare() {
default
sed -i -e "s|ranlib|$(tc-getRANLIB)|" \ sed -i -e "s|ranlib|$(tc-getRANLIB)|" \
Makefile \ Makefile || die
|| die default
} }
src_compile() { src_compile() {
emake LIBDIR="/usr/$(get_libdir)" emake LIBDIR="${EPREFIX}/usr/$(get_libdir)"
} }
src_install() { src_install() {
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install-dev emake LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
} DESTDIR="${D}" \
INSTALL_INCLUDE_DIR="${ED}/usr/include/gbinder" \
src_test() { install-dev
emake test
} }

View File

@@ -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 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@@ -12,7 +12,7 @@ else
MY_PN="lib${PN}" MY_PN="lib${PN}"
MY_P="${MY_PN}-${PV}" MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}" 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" KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi fi
@@ -20,31 +20,31 @@ DESCRIPTION="GLib-style interface to binder"
HOMEPAGE="https://github.com/mer-hybris/libgbinder" HOMEPAGE="https://github.com/mer-hybris/libgbinder"
LICENSE="BSD" LICENSE="BSD"
SLOT="0" SLOT="0"
IUSE=""
DEPEND="dev-libs/libglibutil" DEPEND="dev-libs/libglibutil"
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig BDEPEND="
sys-apps/sed" virtual/pkgconfig
sys-apps/sed
"
PATCHES=( PATCHES=(
"${FILESDIR}/gbinder-1.1.36-respect-env.patch" "${FILESDIR}/gbinder-1.1.36-respect-env.patch"
) )
src_prepare() { src_prepare() {
default
sed -i -e "s|ranlib|$(tc-getRANLIB)|" \ sed -i -e "s|ranlib|$(tc-getRANLIB)|" \
Makefile \ Makefile || die
|| die default
} }
src_compile() { src_compile() {
emake LIBDIR="/usr/$(get_libdir)" emake LIBDIR="${EPREFIX}/usr/$(get_libdir)"
} }
src_install() { src_install() {
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install-dev emake LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
} DESTDIR="${D}" \
INSTALL_INCLUDE_DIR="${ED}/usr/include/gbinder" \
src_test() { install-dev
emake test
} }