mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user