diff options
Diffstat (limited to 'net-wireless/bdaddr/bdaddr-0_p20210511.ebuild')
-rw-r--r-- | net-wireless/bdaddr/bdaddr-0_p20210511.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-wireless/bdaddr/bdaddr-0_p20210511.ebuild b/net-wireless/bdaddr/bdaddr-0_p20210511.ebuild new file mode 100644 index 000000000000..4b3ac829697a --- /dev/null +++ b/net-wireless/bdaddr/bdaddr-0_p20210511.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Utility for changing the Bluetooth device address" +HOMEPAGE="https://github.com/thxomas/bdaddr" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/thxomas/bdaddr" +else + MY_COMMIT=53dae3f6a33bca202ddae0e7b14beeaf2d7d653b + SRC_URI=" + https://github.com/thxomas/bdaddr/archive/${MY_COMMIT}.tar.gz + -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64" + S="${WORKDIR}/${PN}-${MY_COMMIT}" +fi + +# https://github.com/thxomas/bdaddr/pull/6 +SRC_URI+=" + https://github.com/Flowdalic/bdaddr/commit/e5cf5666e00828a3769fcda4717b0ee6f277001d.patch + -> ${PN}-0_p20210511-idiomatic-makefile.patch +" + +LICENSE="GPL-2+" +SLOT="0" + +COMMON_DEPEND=" + net-wireless/bluez:= +" +RDEPEND=" + ${COMMON_DEPEND} + sys-apps/hwdata +" +DEPEND=" + ${COMMON_DEPEND} +" +BDEPEND="dev-go/go-md2man" + +PATCHES=( + "${DISTDIR}"/${PN}-0_p20210511-idiomatic-makefile.patch +) + +src_compile() { + emake + + go-md2man -in README.md -out ${PN}.1 || die +} + +src_install() { + dobin ${PN} + doman ${PN}.1 + dosym ../hwdata/oui.txt usr/share/misc/oui.txt +} |