summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-09 20:45:11 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-02-09 23:55:13 +0100
commit2c5745482cba11b0b85e95c762b20996d8f4b71c (patch)
tree06776e74ba76048e0e0ec7b0e1ae085f2da68cbe /app-misc/rioutil/rioutil-1.5.4-r1.ebuild
parentapp-misc/mx5000tools: drop 0.1.2-r1 (diff)
downloadgentoo-2c5745482cba11b0b85e95c762b20996d8f4b71c.tar.gz
gentoo-2c5745482cba11b0b85e95c762b20996d8f4b71c.tar.bz2
gentoo-2c5745482cba11b0b85e95c762b20996d8f4b71c.zip
app-misc/rioutil: update EAPI 7 -> 8
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc/rioutil/rioutil-1.5.4-r1.ebuild')
-rw-r--r--app-misc/rioutil/rioutil-1.5.4-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/app-misc/rioutil/rioutil-1.5.4-r1.ebuild b/app-misc/rioutil/rioutil-1.5.4-r1.ebuild
new file mode 100644
index 000000000000..f63cc49c04bd
--- /dev/null
+++ b/app-misc/rioutil/rioutil-1.5.4-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools udev
+
+DESCRIPTION="A utility for accessing various Rio media players"
+HOMEPAGE="https://github.com/hjelmn/rioutil"
+SRC_URI="https://github.com/hjelmn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+RDEPEND="virtual/libusb:1"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ # Don't use hardcoded '/lib' libpath
+ sed -e '/libdir/d' -i Makefile.am -i librioutil/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-static
+}
+
+src_install() {
+ default
+
+ udev_dorules "${FILESDIR}"/75-rio.rules
+
+ find "${D}" -name '*.la' -type f -delete || die
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}