diff options
author | Esteve Varela Colominas <esteve.varela@gmail.com> | 2024-03-21 20:11:12 +0100 |
---|---|---|
committer | Esteve Varela Colominas <esteve.varela@gmail.com> | 2024-03-21 23:10:43 +0100 |
commit | c7c9a42eef35659ec588d993f533ddd61342e0de (patch) | |
tree | 5bc83be502331c55a335fd1972656d7f77b35ecd /dev-libs | |
parent | dev-libs/libglibutil: Remove <longdescription> in metadata (diff) | |
download | guru-c7c9a42eef35659ec588d993f533ddd61342e0de.tar.gz guru-c7c9a42eef35659ec588d993f533ddd61342e0de.tar.bz2 guru-c7c9a42eef35659ec588d993f533ddd61342e0de.zip |
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>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/gbinder/gbinder-1.1.36.ebuild | 28 | ||||
-rw-r--r-- | dev-libs/gbinder/gbinder-9999.ebuild | 28 |
2 files changed, 28 insertions, 28 deletions
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 } |