diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/lomoco/lomoco-1.0-r9.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/lomoco/lomoco-1.0-r9.ebuild')
-rw-r--r-- | sys-apps/lomoco/lomoco-1.0-r9.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-apps/lomoco/lomoco-1.0-r9.ebuild b/sys-apps/lomoco/lomoco-1.0-r9.ebuild new file mode 100644 index 000000000000..3e1eb600ddd5 --- /dev/null +++ b/sys-apps/lomoco/lomoco-1.0-r9.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit autotools eutils multilib toolchain-funcs udev + +DESCRIPTION="Lomoco can configure vendor-specific options on Logitech USB mice" +HOMEPAGE="http://www.lomoco.org/" +SRC_URI="http://www.lomoco.org/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 x86" +IUSE="" + +RDEPEND="virtual/libusb:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_prepare() { + cp -f "${FILESDIR}"/lomoco-pm-utils-r1 "${T}" || die + sed -i -e "s|@UDEVDIR@|$(get_udevdir)|" "${T}"/lomoco-pm-utils-r1 || die + + epatch \ + "${FILESDIR}"/${P}-gentoo-hardware-support.patch \ + "${FILESDIR}"/${P}-updated-udev.patch + + eautoreconf +} + +src_compile() { + emake + emake udev-rules +} + +src_install() { + default + + insinto "$(get_udevdir)"/rules.d + newins udev/lomoco.rules 40-lomoco.rules + + exeinto "$(get_udevdir)" + newexe udev/udev.lomoco lomoco + + insinto /etc + doins "${FILESDIR}"/lomoco.conf + + exeinto /etc/pm/sleep.d + newexe "${T}"/lomoco-pm-utils-r1 lomoco +} |