diff options
author | Paul Healy <lmiphay@gmail.com> | 2017-02-05 19:44:27 +0000 |
---|---|---|
committer | Paul Healy <lmiphay@gmail.com> | 2017-02-05 19:44:27 +0000 |
commit | fad2d2b4849fe720f6425c5b8e8243658a84fb82 (patch) | |
tree | dbdf1b13946c0e418062e2aedce40997624b9f0f /app-misc/g13 | |
parent | drop old slack ebuilds (diff) | |
download | lmiphay-fad2d2b4849fe720f6425c5b8e8243658a84fb82.tar.gz lmiphay-fad2d2b4849fe720f6425c5b8e8243658a84fb82.tar.bz2 lmiphay-fad2d2b4849fe720f6425c5b8e8243658a84fb82.zip |
add an ebuild for a git rev compatible with my changes
Diffstat (limited to 'app-misc/g13')
-rw-r--r-- | app-misc/g13/Manifest | 3 | ||||
-rw-r--r-- | app-misc/g13/g13-20150528_p1.ebuild | 83 | ||||
-rw-r--r-- | app-misc/g13/g13-9999.ebuild | 6 |
3 files changed, 87 insertions, 5 deletions
diff --git a/app-misc/g13/Manifest b/app-misc/g13/Manifest index 1063a56..3c22997 100644 --- a/app-misc/g13/Manifest +++ b/app-misc/g13/Manifest @@ -8,4 +8,5 @@ AUX g13mod 319 SHA256 2507f11307858fdec95370c635096b3f4b71bb84b137ec0a51c34b97cb AUX g13writelcd 270 SHA256 2c379e59ed7030a54a16f29a9fc939c175ce3705f501cdd086061839a584e406 SHA512 330b968d676e5fab9034004d1c659f61f312194267021e0b07b4ed0f5660671a4bec59b21493bcb66c2eb711da188be6609c8fa7c0ff787ccfed8bf3a2b4ae71 WHIRLPOOL 33cbdcf2eb4b5069f953b8c17658d231a41006ea616e1d94b0af8d5c71ae94fd18b28ebc6431afe6e4ab90f0ca86ca8d91cbe96ceb2be1aec2fdf6766fb2e056 AUX keys.txt 1054 SHA256 aaf0a3b118fd79fe6b56433b0881c59d8bd101e4c4d0c2c6128a3364b90bfbdb SHA512 a96d1eaef75f1b93637d25fb5b94b34a14eb9083a596e37b3c147a4ad4d762bf679c1dba44545620e23a56fb7c7dc1bff7122cd2a36813a7a1aa8c51fa6d0e58 WHIRLPOOL cace8bbbb84f89e1145dfcb66ef9cd9185e4e79ae3179a3b95457667f8bc1993808c5f00956504ede497d4e2b2a057c579254b3ce3e23b5ee4ecb6c3848b888c EBUILD g13-20150528.ebuild 1993 SHA256 885f53daa06d109da026d8331ef81d760ee586b40206d2ffc47fd65455d406d4 SHA512 d8573860f45950df1b7782df93b844ab9495ced2ec5eb20dde52e97223a682378e12752e0d536de730feb0b36b24994d5a488b9041061c0c13f504031c77804d WHIRLPOOL a852579686aea7455b1502db76fa3c234fc4a33d8d321b5853a0b0d2c4f2dd3a4fa8f3d24013592804dfb74a2765b4e063470b97c10b2394fc9f68772c0394ed -EBUILD g13-9999.ebuild 2029 SHA256 fe958836f8cf22cef6b06ea4ddf977a0d486cb8e41626830ec77c55cdaeb0e8f SHA512 a9df3606cd837612d1ca2fba0c57f75d9a4ea57e643f5139df2eb169c64d12d6b79d18fe69a9c6fbfa96091e570d73635e232a1a38752e3b917facac49c6849a WHIRLPOOL fb586cd68a9e3274219a95f75b94f62333c82b251504b22f6a9892dc2f5843852c9f14b37f7713a90d1d12df54596549a2d1d420f35fe26f04110db385dc30c0 +EBUILD g13-20150528_p1.ebuild 2084 SHA256 1a5d9060910576ce0cd365e40e68e600c3925eb100187de139b7de8f9f5af451 SHA512 0a841c54dabe63a3c73cc42dc606722b7134ae489cfa8b6ef64af62c43d0d47bf6162b914506d3515e9cc7a80c36f56aef07cdcf09f5f7333f1e3053bacb001e WHIRLPOOL fd767764e6921ccdc7e852f6577501a593a89a31dc3389fdf21d1d1fec55f14afffdfcbdbe93f8a5c8e657c404ca97a066a7c03c15e7d0ce54cae49977246777 +EBUILD g13-9999.ebuild 1947 SHA256 817b68d999f6f436fc52ea0341e41dc9a4c7e183d8a3621c42f03c9e90e40ac7 SHA512 97f13a0d2782b15946ba14840a9cfb2e84d4374659b855e245b578af09ab1ab876016dbfd55706422e0dd4398c58138652199e648ad1b116b9f3d63f75c70b6b WHIRLPOOL a99d15d2718f22ce50b84c53175b4e748361c5616dbc0f723be312abe49d7e2b0fe748e155eb042973c298886e4260156498313f62683d1739cabf14a18a5532 diff --git a/app-misc/g13/g13-20150528_p1.ebuild b/app-misc/g13/g13-20150528_p1.ebuild new file mode 100644 index 0000000..8527a23 --- /dev/null +++ b/app-misc/g13/g13-20150528_p1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=6 + +inherit eutils user linux-info git-r3 + +DESCRIPTION="libusb driver for the g13" +HOMEPAGE="https://github.com/ecraven/g13" +EGIT_REPO_URI="https://github.com/ecraven/g13.git" +EGIT_COMMIT="9a917c3c785161c788c47f09846b2fdd2550a9f8" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + dev-libs/boost + dev-libs/libusb +" +RDEPEND="${DEPEND} + media-gfx/imagemagick + sys-apps/coreutils +" + +pkg_pretend() { + CONFIG_CHECK="~INPUT_UINPUT" + check_extra_config +} + +pkg_setup() { + # use plugdev for now + # see: https://blogs.gentoo.org/mgorny/2013/07/03/local-device-access-from-plugdev-to-logind/ + enewgroup plugdev + enewuser g13 -1 -1 "/dev/null" "plugdev,usb" +} + +src_prepare () { + epatch "${FILESDIR}/add-modifiers.patch" + epatch "${FILESDIR}/add-logging.patch" + sed -i -e 's:/tmp/:/run/:' "g13.h" + sed -i '/MODE/G' "91-g13.rules" + eapply_user +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dosbin g13d + dobin pbm2lpbm + dobin ${FILESDIR}/g13writelcd ${FILESDIR}/g13loadbind ${FILESDIR}/g13mod + dodoc README.org *.bind ${FILESDIR}/keys.txt + insinto /usr/share/${PN} + doins *.lpbm ${FILESDIR}/99-uinput-g13.rules + insinto /lib/udev/rules.d + doins 91-g13.rules + + newconfd "${FILESDIR}/${PN}.conf.d" "${PN}" + newinitd "${FILESDIR}/${PN}.init.d" "${PN}" +} + +pkg_postinst() { + elog "Note that the command pipe is: /run/g13-0" + elog "And you need to be in the plugdev group to write to it." + elog "" + elog "If you have configured UINPUT support as a modules you" + elog "may wish to add uinput to /etc/modules" + elog "" + elog "You probably want to copy:" + elog " /usr/share/${PN}/92-uinput-g13.rules to /etc/udev/rules.d" + elog "" + elog "If you want to start g13d automatically on system boot:" + elog " rc-update add g13 default" + elog "" + elog "The daemon output is being logged to /var/log/${PN}.log" + elog "" + elog "Bindings similar to the windows default are available at:" + elog " https://github.com/zekesonxx/g13-profiles" +} diff --git a/app-misc/g13/g13-9999.ebuild b/app-misc/g13/g13-9999.ebuild index 86b12f7..385e5da 100644 --- a/app-misc/g13/g13-9999.ebuild +++ b/app-misc/g13/g13-9999.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=5 +EAPI=6 inherit eutils user linux-info git-r3 @@ -37,8 +37,6 @@ pkg_setup() { } src_prepare () { - epatch "${FILESDIR}/add-modifiers.patch" - epatch "${FILESDIR}/add-logging.patch" sed -i -e 's:/tmp/:/run/:' "g13.h" sed -i '/MODE/G' "91-g13.rules" epatch_user |